Use the processing instruction element:
http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions
<xsl:processing-instruction
name="mso-application">progid="Excel.Sheet"</xsl:processing-instruction>
Check out the Mulberry quickref, it contains a quick list of available elements.
http://www.mulberrytech.com/quickref/XSLTquickref.pdf
Then if you want to know more about an element, try the XSLT spec:
http://www.w3.org/TR/xslt
Josh
-----Original Message-----
From: Jasthi, Siva R. [mailto:siva(_dot_)jasthi(_at_)ugsplm(_dot_)com]
Sent: Wednesday, April 21, 2004 10:00 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] outputting <? in resulting XML
Hi -
I am trying to convert a source XML to a resulting XML that confirms to
SchemaML (Microsoft Office 2003 XML).
I need to have the following line in the resulting XML.
<?mso-application progid="Excel.Sheet"?>
My stylesheet snippet looks as follows.
<xsl:template match="/">
<?mso-application progid="Excel.Sheet" ?>
...
....
</xsl:template>
However, in the final output,
<?mso-application progid="Excel.Sheet" ?> is NOT appearing.
Can you pl. let me know how XSLT interprets the <? tag?
Thanks
- jasthi
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--