Re: grouping based on string but with child nodes
>> Yes, use 2 passes, it will help you diagnose problems in the 2nd pass >> much more easily. >> >> The first pass is an idenity transform with: >> >> <xsl:template match="title"> >> <xsl:for-each select="tokenize(., '||')> >> <title><xsl:value-of select="."/></title> > > I felt that wasn't an appropriate approach because it would lose the rich > emphasis markup in the stringification done by tokenize(). me too had I paid more attention... :) > I hope the code below helps. > yeah that was pretty much what I was about to post (promise ;) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
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