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

Re: XSLT Grouping/Filtering issue with preceding/foll

Subject: Re: XSLT Grouping/Filtering issue with preceding/following axes
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Fri, 05 Aug 2005 16:59:48 +0200
Re:  XSLT Grouping/Filtering issue with  preceding/foll
Tempore 16:51:16, die 08/05/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Jacquo Johnson <genxgeek@xxxxxxxxx>:

   <!-- This doesn't work...group is not filtered correctly -->
   <xsl:variable name="uh" select="//Record[CodeId='FRED']"/>
   <xsl:element name="Copy">
       <xsl:copy-of select="$uh"/>
    </xsl:element>
    <xsl:element name="Filter">
       <xsl:copy-of select="$uh[(not(AttributeName=preceding::*/AttributeName)]"/>
    </xsl:element>

There's a typo in the Xpath. It should be $uh[not(AttributeName=preceding::*/AttributeName)]

It more common to use the Muenchian grouping technique for solving problems like this.

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
B+N&N9N;N.N:N?N?N= N5N9N=N1N9 N<N1N;N;N?N= N7 ON9N;ON;N1N;N?N=B;  - NN;N5ON2N?ON;N?O

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.