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

RE: Preserve Space in Variable

Subject: RE: Preserve Space in Variable
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 2 Mar 2004 08:37:53 +0200
xsl preserve space variable
Hi,

> The XML looks like this:
> <SIGS>
>  <SIG>
>         <TITLE>Standard</TITLE>
>   <S>Sincerely,<br/><br/><fname /> <lname /><br/><phone_cell 
> /><br/><email
> /><br/><br/><company_info/></S>
>     </SIG>
>  <SIG>
>      <USERID>1</USERID>
>         <TITLE>Karl 1</TITLE>
>   <S>Your's Truly:<br/><br/><br/><fullname
> /><br/><email/><phone/><br/><company_info/></S>
>     </SIG>
> </SIGS>
> 
> See the <fname /> <lname /> nodes?  There is a space there 
> and I am losing
> it after transformation.

See xsl:preserve-space <http://www.w3.org/TR/xslt#strip>. In your case just add the S element to the list of whitespace-preserving elements, or you can use

  <S xml:space="preserve">Sincerely,<br/><br/><fname /> <lname /><br/><phone_cell…

Cheers,

Jarno

 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.