summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/ttml.time.seconds.page
blob: 1db48e9954f789bcfd857c4d7d4986973d8f9811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0"?>
<page xmlns="http://projectmallard.org/1.0/" id="ttml.time.seconds" type="topic" style="xslt-template"><info><link type="guide" xref="ttml" group="templates"/><link type="guide" xref="templates" group="ttml"/><revision version="3.4" date="2012-03-02" status="final"/><desc>Return the number of seconds for a time expression.</desc></info><title>ttml.time.seconds</title><p>Return the number of seconds for a time expression.</p>
  
  
  <synopsis><title>Parameters</title><terms>
    <item>
      <title><code>time</code></title>
      <p>A TTML time expression.</p>
    </item>
  </terms></synopsis>
  <p>This template takes a time expression as used by the <code>begin</code>, <code>end</code>, and <code>dur</code> attributes and returns the number of seconds that expression respresents. Time expressions may be any number parsable by the XPath <code>number</code> function followed by one of the units <code>ms</code> (milliseconds), <code>s</code> (seconds), <code>m</code> (minutes), or <code>h</code> (hours). It returns <code>0</code> if the time expression is invalid.</p>
  <p>This template provides support only for the <code>#time-offset</code> TTML feature. It does not support other methods of specifying times.</p>
</page>