RE: [xsl] outputting <? in resulting XML

Subject: RE: [xsl] outputting <? in resulting XML
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Wed, 21 Apr 2004 19:28:23 +0200
> -----Original Message-----
> From: Jasthi, Siva R. [mailto:siva.jasthi@xxxxxxxxxx]
>

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"?>
>

<xsl:processing-instruction name="mso-application">
  progid="Excel.Sheet"
</xsl:processing-instruction>

>
>
> My stylesheet snippet looks as follows.
>
>
> <xsl:template match="/">
>
>      <?mso-application progid="Excel.Sheet" ?>

Won't work, because the PI will be considered to be part of the stylesheet
instead of the result tree. Since it is used for nothing, it's just dropped.


Hope this helps!

Cheers,

Andreas

Current Thread