Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Re: [xsl] how to split one xml to multiple xml files

From: "Michael Kay" <mhk@--------->
To:
Date: 5/3/2004 6:06:00 PM
> Rerun the xsl using saxon7.jar.  I got this error:
> D:\projects\epubs_xslt\src\gmemd\xml\cat\cat701>java -jar
> ..\..\..\..\..\lib\sax
> on7.jar cat701.xml ..\..\..\xsl\createCatToc.xsl
> Error at result-document on line 11 of
> file:/D:/projects/epubs_xslt/src/gmemd/xm
> l/cat/cat701/../../../xsl/createCatToc.xsl:
>   The system identifier of the principal output file is unknown
> Transformation failed: Run-time errors were reported
> 
> What does it mean? 

It means you haven't specified the -o option on the command line, or the
equivalent in the API. This is needed for resolving a relative URI in the
href attribute.

 I tried to create another variable to specify the
> directory like this:
> <xsl:variable name="dir" select="d:\results" />
> But I got the error stating   "XPath syntax error in {D:/results}:
>     QName cannot end with colon: {D:}
> Transformation failed: Failed to compile stylesheet. 1 error detected.
>

The value of the select attribute of xsl:variable is an XPath expression.
You probably meant to write
<xsl:variable name="dir" select="'d:\results'" />

but that wouldn't do you much good either, because the href value must be a
URI, not a filename.

Michael Kay


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent