On Fri, Oct 06, 2000 at 11:21:34AM -0400, Paul Madsen wrote:
> For XML like
>
> <event>
> <from>
> <time>7</time>
> </from>
> <to>
> <time>18</time>
> </to>
> </event>
>
> I'd like to calculate the events temporal duration. Logically, something
>
> like
>
> <xsl:template match="event">
> <p><b>Duration: </b><xsl:substract(to/time,from/time) /></p>
> </xsl:template>
try:
<xsl:template match="event">
<xsl:value-of select="number(to/time)-number(from/time)"/>
</xsl:template>
(if there is a another list more appropriate for this type of thing,
please a kind soul redirect us there - this list is probably meant for
Sablotron specifics...)
- Guenter
--
Guenter Radestock, Universitaetsbibliothek Karlsruhe
[EMAIL PROTECTED]
http://www.ubka.uni-karlsruhe.de/~guenter