[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] inserting spaces ( )


Subject: RE: [xsl] inserting spaces ( )
From: "stevenson" <stevenson@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Mar 2002 15:41:48 +0300

Define it at the beginning of your xslt. I.e

<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Carlos
Sent: 12 March 2002 15:04
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] inserting spaces (&nbsp;)

in html the espace is &nbsp;
if with <xsl:value-of select="count(ancestor::*)-2"/> i have a number, how
can i insert  this number * spaces?
--> <xsl:value-of select="count(ancestor::*)-2"/> * &nbsp;

if the number(<xsl:value-of select="count(ancestor::*)-2"/>) is 5:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

thanks


 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