xsl-list
[Top] [All Lists]

Re: [xsl] grouping based on string but with child nodes

2008-10-13 11:52:54
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--