[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: grouping based on string but with child nodes

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
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.