File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

XSLT

Ashish Mundra
Greenhorn

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.
Thanks.

reply at: ashish_mundra@rediffmail.com

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:
<![CDATA[
<input type=submit name=button1 value="
]]>
<xsl:value-of select='idName' />
<![CDATA[
">
]]>

---
Guillaume

---------<BR>Guillaume
Mapraputa Is
Leverager of our synergies
Sheriff

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
 
jQuery in Action, 2nd edition
 
subject: XSLT