xsl-list
[Top] [All Lists]

RE: XSL transform escape question

2002-09-09 12:12:54
From: J.Pietschmann [mailto:j3322ptm(_at_)yahoo(_dot_)de]
Sent: Monday, September 09, 2002 12:35 PM
Subject: Re: [xsl] XSL transform escape question


Martinez, Brian wrote:
I think
the confusion (for me) is that d-o-e defaults to "yes" for 
<xsl:text/> and
"no" for <xsl:value-of/>.

That's news to me. I always write my style sheets as if
d-o-e always defaults to "no", and they happen to work.
What's the source of your wisdom?

Er, Mr. Kay's reference book, but I must be confused by the entry for
<xsl:text/> (on page 323 it says the default value of d-o-e is "no"; on the
next page it says it's "yes").

I don't see why the output method should be relevant in this
case either.

My point is if a node-set contains only HTML markup, you can avoid the whole
output-escaping issue by setting output to HTML and using <xsl:copy-of/>.
And if the foregoing is true, then <xsl:value-of/> won't do what you want
anyway.  Something I wasn't explicit about in my first reply, and my
apologies.

b.

| brian martinez                              
brian(_dot_)martinez(_at_)trip(_dot_)com |
| senior gui programmer                                  303.708.7248 |
| trip network, inc.                                 fax 303.790.9350 |
| 6436 s. racine cir.                             englewood, co 80111 |
| http://www.cheaptickets.com/                   http://www.trip.com/ |

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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