Microsoft KB Archive/291595

= FIX: XQL Operator &quot;//&quot; Matching in MSXML 3.0 Is Not Backward Compatible =

Article ID: 291595

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q291595



SYMPTOMS
The &quot;http://www.w3.org/TR/WD-xsl&quot; namespace in MSXML versions earlier than 3.0 allows the XQL recursive descent (//) operator to be followed by nothing. The &quot;http://www.w3.org/1999/XSL/Transform&quot; namespace in MSXML version 3.0 does not allow the // operator to be followed by nothing.



RESOLUTION
The problem is discussed here for reference purposes only.

Use the current namespace and its corresponding methods instead of the previous namespaces and methods.



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
  Paste the following code into a new text document, and save the file as Repro.xml:     red text     Paste the following text into another new document, and save the file as Repro.xsl in the same location as the XML file you just created: <?xml version='1.0' encoding='ISO-8859-1'?> <xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/TR/WD-xsl&quot;> <xsl:template match=&quot;/&quot;> <xsl:apply-templates select=&quot;ROOT&quot; /> </xsl:template> <xsl:template match=&quot;ROOT&quot;> <xsl:for-each select=&quot;MESSAGE&quot;> <xsl:apply-templates select=&quot;.&quot; /> </xsl:for-each> </xsl:template> <xsl:template match=&quot;MESSAGE//&quot;><xsl:copy><xsl:apply-templates select=&quot;@*&quot;/><xsl:apply-templates /></xsl:copy></xsl:template> </xsl:stylesheet> </li>  In Microsoft Internet Explorer, browse to Repro.xml. In MSXML 2.5, the output data shows the following: <font color=&quot;red&quot;>red text </MESSAGE> In MSXML 3.0, the output data shows the following:  red text </MESSAGE> Note that the color=&quot;red&quot; attribute section is missing in the MSXML 3.0 output data. The output text &quot;red text&quot; appears in red colour in MSXML 2.5 and in black MSXML 3.0. </li></ol>

Keywords: kbbug kbfix kbmsxml300sp1fix kbmsxmlnosweep KB291595

-

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

© Microsoft Corporation. All rights reserved.