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

Re: Selecting a certain amount of characters with XSL

Subject: Re: Selecting a certain amount of characters with XSL
From: Regine Vergon <regine_vergon@xxxxxxxxx>
Date: Thu, 9 Mar 2000 03:37:50 -0800 (PST)
vergon
Thanks for help !!

May i ask another question ?

As you said i modified my stylesheet like this:

 <xsl:template match="Text">
    <p align="left">
      <xsl:variable name="x">     
        <xsl:for-each select="TextItem"> 
          <xsl:apply-templates></xsl:apply-templates>
          <br/>
        </xsl:for-each>
      </xsl:variable>
      <xsl:copy-of select="$x"/> 
    </p>
  </xsl:template>   

I got the content of x variable with <b> <br> tags evaluated.

If a replace 
      <xsl:copy-of select="$x"/>
with
      <xsl:copy-of select="substring($x,1,1000)"/>

because i still want only 1000 characters i loose <b> and <br> tags. 

How can i combine a substring and a copy of ?

Thanks

Regine

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


 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.