xsl-list
[Top] [All Lists]

RE: Preserve Space in Variable

2004-03-01 23:37:53
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



<Prev in Thread] Current Thread [Next in Thread>