Re: [xsl] outputting <? in resulting XML

Subject: Re: [xsl] outputting <? in resulting XML
From: "Manuel Montero MID" <manuel.montero@xxxxxxxxxxxxxxxxx>
Date: Wed, 21 Apr 2004 20:48:36 +0200
You could use <xsl:text>&lt;?...


Manuel


----- Original Message -----
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, April 21, 2004 7:28 PM
Subject: RE: [xsl] outputting <? in resulting XML


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