|
Subject: Re: [xsl] Date problem From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 9 Dec 2002 16:26:13 GMT |
<xsl:element name="form">
<xsl:attribute name="action">page</xsl:attribute>
<xsl:attribute name="method">post</xsl:attribute>
<xsl:attribute name="ID">form1</xsl:attribute>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">system</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="@System"/></xsl:attribute>
</xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">todayDate</xsl:attribute>
<xsl:attribute name="value">????????</xsl:attribute>
</xsl:element>
</xsl:element>
That could much more easily be written
<form action="page" method="post" ID="form1">
<input type="hidden" name="system" value="{@System}"/>
<input type="hidden" name="todayDate" value="?????"/>
</form>
Simplest is to use
<input type="hidden" name="todayDate" value="{$today}"/>
tokether with a top level param
<xsl:param name="today" select="'1066'"/>
and then just pass in the daate as a parameter when you call the
stylesheet.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Date problem, Hélder Sousa | Thread | Re: [xsl] Date problem, Mike Brown |
| Re: [xsl] Memory housekeeping in Sa, Jeff Kenton | Date | [xsl] processing xml question, Falls, Travis D (CAS |
| Month |