[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Name Space Question
- From: Jonathan Borden <jborden@mediaone.net>
- To: "Conrad, Bill (ThomasTech)" <bconrad@thomastechsolutions.com>,xml-dev@lists.xml.org
- Date: Tue, 12 Jun 2001 08:43:58 -0400
Conrad, Bill (ThomasTech) wrote:
> Can someone give me an example of where the name space of the
> attributes of an element could be different then the name space of the
> element.
these examples _all_ have different namespace names for the local element
this-ns and the attribute that-ns:
<example xmlns="http://example.org">
<this-ns that-ns="1"/>
</example>
<example xmlns:foo="http://example.org">
<this-ns:foo that-ns="1"/>
</example>
<example xmlns:foo="http://example.org"
xmlns:bar="http://example.org/bar">
<foo that-ns:bar="1"/>
</example>
<example xmlns:foo="http://example.org"
xmlns:bar="http://example.org/bar">
<this-ns:foo that-ns:bar="1"/>
</example>
that is, an attribute _DOES NOT EVER_ inherit the namespace of its
containing element.
-Jonathan