Thomas Lehmann
unread,Oct 6, 2011, 8:47:00 AM10/6/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xs...@googlegroups.com
Hi,
is it possible to write last loop as one value-of statement?
[code]
<!-- assume the 1st day in a month is monday: what day is the 15th? -->
The 15th day is: <xsl:value-of select="str:tokenize($day-names, '|')[15 mod 7]"/><br/>
<!-- assume the 1st day in a month is monday: what day is the 26th? -->
The 26th day is: <xsl:value-of select="str:tokenize($day-names, '|')[26 mod 7]"/>
<hr/>
<!-- what position is wednesday? -->
<xsl:for-each select="str:tokenize($day-names, '|')">
<xsl:if test=". = 'Wed'">
<xsl:value-of select="position()"/>
</xsl:if>
</xsl:for-each>
[/code]