souzaonofre / xpathchecker

Automatically exported from code.google.com/p/xpathchecker
0 stars 0 forks source link

Form with prefix is missing for a namespace which has no elements in XML #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open the following XML in Firefox:
<?xml version="1.0"?>
<root xmlns="testNS" xmlns:s="for_attributes">
    <child s:name="Jack" s:lastname="Thomson" s:age="13" />
    <child s:name="Ivan" s:lastname="Ivanov" s:age="66" />
</root>
2. Open XPath Checker.
3. The problem is that only 'testNS' with prefix 't' is available.

It was expected that both namespaces are available in order to selects
attributes only e.g. with the following XPAth: "//@s:*" where 's' stands
for the "for_attributes" namespace. 

Reproduced on Firefox 3.6.3 with addon v0.4.3 under MS WinXP SP3.

Original issue reported on code.google.com by grust...@gmail.com on 20 Apr 2010 at 6:08