|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I would like to use current date function in vbscript to populate the date in a textbox. I am pretty new to xsl so if there is any good sites that would be helpful as well. I realize that I cannot use the "/" although I am not really sure why at this point. here is the code I have tried so far
<xsl:template match="/"> <div> <form name="frmTime" id="frmTime" method="post" action="TimeLog.asp"> <Input Type="text"> <xsl:attribute name="txtSelectedDate"> <xsl:value-of select="<%=Replace(cstr(date), "/", "")%>"/> </xsl:attribute> </Input> </form> <br/> <xsl:apply-templates select="SELECTDATE"/> </div> </xsl:template> <xsl:template match="SELECTDATE"> <table class="timelog_catalog"> <xsl:element name="input"> <xsl:attribute name="type">text</xsl:attribute> </xsl:element> </table> </xsl:template> |
|
#2
|
|||
|
|||
|
The problem you have is that you are trying to parse ASP inside XSL... that does not work, because the page has already been rendered to translate the XML. You cannot use server side language this way. Try using client-side script.
If you are generating a static ASP page from your XSLT and XML, (which I don't think you are doing), you can write out your ASP tags like this: <xsl:text disable-output-escaping="yes"><%=ASPHERE%></xsl:text> You can't use the <> in XSL... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Xsl Date Value In Text Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|