Re: <xsl:choose> <xsl:when> problem
> although David I suspect you hmm (I assume you mean me?) I plead not guilty. > Whole bunch more of xsl ommited..... actually you could have ommited some more <xsl:when test="contains (@align,'right')"> <SPAN style=" width=100%; font-weight: bold; font-size: medium"> (<xsl:value-of select="//firstname.lastname@example.org"/>) <SPAN style=" so what have you there? An xsl:when node inside of which are children, in order a text node containing an EOL and 24 spaces. (this is discarded as it's all white space) a SPAN node (this becomes a literal result element as it's not xsl) a text node containing an EOL 24 spaces and a ( This isn't all white, so isn't stripped) an xsl:value-of node (this is taken as an xsl instruction) a text node containing a ) an EOL and some spaces ... more stuff If you want to use white space in your stylesheet to indent the code and you never want that to appear in the output, make sure that the text nodes _only_ contain white space, by putting literal characters the ( and ) here inside <xsl:text>(</xsl:text> David 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