[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: "xsl:import : unable to load manpages/html-synop.xsl" error
You probably won't like this, but I recommend setting up a CatalogManager.properties file in your CLASSPATH and using Saxon + Xerces 2 to debug the catalog. There is an example CatalogManager.properties in the docbook-xsl distribution (at least in the one from SourceForge, anyway). Set the verbosity level to 99 in CatalogManager.properties. To make this work: You will need to pass a lot of sysproperties (-Dlhs=rhs), in addition to some resolver and parser class names, on a java command line to enable everything. You'll need the install for Saxon 6.5, the Jakarta XML Commons resolver, Xerces 2, and a lucky rabbit's foot. Here is a full sample command line (which must be edited to reflect the paths on your system): java -cp "/usr/share/xerces-2/lib/xercesImpl.jar:/usr/share/xerces-2/lib/xml-apis.jar:/usr/share/saxon-bin/lib/saxon.jar:/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/extensions/saxon653.jar:/usr/share/xml-commons/lib/resolver.jar:/etc/xml" -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration com.icl.saxon.StyleSheet -r org.apache.xml.resolver.tools.CatalogResolver -x org.apache.xml.resolver.tools.ResolvingXMLReader -y org.apache.xml.resolver.tools.ResolvingXMLReader -o src/Engineering_Optimization.fo src/Engineering_Optimization.xml xsl/fo.xsl Here are relevant sections of DocBook XSL:TCG CatalogManager.properties http://www.sagehill.net/docbookxsl/UseCatalog.html Xerces 2 http://www.sagehill.net/docbookxsl/Xinclude.html On 9/27/06, Sam Steingold <sds@podval.org> wrote: > The following message is a courtesy copy of an article > that has been posted to gmane.text.docbook.apps as well. > > > * Chris Chiasson <puevf@puvnffba.anzr> [2006-09-27 15:36:03 -0500]: > > > > here is my XML_CATALOG_FILES entry on Gentoo Linux in the BASH environment: > > > > XML_CATALOG_FILES=file:///etc/xml/catalog > > > > and here is the one from my Windows environment, which also works: > > > > C:\>echo %XML_CATALOG_FILES% > > file:///C%3A/Program%20Files/docbook-xsl/docbook-xsl-1.71.0/catalog.xml > > > > I don't know if those quotation marks in yours are messing things up or not. > > probably not: > > XML_CATALOG_FILES="file:///usr/local/src/clisp/current/doc/catalog.xml " xsltproc --timing --stringparam collect.xref.targets "only" --stringparam targets.filename "tdb-man.xml" pile.xsl clisp.xml > Parsing stylesheet pile.xsl took 36 ms > Parsing document clisp.xml took 147 ms > Writing tdb-man.xml for refentry(clisp) > Applying stylesheet took 44176 ms > Saving result took 0 ms > XML_CATALOG_FILES="file:///usr/local/src/clisp/current/doc/catalog.xml " xsltproc --timing --stringparam collect.xref.targets "only" --stringparam targets.filename "tdb-pile.xml" pile.xsl impnotes.xml > Parsing stylesheet pile.xsl took 0 ms > Parsing document impnotes.xml took 955 ms > Writing tdb-pile.xml for book(impnotes-top) > Applying stylesheet took 186671 ms > Saving result took 0 ms > > it's just man.xsl that does not work: > > > XML_CATALOG_FILES="file:///usr/local/src/clisp/current/doc/catalog.xml " xsltproc --timing --stringparam target.database.document "olink-pile.xml" --stringparam current.docid "man" -o clisp.1 man.xsl clisp.xml > Parsing stylesheet man.xsl took 5 ms > warning: failed to load external entity "http://docbook.xml-doc.org/snapshots/xsl/manpages/html-synop.xsl" > compilation error: file http://docbook.xml-doc.org/snapshots/xsl/manpages/docbook.xsl line 12 element import > xsl:import : unable to load http://docbook.xml-doc.org/snapshots/xsl/manpages/html-synop.xsl > > > -- > Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux) > http://openvotingconsortium.org http://jihadwatch.org http://dhimmi.com > http://israelunderattack.slide.com http://honestreporting.com > WinWord 6.0 UNinstall: Not enough disk space to uninstall WinWord > -- http://chris.chiasson.name/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]