[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: grouping-problem

Subject: Re: grouping-problem
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 14 Jun 2007 12:54:52 +0200 (CEST)
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.