|
Subject: Re: [xsl] grouping-problem From: Florent Georges <darkman_spam@xxxxxxxx> Date: Thu, 14 Jun 2007 12:54:52 +0200 (CEST) |
Annina.Hirschi-Wyss@xxxxxxxxxxxx wrote:
Hi
> Is there a possibility to list the class MD_Metadata even
> if there is no "associationName"? Thanks for your reply!
'14.3 tell us that:
If the group-by attribute is present, then an item in
the population may have multiple grouping keys: that is,
the group-by expression evaluates to a sequence. The
item is included in as many groups as there are distinct
grouping keys (which may be zero).
On the elements that don;t have this attribute, the
group-by expression will evaluate to a zero-length sequence,
so they will be included in zero groups. If you want to
have a group for empty values (for example by handling "no
attribute" as the same as "attribute with empty value"), you
can use the following:
<xsl:for-each-group select="current-group()"
group-by="string(@associationName)">
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] grouping-problem, David Carlisle | Thread | Re: [xsl] grouping-problem, Annina . Hirschi-Wys |
| Re: [xsl] grouping-problem, David Carlisle | Date | [xsl] Anouncement: New XPath Develo, Philip Fearon |
| Month |