Re: [xsl] Simple Question

Subject: Re: [xsl] Simple Question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 31 Jan 2007 13:55:59 GMT
> Thanks for the replies. I'm better understanding how XSLT works and with
> a little help able to get this to work:
> 
> <xsl:if test="$a != $times">
>  		<xsl:text
> disable-output-espacing="yes">&lt;xqx:orOp&gt;</xsl:text>
>  			...
>  	</xsl:if>

NO!!! use of disable-output-espacing= is almost always a sign of _not_
using XSLT the way in which it is intended. If you need to generate tags
(which is what you are dong here) XSLT is absolutely not the best
language to be using, as it is designed to work with trees of element
nodes.

> The reason I had to do it this way 
If you are generating XNML or HTMl (as you are) you _never_ need to use
disable-output-escaping, Ypu may need to do use it if generating some
"almost XML" formats as used in template languages like JSP/ASP <%...%>

David

Current Thread