Subject: RE: [xsl] XSLT 2.0 Multi-level grouping From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Sat, 12 Jan 2008 08:42:04 -0000 |
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@xxxxxxxxxxxx] > Sent: 10 January 2008 21:33 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT 2.0 Multi-level gro, Florent Georges | Thread | [xsl] Transforming XML to CSV, Adam Lipscombe |
RE: [xsl] Supressing entity expansi, Michael Kay | Date | Re: [xsl] Supressing entity expansi, Colin Paul Adams |
Month |