Bugs item #965893, was opened at 2004-06-03 16:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=965893&group_id=16035
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Diesler (tdiesler)
Assigned to: Nobody/Anonymous (nobody)
Summary: element defines multiple namespaces for same URI
Initial Comment:
I tried to use XPath expressions, but dom4j returns
prefix "" for uri "http://www.w3.org/2001/XMLSchema",
which seems correct but it hides prefix "xs" which
would need to be used in the XPath expression.
Perhaps element.getNamespaceURI(String) should
return a List.
Therefore, the XPath is not valid. I'm not sure
whether it is legal to define multiple prefixes
for the same URI, or overlaying the default
namespace with a more defined one as it is done in this
example.
<schema
targetNamespace="http://marshalltestservice.org/types2
"
xmlns:foo="http://marshalltestservice.org/types2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:include schemaLocation
= "IncludedDefs.xsd"/>
...
</schema>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=965893&group_id=16035
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev