RE: [xsl] XSL transform escape question

Subject: RE: [xsl] XSL transform escape question
From: "Martinez, Brian" <brian.martinez@xxxxxxxx>
Date: Mon, 9 Sep 2002 13:12:54 -0600
> From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
> 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.martinez@xxxxxxxx |
| 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


Current Thread