using durations in date.js

Elisabeth Baute <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
My desired end result is to create a duration from a number of seconds and
then pass this duration to seconds to get a nice HH:MM:SS print out.

Is there a better way to do this than follows?

If I try:
    <xsl:variable name="str_seconds" select="date:seconds('P120D')"/>
I get:
  error evaluating JavaScript (line: 1211; msg: 'SyntaxError: missing ;
  before statement' token: 'undefined')

BUT if I try
    <xsl:variable name="str_seconds" select="date:seconds('2003')"/>
I don't get an error.

Am I misreading the documentation?

Thank you for any help you can give me,
Elisabeth Baute

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.