File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT " Watch "XSLT " New topic


Ashish Mundra

Joined: Aug 09, 2001
Posts: 1
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.

reply at:

Ashish Jaiman
Ranch Hand

Joined: May 01, 2001
Posts: 47
can u be more explicit

-AJ<br />Sun Certified Java Programmer<br />Microsoft Certified Software Developer
Guillaume Compagnon
Ranch Hand

Joined: Aug 09, 2001
Posts: 106
I am afraid that U have not an other choice than using *dirty* CDATA instruction
for example in your XSLT program:
<input type=submit name=button1 value="
<xsl:value-of select='idName' />


Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
Or like this:
<input type="submit" name="button1" value="{@idName}"/>

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
I agree. Here's the link:
subject: XSLT