xsl-list
[Top] [All Lists]

RE: [xsl] XSLT 2.0 Multi-level grouping

2008-01-12 01:46:19

Yes, using node-name() is better, and I usually use it; I took a short-cut
on this occasion because IIRC I was using <xsl:element
name="{current-grouping-key()}"> and I wasn't sure that would work with an
xs:QName; on reflection I think it probably will.

Michael Kay
http://www.saxonica.com/  

-----Original Message-----
From: Florent Georges [mailto:lists(_at_)fgeorges(_dot_)org] 
Sent: 10 January 2008 21:33
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] XSLT 2.0 Multi-level grouping

Michael Kay wrote:

  Hi

<xsl:for-each-group select="*" group-by="name()">

  I know name() is widely used as a grouping key, but I 
wonder if we shouldn't use node-name(.) instead, to be more 
coherent regarding namespaces handling.  The same way we 
advice to use self::ns:name instead of name() eq 'ns:name'.

  Regards,

--drkm

























      
______________________________________________________________
_______________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails 
vers Yahoo! Mail http://mail.yahoo.fr


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



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