This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:processing-instruction
- From: "Chris Pearson" <chrisp at FUTURE3 dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 15 Jan 2002 11:39:08 -0500
- Subject: [xsl] RE: xsl:processing-instruction
- Reply-to: xsl-list at lists dot mulberrytech dot com
This works for me:
<xsl:template match="/">
<xsl:processing-instruction name="xml-stylesheet">
<xsl:text>type="text/xsl" href="#style1"</xsl:text>
</xsl:processing-instruction>
<xsl:apply-templates />
</xsl:template>
Chris
-----Original Message-----
From: Cornelia Stratulat [mailto:girofix@yahoo.fr]
Sent: Tuesday, January 15, 2002 11:24 AM
To: XSL-List@lists.mulberrytech.com
Subject:
Hi,
Could someone tell me how to create a xsl processing
instruction with an attribut using xslt?
Sample:
I would like to create something like this
<?xml-stylesheet type="text/css" href="toto.xsl"?>
I tried to create attributs within
<xsl:processing-instruction> template but it seems not
work.
Thanks,
Giro
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list