|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: A multi-step approach on defining object-orientednatureof
Rich Salz <rsalz@d...> wrote: |> Namespaces should never have been scoped. That's a big part of what |> drove the implementation complexity up to such a large degree. | | But it's conceptually much cleaner. s/much/somewhat/ and then only maybe. | Who likes pascal style variable declarations at the top, isntead of | local scope rules? Even if it's easy to analogise element hierarchies into "block structure" there is no such thing as "local scope rules" without a lot of ancillary machinery. The reality is that scopes are nested, and resolution is always with respect to the innermost defining block, not the immediately "local" block. This implies that a proper resolution mechanism will have to maintain a stack of scoped definitions, which is where the complexity comes in. | It also makes component software easier, since I can just locally use a | "ds" prefix to indicate XML DSIG, without having to globally coordinate | with every part of a program working on a document. What if this prefix is already "taken" by an "outer block"? (Joe Engish's typology of "neurosis" and "psychosis" comes to mind.)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








