Re: [xsl] How to assign a stylesheet to an XML genreated by another XSL?

Subject: Re: [xsl] How to assign a stylesheet to an XML genreated by another XSL?
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Tue, 06 Nov 2001 12:09:08 +0200
RABi wrote:

i tried it, and it tells me that pi can't be written within the
xsl:stylesheet tags.

Don't understand, sorry, why pi? Do you mean <xsl:processing-instruction> element?
If so, it's right, you can use it in template only, more precisely in template matches "/":
<xsl:template match="/">
<xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="b.xsl"</xsl:processing-instruction>
<xsl:apply-templates/>
</xsl:template>
--
Oleg Tkachenko
Multiconn International, Israel



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread