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

RE: String Trouble

Subject: RE: String Trouble
From: Americo Albuquerque <melinor@xxxxxxxx>
Date: Fri, 31 Oct 2003 01:10:34 -0000
qwertyuiopasdfghjklzxcvbnm
Hi

use translate(@title,'QWERTYUIOPASDFGHJKLZXCVBNM_','')

This will change:
       INDEX_TOC_C79_R
       INDEX_U79-31-15_R
Into
       79
       79-31-15

Regards,
Americo Albuquerque


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> karthikeyan.balasubramanian
> Sent: Thursday, October 30, 2003 7:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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
> 
> 


 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.