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

RE: How to use xsl:result-document to create HTML and

Subject: RE: How to use xsl:result-document to create HTML and XML output docs?
From: <Anita.Lund@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Jul 2004 18:32:37 +0100
xsl result document
Well, what can I say - Saxon seems to move too fast for me :)

Thanks for your comment on the base output uri.
Forced me to remember that I created my own OutputResolver for .html at some
point.
Guess I will have to do something similar for files ending in .svg or .xml,
right?

(doing the transformation from a servlet btw, so not using the command line
options)

Will then dutifully upgrade in hope that all my future problems will be
solved...


-----Original Message-----
From: Michael Kay [mailto:mhk@xxxxxxxxx]
Sent: Wednesday, July 21, 2004 4:21 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  How to use xsl:result-document to create HTML and XML
output docs?


>
> Have this working for HTML output files only.  When I try to
> generate the svg file, I get the following error ...
> "The system identifier of the principal output file is
> unknown".  Using Saxon 7.1

Saxon 7.1 is a very old release, you need to move forward.

When you use a relative URI in the href attribute of xsl:result-document, it
is resolved relative to the "base output URI". In Saxon you set this from
the command line using the -o option. So the -o option must be specified,
even if all the output goes to secondary output files.

Michael Kay

>
> Have the following specified in the stylesheet.
>
> <xsl:output method="html"/>
> <xsl:output name="svg-format" method="xml"/>
>
> <xsl:result-document href="test.html">...</xsl:result-document>
> <xsl:result-document href="test.svg"
> format="svg-format">...</xsl:result-document>
>
>
> Thanks,
> Anita

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.