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

Fwd: Re: Selecting a certain amount of characters with XSL

Subject: Fwd: Re: Selecting a certain amount of characters with XSL
From: Regine Vergon <regine_vergon@xxxxxxxxx>
Date: Thu, 9 Mar 2000 04:43:20 -0800 (PST)
vergon
Hi,

What do you mean ?
I don't understand my mail.

May be my question was not clear enough. Let my try to explain it another time.
What i meant was:

my new variable called "x" contains now:

some text with some tags like <br/>
this one to go to next line.
<b> to have bold text</b>
another bla bla bla 
<br/>

If i do 
  <xsl:copy-of select="$x"/>

it's ok i get the text and the tags are evaluated. I mean i get a new line
where there is a <br/> tag and i get bold text between <b> and </b>.


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

I get the same text but tags are not evaluated. No bold no breaking lines...

So i wanted to know if it was possible to get only 1000 characters from this
variable x and have the tags evaluated: i.e bold where expected and breaking
line.

Thanks

Regine

--- David Carlisle <davidc@xxxxxxxxx> wrote:
> Date: Thu, 9 Mar 2000 11:54:12 GMT
> From: David Carlisle <davidc@xxxxxxxxx>
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: Selecting a certain amount of characters with XSL
> Reply-to: xsl-list@xxxxxxxxxxxxxxxx
> 
> 
> > because i still want only 1000 characters i loose <b> and <br> tags. 
> > How can i combine a substring and a copy of ?
> 
> In your count of 1000 characters, how many characters are on the next
> line of this message?
>    <br/>hello world<br/>
> 
> 
> David
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

=====
Regine Vergon
Jomfrubråtveien 73B
1179 Oslo
Norway
Tel : + 47 22 74 66 98
Cell: + 47 97 02 69 47
__________________________________________________
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.