xsl-list
[Top] [All Lists]

Re: [xsl] grouping-problem

2007-06-14 10:20:50
Annina(_dot_)Hirschi-Wyss(_at_)swisstopo(_dot_)ch 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 

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