Re: name space is not functioning?

Michael Ludwig <[email protected]> Fri, 23 Nov 2007 09:56:48 +0000
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <20071123095648.GA1636@wladimir>
ken schrieb am 22.11.2007 um 12:48:54 (+0800):
> Dear brothers and sisters,
> 
> I tried to call this but the date name space is not functioning. 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:ms="urn:schemas-microsoft-com:xslt"  
> xmlns:rs="urn:schemas-microsoft-com:rowset"
> xmlns:date="http://exslt.org/dates-and-times"
> xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp">  
> 
> Seems the name space is no more valid?
> http://exslt.org/dates-and-times

It is. In order for the processor to try and map the namespace to
functionality (which may or may not be availabe, depending on your
processor and runtime), you need to include the following in your
xsl:stylesheet element:

    extension-element-prefixes="date"

If you have more than one extension prefix, you list them all, separated
by spaces:

    extension-element-prefixes="date strings [...]"

Fraternally,

Michael