Subject: RE: [xsl] XSLT: Are XML Comments parseable? From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx> Date: Tue, 20 Sep 2005 13:27:31 +0100 |
Hello, I am still struggling with comment parsing: My XML file: <?xml version="1.0" encoding="UTF-8"?> <!--pear--> <fruit>apple</fruit> My XSLT: <xsl:template name="GetComment" match="comment()"> <c> <xsl:value-of select="."/> </c> </xsl:template> I would like to get only <c>pear</c> as output. However I get as output the following: <c>pear</c>apple How do I fix that? Many Thanks, Houman -----Original Message----- From: Emmanouil Batsis [mailto:Emmanouil.Batsis@xxxxxxxxxxx] Sent: 24 August 2005 12:12 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] XSLT: Are XML Comments parseable? Khorasani, Houman wrote: >Hello, > >Is it possible to read an XML comment through XSLT 1.0, use the Comment >as a String value to produce an XML file? > > <template match="comment()">
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] RE: XML to HTML, Shailesh Shinde | Thread | Re: [xsl] XSLT: Are XML Comments pa, David Carlisle |
RE: [xsl] RE: XML to HTML, Shailesh Shinde | Date | Re: [xsl] XSLT: Are XML Comments pa, David Carlisle |
Month |