<
xsl:stylesheet xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform" xmlns:pf=
"http://www.daisy.org/ns/pipeline/functions" xmlns:opf=
"http://www.idpf.org/2007/opf" xmlns=
"http://www.idpf.org/2007/opf" version=
"2.0" exclude-result-prefixes=
"#all">
<
xsl:include href=
"http://www.daisy.org/pipeline/modules/smil-utils/clock-functions.xsl"/>
<
xsl:template match=
"/*">
<
meta property=
"media:duration">
<
xsl:value-of select=
"pf:smil-seconds-to-full-clock-value(round-half-to-even(sum(//opf:meta/pf:smil-clock-value-to-seconds(.)), 4))"/>
</
meta>
</
xsl:template>
</
xsl:stylesheet>