P
Pravljica
Hello,
I don't know how to get year from dateTime.
My xml:
<P>
<A>
<Time>
<TimeBeginning>2006-04-01T08:00:00</TimeBeginning>
</Time>
</A>
</P>
Now I have this, but it does not work.
<xsl:for-each select="P/A">
<p><xsl:value-of select="year-from-dateTime(Time/TimeBeginning)"
/></p>
</xsl:for-each>
All dates in xml are in this format (2006-04-01T08:00:00).
Can you help me?
Thanks
I don't know how to get year from dateTime.
My xml:
<P>
<A>
<Time>
<TimeBeginning>2006-04-01T08:00:00</TimeBeginning>
</Time>
</A>
</P>
Now I have this, but it does not work.
<xsl:for-each select="P/A">
<p><xsl:value-of select="year-from-dateTime(Time/TimeBeginning)"
/></p>
</xsl:for-each>
All dates in xml are in this format (2006-04-01T08:00:00).
Can you help me?
Thanks