|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT: Are XML Comments parseable?
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: 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()">
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








