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

Re: Adding a break character between a group of input

Subject: Re: Adding a break character between a group of input data except for the last entry
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 6 Dec 2001 02:51:14 +0100
adding space between xsl variables
Didn't Peter explain it in his first mail?

$line is always a nodeset about all "prescriber-info/trade-name"s. $trade is
a nodeset only with the current one (the '.'). So the nodesets are always
different, the comparison between these two nodesets is false, you get
always ';'. But if you have only 1 trade-name, $trade contains this one and
$line too. Both nodesets contain this one node. They are equal, you get no
semi-colon.

Hope this helps ... and it's correctly explained. ;-)

Joerg


>              <annotationsText>
>              <xsl:variable name="line" select="prescriber-info/trade-name
> [.] "/>
>              <first_tradename><xsl:value-of select="$line"/></
> first_tradename>
>                  <xsl:for-each select="prescriber-info/trade-name">
>                  <xsl:variable name="trade" select="."/>
>                  <xsl:if test="$trade != $line">;</xsl:if>
>                      <xsl:value-of select="$trade"/>
>                  </xsl:for-each>
>              </annotationsText>


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


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.