[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Date problem
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|