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

Re: RE: sorting titles w stopwords but w/o value in ev

Subject: Re: RE: sorting titles w stopwords but w/o value in every title node
From: "cking" <cking@xxxxxxxxxx>
Date: Sat, 4 Sep 2004 02:19:55 +0200
sorting and preceding siblings
Susan,

I hope you and your folks are all right after the storms
You're welcome, here's one more modification you can make for a slight optimization:
inside <xsl:for-each select="exsl:node-set($output)/*">:

     <xsl:variable name="title">
      <xsl:if test="not(preceding-sibling::*[@doc-number = current()/@doc-number])">
       <xsl:value-of select="@title"/>
      </xsl:if>
     </xsl:variable>

Instead of testing all the preceding siblings, it suffices to test only the previous sibling:

      <xsl:if test="not(preceding-sibling::*[1]/@doc-number = @doc-number)">

(well, with large input files it might be more than slight)

Greetings
Anton Triest

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.