[jdom-interest] recursive getAdd'lNS()?

Brett McLaughlin brett.mclaughlin at lutris.com
Fri Oct 13 14:33:44 PDT 2000


bob wrote:

> Brett--
> 
> I'm glad to have the data-centric getAdditionalNamespaces(),
> but would a recursive version, injecting XML semantics
> also be appropriate?
> 
> <a xmlns:foo="http://toast.org/">
>   <b xmlns:foo="http://jelly.org/">
>     <c myAttr="foo:tacos/.."/>
>   </b>
> </a>
> 
> I could walk, from <a> to <c>, collecting, and overriding
> namespaces, but that seems to be a common action that
> would nicely be embodied by Element itself, maybe?
> 
> In this case, we'd end up with a single Namespace of
> foo->http://jelly.org, right?  


At the risk of revealing my lack of sleep, I'm not sure I get what you 
are wanting. Can you try and re-explain? I'm totally lost :(

-Brett

> 
> I could see Various People writing their own Element
> traverser, to figure out which namespace a prefix
> maps to at a given Element, and I could see Some
> Of Them, getting the semantics/implementation wrong.
> 
> For applications like XSLT (and maybe others),
> it's not so much as the actual Namespaces declared
> on a particular Element, but rather, the current
> mappings between prefix->nsURI.
> 
> If this sounds valid, would you accept a patch?
> 
> 	-bob
> 
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> 
> 






More information about the jdom-interest mailing list