Re: grouping based on string but with child nodes
On Mon, Oct 13, 2008 at 16:17, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote: > > 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> Hiya Andrew, Thanks for your suggestion, but it isn't going to work. tokenize() treats the node like a string and so gets rid of any embedded markup. I.e. the <emph> (and very occasionally other) elements. > For the second pass it's not clear to me how you want to group them, > so maybe post back with an example if you need to. I wanted to end up with the same kind of output that tokenize() would give me, but preserving any embedded markup as well. -James
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