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

Including node in group when grouping key is null

Subject: Including node in group when grouping key is null
From: Steve Fogel <steve.fogel@xxxxxxxxxx>
Date: Wed, 8 Jan 2014 23:11:09 -0800 (PST)
 Including node in group when grouping key is null
Hi, all...

Question about xsl:for-each-group, if you please:

In my DITA bookmap, I have this code to output different lists of primary
authors, contributing authors, and contributors:

<xsl:for-each-group select="author" group-by="@type">
...
</xsl:for-each-group>

The type attribute value indicates whether the author is primary,
contributing, or other (contributor).

Is there a way to process an author element that is missing the type
attribute? That is, if a bookmap creator neglects to specify the type
attribute for an author, I'd like to list it among the primary authors. I'm
referring to the case where the @type is missing, not present but a null
string.

Can anyone provide guidance?

Thx

Steve


Steve Fogel | Information Architect, Oracle Database | 650.506.4914
Oracle Server Technologies Information Development
500 Oracle Parkway | M/S 4op1126 | Redwood Shores, CA 94065

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.