[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

ms:string-compare does NOT work in MSXML 4.0

Subject: ms:string-compare does NOT work in MSXML 4.0
From: "Gregory Pearson" <GregP@xxxxxxxxx>
Date: Tue, 12 Mar 2002 09:46:57 -0900
ms string compare
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>


―---------------------------------------------------------------------------------------




<?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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.