The Artima Developer Community
Sponsored Link

Web Services Forum
XSL 2 Adding tag as the value of an attribute

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anup Kallingal

Posts: 1
Nickname: anupk
Registered: Jun, 2007

XSL 2 Adding tag as the value of an attribute Posted: Jun 27, 2007 12:20 AM
Reply to this message Reply
Advertisement
Hi,

I am trying to generate the following piece of code from xslt2.

<script language="JavaScript" src="<c:out value='${contextPath}'/>javascript/document.js"/>

or

<input type="button" name="reset" id="btn-reset" value="<test:getLabel name='RESET_LABEL' type='RESOURCE'/>">

The value of one of the attributes is expected to be a jsp tag.

The xslt2 transformer does not allow me to generate the inner tag without escaping the closing bracket ">".
The ">" is replaced by "&gt;"

This results in the following piece of output
<input type="button" name="reset" value="<test:getLabel name='RESET_LABEL' type='RESOURCE'/&gt;">
which does not work as expected

Does any one know a way of disabling the output escaping so that I can generate the required output.

I have all ready tried this
<input type="button" name="reset">
<xsl:attribute name="value">
<xsl:text disable-output-escaping="yes"><![CDATA[<test:getLabel name='RESET_LABEL' type='RESOURCE'/>]]></xsl:text>
</xsl:attribute>
</input>

without sucess.

Thanks in advance.

Topic: Problem invoking webservice on weblogic managed server Previous Topic   Next Topic Topic: Setting up Deployment for Ruby on Rails

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use