xsl-list
[Top] [All Lists]

Re: outputting <? in resulting XML

2004-04-21 11:48:36
You could use <xsl:text>&lt;?...


Manuel


----- Original Message -----
From: "Andreas L. Delmelle" <a_l(_dot_)delmelle(_at_)pandora(_dot_)be>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, April 21, 2004 7:28 PM
Subject: RE: [xsl] outputting <? in resulting XML


-----Original Message-----
From: Jasthi, Siva R. [mailto:siva(_dot_)jasthi(_at_)ugsplm(_dot_)com]


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


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





<Prev in Thread] Current Thread [Next in Thread>