Microsoft KB Archive/291098

= FIX: XPATH/XSLT Function-Available (Element-Available) Returns False =

Article ID: 291098

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q291098



SYMPTOMS
When you use the XPATH/XSL function-available function, you see that the function returns False for the XPATH/XSL element-available function, although the element-available function is implemented in Microsoft XML 3.0.

You expect function-available to return True for implemented XPATH/XSL functions.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Microsoft XML 3.0 Service Pack 1.

For additional information on other fixes included in Microsoft XML 3.0 Service Pack 1, click the article number below to view the article in the Microsoft Knowledge Base:

292935 INFO: List of Issues Fixed in Microsoft XML 3.0 Service Pack 1

For the latest information and downloads of MSXML, refer to the following MSDN Web site at:

http://msdn.microsoft.com/xml/default.asp



Steps to Reproduce Behavior
 Create the XML document containing several XPATH/XSL function names, including element-available function. The XML document refers to an XSL stylesheet.  Create a new text document by using Microsoft Notepad or another text editor.  Paste the following code into the new text document:   boolean ceiling concat contains count element-available floor function-available  Save the text file as C:\Functions.XML. </li> Create the XSL stylesheet to process the XML document. The XSL stylesheet checks each function listed in the XML document to see if the function is available in XSL. The stylesheet uses the XSL function-available function to check each function name.  Create a new text document by using Microsoft Notepad or another text editor.</li>  Paste the following code into the new text document: <?xml version=&quot;1.0&quot;?> <xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:msxsl=&quot;urn:schemas-microsoft-com:xslt&quot; version=&quot;1.0&quot;> <xsl:output method=&quot;xml&quot; omit-xml-declaration=&quot;yes&quot; indent=&quot;yes&quot;/>

<xsl:template match=&quot;//function&quot;> <xsl:if test=&quot;function-available(.) = False&quot;> function-available is False for <xsl:value-of select=&quot;.&quot;/> &#x20; </xsl:if> </xsl:template> </xsl:stylesheet> </li> Save the text file as C:\Functions.XSL.</li></ol> </li> Open the XML document in Microsoft Internet Explorer (IE) to process the XML document using the XSL stylesheet. Note that the following output indicates that function-available function returned False:

function-available is False for element-available

</li></ol>

Keywords: kbbug kbfix kbmsxml300sp1fix kbmsxmlnosweep KB291098

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.