XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Vasileios GiannakopoulosSubject: parsing values from xslt to html
Author: Vasileios Giannakopoulos
Date: 25 Feb 2007 01:38 PM
Hello,
I have this code:
<input type="checkbox" name="checkbox" value=""/><xsl:value-of select="MOD_CODE"/>
and i want the value="" to be equal of the xsl value.
Does anyone knows how?
thank you a lot!

Postnext
Elias HuterSubject: parsing values from xslt to html
Author: Elias Huter
Date: 26 Feb 2007 05:53 AM
Hi,

if I get it correctly you want something like:

<input type="checkbox" name="checkbox" value="ABC"/>ABC</input>

as output?

You could try this although I dont know if it works:

<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute>
<xsl:attribute name="name">checkbox</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="MOD_CODE"/></xsl:attribute>
<xsl:value-of select="MOD_CODE"/>
</xsl:element>

Regards
Elias

Posttop
Ivan PedruzziSubject: parsing values from xslt to html
Author: Ivan Pedruzzi
Date: 26 Feb 2007 06:08 AM
Originally Posted: 26 Feb 2007 06:09 AM

Using attribute value template keeps the code simple

<input type="checkbox" name="checkbox" value="{MOD_CODE}"/>


Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.