Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT

 
Ashish Mundra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am generating an HTML file by applying XSLT on XML File.
I want to set caption of a button i.e. its value attribute using
<xsl:value-of select='id' /> from within XSLT file.
Help me out.
Thanks.

reply at: ashish_mundra@rediffmail.com

 
Ashish Jaiman
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u be more explicit
 
Guillaume Compagnon
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am afraid that U have not an other choice than using *dirty* CDATA instruction
for example in your XSLT program:
<![CDATA[
<input type=submit name=button1 value="
]]>
<xsl:value-of select='idName' />
<![CDATA[
">
]]>

---
Guillaume
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or like this:
<input type="submit" name="button1" value="{@idName}"/>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic