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

RE: using jsp within xsl

Subject: RE: using jsp within xsl
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Tue, 02 Apr 2002 13:29:38 +0000
using jsp to write xsl
hi Jarno,
I think , a statement like
<xsl:text disable-output-escaping="yes">
&lt;&gt;
</xsl:text>

would result in an output like <> . please advice..
laura

From: Jarno.Elovirta@xxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  using jsp within xsl
Date: Tue, 2 Apr 2002 16:12:21 +0300

Hi,

> won't &lt; and &gt; work out?? try using this .. or

Well, no. The LESS-THAN SIGN will always be escaped in attribute values - GREATER-THAN SIGN doesn't have to be, but the XSLT serializer may escape it, too.

> put all your jsp code between
> <![CDATA[  and   ]]> like
> ----
> <![CDATA[
>
> .. your JSP Code ..
>
>
> ]]>
> and where ever you want to plug in some values from xml,
> close the CDATA ( with ]]> ) and enter the value from XML ( using
> xsl:value-of ) and the resume your JSP code with The CDATA again..

Well, that wouldn't work here either. For one, you can't have CDATA sections inside attribute values; and even if the original question would have been how to output <% as text nodes, using CDATA wouldn't disable the serializer from escaping the LESS-THAN SIGN.

Santtu

> please check this and let me know if it works..
> any comments from Gurus??
> laura
>
>
> >From: Jarno.Elovirta@xxxxxxxxx
> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> >Subject: RE:  using jsp within xsl
> >Date: Tue, 2 Apr 2002 10:26:47 +0300
> >
> > > I have something like this in my xsl :
> > > <INPUT TYPE="HIDDEN" NAME="TIMESTAMP" VALUE="<%=strTmStmp %>" />
> > >
> > > it doesnt allow me to use '<' or '%' symbols.
> >
> >% is ok, but < will always be escaped in attribute values -
> d-o-a will not
> >help you here, as you can't apply it to attribute nodes.
> Either A) change
> >your JSP B) if possible, use extensions, e.g.
> saxon:disable-output-escaping
> >C) write your own serializer that will not escape '<%'
> character sequences
> >in attribute value.
> >
> >Santtu
> >
> >  XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

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





_________________________________________________________________
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-2007 All Rights Reserved.