473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Nesting same-prefix namespaces

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

Nov 10 '05 #1
1 1135

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/
Nov 10 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Hertz | last post by:
I have hundreds of samples of XML documents on my harddisc. But all of them lack the one or another feature of XML. Some XML documents have no attributes some others are rather flat (nesting...
0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
8
by: CoolPint | last post by:
I read in books that nested class cannot access private members of nesting class and vice versa unless they are made friends. Somehow, my compiler is letting my nested class member functions access...
8
by: Hardrock | last post by:
I encountered some difficulty in implementing dynamic loop nesting. I.e. the number of nesting in a for(...) loop is determined at run time. For example void f(int n) { For(i=0; i<=K; i++)...
3
by: Sparky Arbuckle | last post by:
I'm sure this question has been posted many times, but I have yet to find an answer for it. I am trying to nest a repeater (or datalist) inside of a datagrid and am trying to figure out how to nest...
6
by: Neal | last post by:
Hi All, I used an article on XSLT and XML and creating a TOC written on the MSDN CodeCorner. ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dncodecorn/html/corner042699.htm However, it did'nt...
4
by: kl.vanw | last post by:
I would like to count the nesting level in template classes. How can I make the following work? #include <assert.h> template <class T> class A { public: A() { // what goes here?
12
by: TristaSD | last post by:
Hi, Here's a nice footer I get inside every php page I write in wwwroot on my server. The code gets parsed just fine. I installed php5.2-win32 under W2K Server, IIS 5.0. I've installed php on...
6
by: stephen.cunliffe | last post by:
Hi, I'm looking for opinion/facts/arguments on the correct nesting of UL, OL, & LI elements. For example, this is what I want (unordered list): * Item 1 * Item 2 * Item 3
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.