Nesting same-prefix namespaces

Discussion in 'XML' started by Hugo Wetterberg, Nov 10, 2005.

  1. Hi All,
    If i have this snippet:
    <Gengis xmlns="hw.gengis.FileProxy">
    <Styler xmlns:Styler="hw.gengis.stylers.StylerSet">
    <Styler:Styler xmlns:Styler="hw.gengis.stylers.Flat">
    <Styler:Normal>
    <Styler:Active>
    <Styler:Selected>
    </Styler:Styler>
    </Styler>
    </Gengis>

    Will then the child Styler-element that declares
    xmlns:Styler="hw.gengis.stylers.Flat" have the namespace
    "hw.gengis.stylers.StylerSet" or "hw.gengis.stylers.Flat"?

    /Hugo Wetterberg
     
    Hugo Wetterberg, Nov 10, 2005
    #1
    1. Advertisements

  2. Hugo Wetterberg wrote:

    > <Gengis xmlns="hw.gengis.FileProxy">
    > <Styler xmlns:Styler="hw.gengis.stylers.StylerSet">
    > <Styler:Styler xmlns:Styler="hw.gengis.stylers.Flat">


    > Will then the child Styler-element that declares
    > xmlns:Styler="hw.gengis.stylers.Flat" have the namespace
    > "hw.gengis.stylers.StylerSet" or "hw.gengis.stylers.Flat"?


    hw.gengis.stylers.Flat is the namespace URI (as far as that thing in the
    example deserves to be called a URI) of that element.
    See <http://www.w3.org/TR/REC-xml-names/#scoping>, the first
    xmlns:Styler="hw.gengis.stylers.StylerSet" is in scope for that Styler
    element and its descendants but for the Styler:Styler element and its
    descendants it is overridden by xmlns:Styler="hw.gengis.stylers.Flat.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Nov 10, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Hubbard
    Replies:
    2
    Views:
    978
    David Hubbard
    Jan 12, 2006
  2. Shawn
    Replies:
    2
    Views:
    490
    =?Utf-8?B?RWx0b24gVw==?=
    Feb 19, 2006
  3. =?Utf-8?B?UHVuaXNoZXI=?=

    Need same viewstate for same page across multiple servers

    =?Utf-8?B?UHVuaXNoZXI=?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    634
    John Timney \( MVP \)
    Mar 23, 2006
  4. Tim Tyler
    Replies:
    36
    Views:
    1,903
    Darryl L. Pierce
    Dec 10, 2004
  5. PA
    Replies:
    0
    Views:
    471
  6. KJ
    Replies:
    6
    Views:
    621
  7. Chris  Chiasson
    Replies:
    6
    Views:
    836
    Richard Tobin
    Nov 14, 2006
  8. Trans
    Replies:
    10
    Views:
    577
    Sean O'Halpin
    Sep 16, 2005
Loading...