[xsl] Fw: String Trouble

Subject: [xsl] Fw: String Trouble
From: "karthikeyan.balasubramanian" <karthikeyan.balasubramanian@xxxxxxxxxxxxx>
Date: Fri, 31 Oct 2003 00:48:32 +0530
forgot to mention data is dynamic

79 can be 89
31 can be 32
15 can be 16

Karthikeyan B
----- Original Message -----
From: "karthikeyan.balasubramanian"
<karthikeyan.balasubramanian@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 31, 2003 12:46 AM
Subject: String Trouble


> Hi,
>
> I wrote xsl to get the following output
>
>       INDEX_TOC_C79_R
>       INDEX_U79-31-15_R
>       INDEX_F79-31-15-01_R
>       INDEX_F79-31-15-02_R
>       INDEX_U79-31-40_R
>       INDEX_F79-31-40-01_R
>       INDEX_U79-33-15_R
>       INDEX_F79-33-15-01_R
>       INDEX_U79-34-15_R
>       INDEX_F79-34-15-01_R
>
>
> expected output
> -----------------
>
> 79
> 79-31-15
> 79-31-15-01
> 79-31-15-02
> 79-31-40-01
> 79-33-15
> 79-33-15-01
> 79-34-15
> 79-34-15-01
>
> Now this order varies so much, how do i
> apply substring to get the above output :(
>
> xsl content
> ----------
>   <xsl:variable name="lep_data"
> select="document('e:\enigma\output\lep.xml')"/>
>   <table>
>    <tbody>
>     <tr>
>      <th>data1</th>
>
>     </tr>
>     <xsl:for-each select="$lep_data/index-root/index-node">
>     <tr>
>      <td>
>       <xsl:value-of select="@title" />
>      </td>
>
>     </tr>
>     </xsl:for-each>
>    </tbody>
>   </table>
>



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


Current Thread