[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:value-of within one input

Subject: RE: xsl:value-of within one input
From: "Lopez, William" <william.lopez@xxxxxxx>
Date: Thu, 30 Jan 2003 21:05:04 -0600
xsl curly brackets
You've got it
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.0 Strict//EN"
encoding="iso-8859-1" indent="yes"/>
<xsl:template match="/">
<html>
...tags

<input type="hidden" name="{@problema_id}" value="{@problema_id}"/>

...tags
</html>
<xsl:template/>

First, this is just an example- there are many ways to get your desired
result (which you do not explicitly state but the above should get you what
you need - input element). 

This is assuming you are in the same context/tree node (sorry, not precise
on the lingo) as the attribute you seek or else you will need to provide the
appropiate XPath expression, e.g. ./parent_node/@problema_id.  BTW, the
curly bracket notation is called an Attribute Value Template (AVT)
'{@problema_id}'. Scan the web...tons of tutorials, examples.

HTH,
-Will

-----Original Message-----
From: Dionisio Ruiz de Zarate [mailto:dionisio@xxxxxxxxxxxxx]
Sent: Thursday, January 30, 2003 8:38 PM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  xsl:value-of within one input


How can i make this?:
<input type="hidden" name="problema_id" value="<xsl:value-of
select="problema_id""/>

Thanks



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.