[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: how to split one xml to multiple xml files

Subject: RE: Re: how to split one xml to multiple xml files
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 3 May 2004 17:06:10 +0100
gmemd
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.