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

Re: Getting Duplicate value while retrieving

Subject: Re: Getting Duplicate value while retrieving
From: "karthikeyan.balasubramanian" <karthikeyan.balasubramanian@xxxxxxxxxxxxx>
Date: Tue, 18 Nov 2003 17:45:33 +0530
duplicate xsl position
Hi Jarno,

  Thank you buddy :).  It worked like a charm :)

  Have a wonderful day.

Karthikeyan B
----- Original Message -----
From: <Jarno.Elovirta@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 18, 2003 4:25 PM
Subject: RE:  Getting Duplicate value while retrieving


> Hi,
>
> >      <xsl:for-each select="ENTRY[1]/PARA">
> >       <xsl:if test="position() &gt; 1">
> >        <tr>
> >         <td>
> >          <xsl:value-of select="."/>
> >         </td>
> >         <td>
> >          <xsl:value-of select="../following-sibling::*[1]"/>
>
> Here you're creating a text node with the string value of the second
ENTRY, thus you get the concenation of the PARA values. Rewrite it to e.g.
>
>   <xsl:for-each select="ENTRY[1]/PARA[position() > 1]">
>     <xsl:variable name="position" select="position()"/>
>     <tr>
>       <td>
>         <xsl:value-of select="."/>
>       </td>
>       <td>
>         <xsl:value-of
select="../following-sibling::ENTRY[1]/PARA[$position + 1]"/>
>       </td>
>     </tr>
>   </xsl:for-each>
>
> Cheers,
>
> Jarno - Viola: Violentia
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>



 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.