Subject: RE: [xsl] xsl:value-of within one input From: "Lopez, William" <william.lopez@xxxxxxx> Date: Thu, 30 Jan 2003 21:05:04 -0600 |
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] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:value-of within one i, Ross Ken | Thread | [xsl] Mapping Elements into New Nam, Dan Diebolt |
RE: [xsl] xsl:value-of within one i, Ross Ken | Date | RE: XSL frustration (was: Re: [xsl], Passin, Tom |
Month |