| 1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 |
<xsl:stylesheet version="1.0" |
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 4 |
xmlns:date="http://exslt.org/dates-and-times" |
| 5 |
extension-element-prefixes="date"> |
| 6 |
|
| 7 |
<xsl:output method="text"/> |
| 8 |
|
| 9 |
<xsl:template match="date"> |
| 10 |
Test Date : <xsl:value-of select="@date"/> |
| 11 |
|
| 12 |
year : <xsl:value-of select="date:year(@date)"/> |
| 13 |
|
| 14 |
leap-year : <xsl:value-of select="date:leap-year(@date)"/> |
| 15 |
|
| 16 |
month-in-year : <xsl:value-of select="date:month-in-year(@date)"/> |
| 17 |
|
| 18 |
month-name : <xsl:value-of select="date:month-name(@date)"/> |
| 19 |
|
| 20 |
month-abbreviation : <xsl:value-of select="date:month-abbreviation(@date)"/> |
| 21 |
|
| 22 |
week-in-year : <xsl:value-of select="date:week-in-year(@date)"/> |
| 23 |
|
| 24 |
day-in-year : <xsl:value-of select="date:day-in-year(@date)"/> |
| 25 |
|
| 26 |
day-in-month : <xsl:value-of select="date:day-in-month(@date)"/> |
| 27 |
|
| 28 |
day-of-week-in-month : <xsl:value-of select="date:day-of-week-in-month(@date)"/> |
| 29 |
|
| 30 |
day-in-week : <xsl:value-of select="date:day-in-week(@date)"/> |
| 31 |
|
| 32 |
day-name : <xsl:value-of select="date:day-name(@date)"/> |
| 33 |
|
| 34 |
day-abbreviation : <xsl:value-of select="date:day-abbreviation(@date)"/> |
| 35 |
|
| 36 |
time : <xsl:value-of select="date:time(@date)"/> |
| 37 |
|
| 38 |
hour-in-day : <xsl:value-of select="date:hour-in-day(@date)"/> |
| 39 |
|
| 40 |
minute-in-hour : <xsl:value-of select="date:minute-in-hour(@date)"/> |
| 41 |
|
| 42 |
second-in-minute : <xsl:value-of select="date:second-in-minute(@date)"/> |
| 43 |
</xsl:template> |
| 44 |
|
| 45 |
</xsl:stylesheet> |
| 46 |
|