Subject: RE: How to embed xsl:value-of into html tag From: "ciaran byrne" <ciaran.byrne@xxxxxxx> Date: Fri, 25 Aug 2000 07:39:28 -0700 |
Hi Joan, What is it that you're trying to achieve ? You have in your XSL '<xsl:value-of select="."/>' to be the value of 'value' yet you have 'XML Bible' as the desired output. Is it that you want 'XML Bible' to be the output ? If that is the case maybe you can build up an attribute containing value='XML Bible' e.g. <xsl:template name="input"> <input> <xsl:attribute name="value"><xsl:value-of select="'XML Bible'"/></xsl:attribute> <!-- Add other attributes --> </input> </xsl:template> That would output <input value="XML Bible"></input> You can build up an attribute set,etc. which would simplify the process. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Joan Shu Sent: Thursday, August 24, 2000 3:22 PM To: 'XSL-List@xxxxxxxxxxxxxxxx' Subject: How to embed xsl:value-of into html tag Hi, I can't get this working. value of the input field will be <xsl:value-of select="."> instead of the real name -- XML Bible. I guess XSLT will not transform any XSL statement inside a html tag. Any workaround will be really appreciated. Thanks, Joan =============xsl code================= <xsl:template match="productName"> <input type="text" name="productName" value='<xsl:value-of select="."/>' size="25" maxlength="30" /> </xsl:template> =============xml code================ <?xml version="1.0"?> <productName> XML Bible </productName> =============output============== <input type="text" name="productName" value='<xsl:value-of select="."/>' size ="25" maxlength="30" /> ==========what I want============== <input type="text" name="productName" value='XML Bible' size ="25" maxlength="30" /> 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: How to embed xsl:value-of into , Russ Holmes | Thread | Re: How to embed xsl:value-of into , rugowski |
RE: Conditional selection of Templa, ciaran byrne | Date | RE: The XSL-List Digest V3 #192, Brooks, James |
Month |