This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: ms:string-compare does NOT work in MSXML 4.0
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 12 Mar 2002 19:56:40 +0100
- Subject: RE: [xsl] ms:string-compare does NOT work in MSXML 4.0
- Reply-to: xsl-list at lists dot mulberrytech dot com
Are you trying this in IE? Won't work (IE doesn't use MSXML4).
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Gregory Pearson
> Sent: Tuesday, March 12, 2002 7:47 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] ms:string-compare does NOT work in MSXML 4.0
>
>
> Hi.
>
> I downloaded and installed the latest MSXML 4.0 SDK and
> everything seems to work fine except for one thing. What I can
> NOT do is run any of the examples that use the MXSML Extensions:
> ms:string-compare, ms:format-date, etc.
>
> Everytime I run of these "extensions" I get the following error:
> for example when running the ms:string-compare ...
>
> Namespace 'urn:schemas-microsoft-com:xslt' does not contain
> function 'string-compare'. -->ms:string-compare(., '2', 'en-US', 'i')<--
>
> The tests I have been attempting have been copied VERBATIMLY from
> the MSXML 4.0 SDK Help Documentation. If you have it installed
> on your machine you can see the example given below under the
> help page for "ms:string-compare".
>
> So, the question is, why are these extensions not working? Do I
> need to install something else? PLEASE HELP!!
>
>
> ************************************************************************
> Here is an example (taken verbatimly from the MSXML 4.0 SDK Help
> Documentation which does not work on my machine AFTER having
> installed MSXML 4.0):
> ************************************************************************
>
>
> [xml]
>
> <?xml version="1.0"?>
> <?xml-stylesheet href="format.xsl" type="text/xsl"?>
>
> <string-sample>
>
> <string>1</string>
> <string>2</string>
> <string>3</string>
>
> </string-sample>
>
>
> ¯
> ------------------------------------------------------------------
> ---------------------
>
>
> [xsl]
>
> <?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">
>
> <xsl:output method="html" omit-xml-declaration="yes"/>
>
> <xsl:template match="/string-sample">
>
> <xsl:for-each select="string">
>
> <xsl:value-of select="ms:string-compare(.,
> '2', 'en-US', 'i')"/>,
>
> </xsl:for-each>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
>
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list