XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML support in browsers?



> I read that "3" is an XPath 1.0 answer while "8" is an XPath 2.0 answer, 
> is it correct ?

No. The answer should be the same (8) in xpath 1 and 2.

The statement in the assertion that it has 3 is wrong.


nsa:data has 2 namespace nodes (with names "xml" and "nsa"
x        has 3 namespace nodes (with names "xml" and "nsa" "edi"
y        has 3 namespace nodes (with names "xml" and "nsa" "edi"
             ==
total:       8



 <nsa:testsuite 
 xmlns:nsa="http://www.mozilla.org/firefox/xslt/namespace-axis";>
    ...
     <nsa:test id="20">
         <nsa:assertion expectedvalue="3" 
 uri="http://www.w3.org/TR/xpath#namespace-nodes";>The
             'nsa:data' element sub-tree has a total of 3 namespace 
 nodes.</nsa:assertion>> <nsa:data>
             <x xmlns:edi="http://ecommerce.example.org/schema";>
                 <y/>
             </x>
         </nsa:data>
     </nsa:test>
 </nsa:testsuite>


David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS