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

Re: output to two files with hyperlinks

Subject: Re: output to two files with hyperlinks
From: Rahil <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 25 May 2005 15:13:00 +0100
hyperlinks with two commands
Michael Kay wrote:


<xsl:result-document href="parents.xml">



"parents.xml" here is a relative URI. What is it relative to? If you invoke Saxon from the command line
without specifying the -o option, the principal output goes to standard out,
which has no known URI, so you get this failure.


At the moment Im not using the command line to run my xsl files. Im using an XSL Editor for performing the transformations. The <xsl:output method="html" encoding="iso-8859-1"/> instruction doesnt really specify a pre-assigned file to which the output should go. I dont know how to do that either although it'll be ideal to specify a filename in the xsl to which the output is serialised to.

The answer is to specify
the -o option.


I had a look in your book for the various attributes that can be written to the <xsl:output> element but am not sure what the -o option means.

(I've fixed this recently so that if -o is not specified,
parents.xml will go in the current directory, if you're executing from the
command line - but not if Saxon is called using the Java API).



I assume that parents.xml, if it eventually works, will be located in the directory in which the main output file is.

Regards
Rahil

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.