Subject: Re: grouping based on string but with child nodes
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 13 Oct 2008 16:52:23 +0100
|
>> 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/
| Current Thread |
|
Michael Kay - 13 Oct 2008 15:50:12 -0000
|
|