Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Active forums

Active Forums RSS September 03, 19:59
Style properties

August 31, 21:46
antrun not found

August 31, 14:12
WCB customprofile

August 31, 12:10
End of flow not doing its job

August 24, 12:37
Sort mediaItem by expiration date

 All Forums...


XSL code for todays date

The "GX WebManager Usage" forum covers all topics concerning the actual usage of GX WebManager. Topics include using editor functions, content elements, workflow, authorizations, My WebManager, Media repository, Personalization, Page templates, etc.

Answered
Not marked as answered yet

Forums  >  GX WebManager Usage  >  XSL code for todays date


Author XSL code for todays date
abouaabasslam


Posts: 5

Posted: 30-09-2009 15:10

Hello All,

Does anyone have experience with XSL? Do you have the code for getting todays date?

Thanks in advance.

xanderl


Posts: 8

Posted: 01-10-2009 13:16

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:output method="xml"
indent="yes"
omit-xml-declaration="yes"/>

<xsl:template match="/aaa">
<xxx>
<xsl:value-of select="current-dateTime()"/>
</xxx>
<yyy>
<xsl:value-of select="current-date()"/>
</yyy>
<zzz>
<xsl:value-of select="current-time()"/>
</zzz>
</xsl:template>

</xsl:stylesheet>

williamb



Posts: 238

Posted: 01-10-2009 20:06

And if Xander's help isn't enough to fix tomorrow's XSL question , you might want to take a look at the XSLT Wiki docs and the examples.


note. Michel; there seems to be an issue with linking directly to that example page... don't know why, but the link just can't be made :(

Michel Teunissen



Posts: 190

Posted: 04-10-2009 20:36

Erhhm William,

The link doesn't work for me....

Regards,

Michel

Back to top

New message: "XSL code for todays date"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2010 GX creative online development B.V.

Disclaimer

This website (GXdeveloperweb.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.