This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to embed xsl:value-of into html tag
- To: <xsl-list at mulberrytech dot com>
- Subject: Re: How to embed xsl:value-of into html tag
- From: "Russ Holmes" <rholmes at elite dot com>
- Date: Fri, 25 Aug 2000 17:11:20 +1200
- References: <C18FFBA16A23D31182250090277C610A3517BC@pharmnt01>
- Reply-To: xsl-list at mulberrytech dot com
XSL code;
<input type="text" name="productName" size ="25"
maxlength="30" ><xsl:attribute name="VALUE"><xsl:value-of
select="."/></xsl:attribute>
</input>
..should work..
Russ
----- Original Message -----
From: "Joan Shu" <jshu@iscribe.com>
To: <XSL-List@mulberrytech.com>
Sent: Friday, August 25, 2000 10:22 AM
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