[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: grouping-problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|