This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Computed HTML Attribute Value
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Computed HTML Attribute Value
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 1 Feb 2001 14:45:19 GMT
- References: <OFD336FD33.39D8C19D-ON862569E6.004EBD74@cccis.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Oops,
You also have to take out the () after "text". This tests OK:
<xsl:element name="input">
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="name">new_delay_hr</xsl:attribute>
<xsl:attribute name="value">
<!-- <script language="JavaScript"> -->
<xsl:value-of select="delayed-start-time/text div 3600"/>
<!-- </script> -->
</xsl:attribute>
<xsl:attribute name="size">2</xsl:attribute>
</xsl:element>
Rick suiter
or more equivalently the shorter form using literal result elements
and AVT rather than xsl:element:
<input type="text"
name="new_delay_hr"
value="{delayed-start-time/text div 360}"
size="2"/>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list