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

Re: xml to xml issue in XSLT2.0

Subject: Re: xml to xml issue in XSLT2.0
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 20 Nov 2007 10:12:20 +0000
Re:  xml to xml issue in XSLT2.0
On 19/11/2007, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> As I read section 14.2, the current grouping key is an atomic value,
> so I've created an atomic value from the two items in such a way that
> they are delimited by a character unlikely to show up in either
> value.  The carriage returns in line-ending sequences are normalized
> to linefeed characters, so the only carriage return to survive would
> be one coded as a numeric character reference in your source, which
> is quite unlikely.
[snip]
>      <xsl:for-each-group select="tab/sub"
>                          group-by="concat(../@name,'&#xd;',@name)">


Hi Ken,

Do you need to worry about the delimeter here?  Just using:

concat(../@name, @name)

should be fine for the grouping key - not need to worry about whether
a delimeter, if used, occurs in any of the values.

There's no harm in using a delimiter to make it look nicer for
debugging, but there's no restrictions on what you use.

(if I've got that right :)

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