This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Having Tags when the output method is text
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Swati Attarde" <swatid18 at hotmail dot com>
- Cc: XSL-List at lists dot mulberrytech dot com
- Date: Thu, 1 Aug 2002 13:07:07 +0100
- Subject: Re: [xsl] Having Tags when the output method is text
- Organization: Jeni Tennison Consulting Ltd
- References: <F88VLEFN03a5sqMaSOR00001289@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Swati,
> I face a new problem if i use the call template approach you
> suggested. Whenever i call this template inside any <xsl:attribute>
> tag, the output escaping doesnt work any more. How could i avoid
> this?
You can't. You can't use disable-output-escaping to create text within
attributes. If you absolutely have to use JSP scriptlets within
attribute values then you have to use disable-output-escaping to
create the entire start tag (and matching end tag) of the element, or
revert to using the text output method. It's pretty horrendous, so
what I suggest, if possible, is that you change the way you're using
JSP so that you don't use it within attribute values.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list