RE: Execution problem
"Angel Gavin" <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
Hi Alexis, Well, I'm not a guru of this (far from it!) but it seems to me that the XSLT processor is parsing 1999-05-31T13:20:00-05:00 as an element; to avoid it, quote it to enforce string conversion, i.e., <xsl:with-param name="date-time" select="'1999-05-31T13:20:00-05:00'" /> To be honest, I have not tried this example with EXSLT yet (quite busy in this moment!) but the solutions seems to be correct for me. Notice that, for instance, in case you wanted to use an element, say foo, as parameter for the date-time template, as an XSLT/XPath "rule" you would write something like <xsl:with-param name="date-time" select="foo" /> (non-quoted). In summary, you have to allow both possibilities and therefore need to quote "literal" expressions. I hope this will add some clarity to your question Cheers! Angel -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Alexis Traon (TMG) Sent: 28 June 2004 15:20 To: [email protected] Subject: [exslt] Execution problem Hello, I have got some troubles using the date/time package. I have tried to use some functions and an error occured in Internet Explorer. This is a part of the code I execute : <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date"> ..... <xsl:template match="/"> <html> <body> <xsl:call-template name="date:date"> <xsl:with-param name="date-time" select="1999-05-31T13:20:00-05:00" /> </xsl:call-template> ..... The error I have is : Reference to a namespace prefix undeclared : 'T13'. Is there something I have not well done or maybe a software to install before using the package ? Please help me ! Thanks. Alexis TRAON _______________________________________________ exslt mailing list [email protected] http://www.exslt.org/list