[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Commented contents not considered for XSLT Transf

Subject: RE: Commented contents not considered for XSLT Transformation.
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 30 Aug 2008 08:44:15 +0100
RE:  Commented contents not considered for XSLT  Transf
> If we use <xsl:copy>, input content with comment coming as it 
> is in output XML. But I need Output XML (template applied).

You mean you want to treat the text inside the comments as if it were a tree
of elements?  You can't do that directly. Comments don't contain elements
(or any other nodes). You'll have to put the content of the comment through
an XML parser, which you can do using the saxon:parse() extension function.

Michael Kay

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.