Use XML Catalogs in saxonb-xslt

Bug #400277 reported by Dominique Hazael-Massieux
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
saxonb (Ubuntu)
New
Wishlist
Unassigned

Bug Description

It would be nice if the script provided in /usr/bin/saxonb-xslt would use /etc/xml/catalog and org.apache.xml.resolver so that it wouldn't hit the network each time it tries to transform XML documents with a doctype (e.g. XHTML documents).

The following script would do:
#!/bin/sh
if [-f /usr/share/java/xml-commons-resolver-1.1.jar and -f /etc/xml/catalog ]
then exec java -cp /usr/share/java/xml-commons-resolver-1.1.jar:/usr/share/java/saxonb.jar -Dxml.catalog.files=/etc/xml/catalog -Dxml.catalog.verbosity=1 net.sf.saxon.Transform -novw -r org.apache.xml.resolver.tools.CatalogResolver -x org.apache.xml.resolver.tools.ResolvingXMLReader -y org.apache.xml.resolver.tools.ResolvingXMLReader "$@"
else
exec java -classpath /usr/share/java/saxonb.jar net.sf.saxon.Transform "$@"
fi

It would probably be worth adding libxml-commons-resolver1.1-java as a suggested package in that case.

Revision history for this message
Dominique Hazael-Massieux (dominique-hazael-massieux) wrote :

The script above is wrong due to a bad copy & paste, sorry; I've put the real one as an attachment

Changed in saxonb (Ubuntu):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.