<xsl:value-of select="current-time()" />
Error: Unknown system function: corrent-time
Using
xmlns:fn="http://www.w3.org/2005/02/xpath-functions" and <xsl:value-of
select="fn:current-time()" />
Error: The URI http://www.w3.org/2005/02/xpath-functions does not identify
an external Java class
Processor: Saxon
stylsheet version:1.0
At 11:33 AM 5/14/2007 +0200, you wrote:
You can use the functions without namespace. The default namespace for any
XPath function is "http://www.w3.org/2005/02/xpath-functions" and you may
bind the functions to that namespace (you may use any prefix you choose)
but it is more customary not to do so (but in writing we sometimes add the
'fn:' prefix to emphasize that we talk about xpath functions). You can
write your code as this:
<xsl:value-of select="current-time()" />
Cheers,
-- Abel Braaksma
J. S. Rawat wrote:
Here is the syntax
<xsl:value-of select="fn:current-time()"/>
and a error "Namespace prefix fn has not been declared"
How to declared namespace?
At 11:22 AM 5/14/2007 +0200, you wrote:
fn:current-time()
fn:current-dateTime()
fn:current-date()
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--