xsl-list
[Top] [All Lists]

Re: [xsl] Group handling of multiple IDREFS

2019-12-19 19:30:24
On 19/12/2019 23:51, Michael Kay mike(_at_)saxonica(_dot_)com wrote:
If this was schema-aware, then atomizing the @to attribute would return a list of atomic values, so it would all just work...

As it is, can't you simply do group-by="tokenize(@to)"? Or have I missed something?

No, you're right. I knew there would be an elegant solution that I would have missed, but it was getting late for my brain to be functioning properly. Thank you.

Note that when the group-by expression selects multiple values, the element will appear in multiple groups. XSLT 3.0 introduces composite="yes" which means that the multiple values are treated as a single grouping key.

Thanks again...in this case that's fine, as I am only addressing the very first occurrence.

Peter
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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