|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to preserve white space of a title line
>1 use param to define a title line, such as ><xsl:param name="titleLine" select="Annual report for xxxx"/> You forgot the single quotes to indicate that it is a string rather than a node-set. <xsl:param name="titleLine" select="'Annual report for xxxx'"/> I see no reason why this wouldn't work. The default value of $titleLine will be the string with all the spaces intact. As Trevor indicated, perhaps you are emitting this string in an HTML document and are confused by the fact that runs of whitespace in HTML constitute a single word separator and are thus rendered with a single space in Western writing scripts. You didn't say what the problem really was. <xsl:value-of select="translate($titleLine,' ',' ')"/> may be of some utility for you. - Mike _____________________________________________________________________________ mike j. brown, software engineer at | xml/xslt: http://skew.org/xml/ webb.net in denver, colorado, USA | personal: http://hyperreal.org/~mike/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








