[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XML support in browsers?
- From: David Carlisle <davidc@nag.co.uk>
- To: alain.couthures@agencexml.com
- Date: Mon, 8 Jun 2009 10:33:14 +0100
> 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]