[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] commenting in xslt2.0 - input-subtree to ouput-comment
Hi,
is it possible to create an xml comment in the XSLT-output which consists of a complete subtree of the xml-input-document? Im using XSLT 2.0. I've been trying things like: <xsl:comment> <xsl:copy-of select="//section[3]"/> <xsl:comment> but but never got the desired output like: <!-- <section>... please comment the section in ...<section/> --> Siggi Bryan Rasmussen wrote: Hi, I just had an idea about how to write useful comments in XSLT (which I very seldomly see), it struck me that what one needs to see in a complex transform is a comment that explains the expected input and the expected output, the reason being that the input is in a format that the developer working with the xslt might not know, or even if they have developed the stylesheet themselves might not remember the expected input, so:
|
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
|