[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: "James Cummings" <cummings.james@xxxxxxxxx>
Date: Mon, 13 Oct 2008 16:33:56 +0100
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

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.