xsl-list
[Top] [All Lists]

Re: [xsl] Simple Question

2007-01-31 08:28:50


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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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