Re: Selecting descendent text node
Matthew Bentley wrote: > > However, XSLT does not allow [predicates] in a template match: > Is there a way around this? Not as far as I know. You could always do this. <xsl:template match="list/text()"> <xsl:choose> <xsl:when test="position() == 1"> <!-- First text node template contents --> </xsl:when> <xsl:otherwise> <!-- normal list/text() contents --> </xsl:otherwise> </xsl:choose> </xsl:template> Hope this isn't too little too late! -- Warren Hedley 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