Mauritz Jeanson wrote:
>>-----Original Message-----
>>From: Georges Schmitz
>
>> If I simply omit the -r switch (the rest
>>of the commandline and classpath leaving the same as befor), then the
>>transformation process is successful. So I'm stuck.
The problem really seems to be the resolving process of admin.xml.
Resolved URI: admin.xml
file://D:/LHM/Doku/Spec/AdminTool/edit/admin.xml
As I pointed out to Bob Stayton, my current path is
D:/LHM/Doku/Spec/AdminTool/edit/ So its not me that is prefixing
the path with "file://" (2 slashes!), but the resolver. Could the
problem be related to what Bob mentioned in its documentation,
that relative paths don't work with the resolver (even though my
document to be processed isn't listed in the catalog).
>Could you please give us the full command that starts the
transformation? A
>minimal but complete sample document + catalog file would also make it
>easier for someone trying to reproduce the problem.
Here comes the command (of course all in one line):
D:\LHM\Doku\Spec\AdminTool\edit>java
-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
-x org.apache.xml.resolver.tools.ResolvingXMLReader
-y org.apache.xml.resolver.tools.ResolvingXMLReader
-r org.apache.xml.resolver.tools.CatalogResolver
-u
-o "admin.htm"
"admin.xml"
"cdocbook.xsl"
admon.graphics.path="../../common/images/decorative/"
use.extensions="1"
("cdocbook.xsl" is resolved by the catalog) If I replace "admin.xml"
by the uri "file:///D:/LHM/Doku/Spec/AdminTool/edit/admin.xml"
(absolute path) then processing is successful. This works also if
I use "file:/" instead of "file:///", but I think that xsltproc
only accepts the notation with 3 slashes (probably the official
form). But "admin.xml" is a valid uri too, or am I wrong here?
>>>> Error
>>>> Failure reading
>>
>>file://D:/LHM/Doku/Spec/AdminTool/edit/admin.xml: D
>>
>>>> Transformation failed: Run-time errors were reported
>
>
>This looks like a malformed URL. There should be three slashes: file:///.
Indeed it is.
The catalog.xml is saved in D:\DocBook where also
CatalogManager.properties can be found.
Thanks for your help so far,
Georges