[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] xsl:result-document and stylesheets
Subject: Re: [xsl] xsl:result-document and stylesheets
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Mon, 04 Jul 2005 18:52:29 +0200
|
Hi,
Tempore 18:48:38, die 07/04/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Charpentier Michel
<charpov_lists@xxxxxxxxxxx>:
When using xsl:result-document, how do you attach a stylesheet to the
resulting xml document (i.e., how is the <?xml-stylesheet...?> part
generated)? This works:
<xsl:result-document href="foo.xml">
<xsl:text disable-output-escaping="yes">
<?xml-stylesheet href="test.css" type="text/css"?>
</xsl:text>
<foo/>
</xsl:result-document>
Noramlly, you'd use:
<xsl:processing-instruction name="xml-stylesheet">href="test.css"
type="text/css"</xsl:processing-instruction>
I guess it would work with 'xsl:result-document' as well...
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Spread the wiki (http://www.wikipedia.org)
|