RE: Processing only certain nodes in a document fragme
> -----Original Message----- > From: Glenn MacGregor <snip /> > I need a template which will loop through all the <item> tags and > replace the > "<var/>" tag in the <do> section with CDATA of the current item > tag echoing all > the rest of the do tag to the result (without the <do> tag). > Hi, If you have control over both XML and XSL, I think it would be more 'stylish' to have only the item elements in the source XML, and transform them like: <xsl:template match="foreach/in/item" mode="testrow"> <tr><td><xsl:value-of select="." /></td> ...</tr> </xsl:template> Cheers, Andreas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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