469,270 Members | 1,839 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

ms:format-date() ?

Been trying to use the ms:format-date() in one of my transformations.

I have all of the necessary declarations in my xml as in

<?xml version="1.0" ?>
<data xml:space="default"
xmlns:dt="urn:schemas-microsoft-com:datatypes">
myxml...
</data>

And my transformation:

<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:dt="urn:schemas-microsoft-com:datatypes">

<xsl:template match="/" >
<xsl:value-of select="ms:format-date(@testdatefromdatabase,'MMM dd,
yyyy')"/>
</xsl:template>
</xsl:stylesheet>

I keep getting the message that it does not recognize the ms namespace even
though it is declared.

I have the MSXML4.0 SDK installed. Could it be because I am calling the xml
transformation through the .NET XSLTransform object which does not recognize
this namespace?

Your input?

Cheers
Keith Chadwick

Nov 12 '05 #1
1 5294
Keith Chadwick wrote:
I have the MSXML4.0 SDK installed. Could it be because I am calling the xml
transformation through the .NET XSLTransform object which does not recognize
this namespace?


XslTransform class doesn't support ms:format-date() extension function.
You can get the same functionality with date:format-date function of
EXSLT (via EXSLT.NET implementation).
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Allison Bailey | last post: by
33 posts views Thread by Uwe Range | last post: by
5 posts views Thread by kpp9c | last post: by
6 posts views Thread by Eric Layman | last post: by
15 posts views Thread by James | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.