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

Re: Re: Re: distinct moves problem

Subject: Re: Re: Re: distinct moves problem
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 10 Jan 2002 12:10:21 -0800 (PST)
 Re: Re: Re: distinct moves problem
Ahmad J Reeves <ahmad at dcs dot qmul dot ac dot uk> wrote:

> Hi Dimitre,
> Many thanks for that, indeed it does give the accurate
> number of moves of each character. The only slight difficulty
> is that it also produces duplicates, e.g.
> Character_ID:  18815 :
>      48984 
>      5050 
>      293 
>      293 
>      293 

Hi Ahmad,

I finally seem to understand the problem.

To solve it, please, replace the end of the stylesheet with the following:

    <xsl:for-each select="$vUniqueCharactersSending">
      <xsl:value-of select="concat('Character_ID: ',
                                [. = current()/CHARACTER_ID]">

        <xsl:if test="not(../LOCATION_ID 
                          = ../preceding-sibling::DIRECT
                                [CHARACTER_ID = current()]/LOCATION_ID)">
          <xsl:value-of select="concat('    ', ../LOCATION_ID, $NL)"/>




Now the transformation does not produce duplicate rooms for a character.


Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.