xsl-list
[Top] [All Lists]

Re: [xsl] xml to xml issue in XSLT2.0

2007-11-20 04:45:45
On 20/11/2007, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
Do you need to worry about the delimeter here?  Just using:

concat(../@name, @name)

should be fine for the grouping key

This obviously creates the (probably small) risk that ("AB", "C") ends up in
the same group as ("A", "BC").

ahh, good point.  That explains Ken's reasoning for choosing a
separator that's not contained in the values eg:

"A-", "B"

and

"A", "-B"

would give the same key "A--B" if the separator was a dash - what a
gotcha that would be :)



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

<Prev in Thread] Current Thread [Next in Thread>