[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Having Tags when the output method is text

Subject: Re: Having Tags when the output method is text
From: "Swati Attarde" <swatid18@xxxxxxxxxxx>
Date: Thu, 01 Aug 2002 12:15:02 +0000
jsp having methods
I am using xml to generate jsp's.So it is unavoidable to not to have jsp expressions in the xslt. Using these expressions many a times i set default values for certain tags. for eg:
<input type="text" value="<%=myJavaVaraible%>"/>
So i guess i'll have to follow the not-so-good approach!


----Original Message Follows----
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Reply-To: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
To: "Swati Attarde" <swatid18@xxxxxxxxxxx>
CC: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Having Tags when the output method is text
Date: Thu, 1 Aug 2002 13:07:07 +0100

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/



_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.