[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: referencing a param inside a template
Jeff, Instead of <input ... value='$ID'> you need to use an "attribute value template" [1] which is delimited by curly braces like this: <input ... value='{$ID}'>. Where you require greater control, such as the conditional inclusion of an attribute or a complex evaluation, you can use the <xsl:attribute> element [2], as in <input> <xsl:attribute name='value> <xsl:value-of select='$ID'/> </xsl:attribute> </input> Cheers, Stuart [1] http://www.w3.org/TR/xslt#dt-attribute-value-template [2] http://www.w3.org/TR/xslt#creating-attributes XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|