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

Re: Grouping help

Subject: Re: Grouping help
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Aug 2012 16:29:56 -0400
Re:  Grouping help
<table>
<rows>
<row seq="4521">
<cell colNum="1">Partslist</cell>
<cell colNum="2">36MV0</cell>
<cell colNum="3">S-33C-425SP</cell>
<cell colNum="4">MAAMAMAMA</cell>
<cell colNum="5">01</cell>
<cell colNum="6">P</cell>
<cell colNum="7">6EL</cell>
<cell colNum="8">0</cell>
<cell colNum="9">0100 001</cell>
<cell colNum="10">1</cell>
...
I've written this, but my output isn't what I'm wanting or expecting.

 <xsl:template match="table">
   <xsl:for-each-group select="*" group-by="cell[@colNum='10']">

Don't kick yourself too hard, but I think you simply need:


select="rows/row"

As you have it now, you are grouping <rows> elements and not <row> elements.

I hope this helps.

. . . . . . . . . . . Ken


-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread
  • Grouping help
    • charlieo0 - 15 Aug 2012 20:19:21 -0000
      • Message not available
      • Message not available
        • G. Ken Holman - 15 Aug 2012 20:30:19 -0000 <=

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.