xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Regier Avery J <RegierAveryJ AT JohnDeere.com>
- To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Cc: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] XOM 1.2.8 released
- Date: Mon, 14 May 2012 16:26:35 -0500
Or look at it this way: I have just had a default namespace context created
for me and there is a big part of the namespaces list inaccessible via
lookup(). A part that is typically the most important.
- Avery
On May 14, 2012, at 4:13 PM, "Regier Avery J" <RegierAveryJ AT JohnDeere.com>
wrote:
> Look at the whole context. It starts with making a context based on the
> contents of the document in question. Then I ask the context for an unbound
> namespace. This worked in previous versions of xom. It is quite handy to
> find an unbound namespace anywhere in the document. It is especially
> handy since in the context of my code the whole point is to setup a
> namespace context with which i need to robustly reference any namespace in
> the document, and the createnamespace() has just done the equivalent work
> of traversing the tree for namespaces. To do the same now I think I would
> have to iterate the document again searching for namespaces that have no
> prefix assigned. Maybe this is more correct anyways. In a large doc this
> will perform poorly. I would probably have to provide a heuristic to search
> only n levels deep or only the first child and risk missing some. It is
> frustrating because the knowledge is so close at hand but inaccessible
> behind this new line of code.
>
> - Avery
>
> On May 14, 2012, at 3:52 PM, "Elliotte Rusty Harold" <elharo AT ibiblio.org>
> wrote:
>
>> On Mon, May 14, 2012 at 1:50 PM, Elliotte Rusty Harold
>> <elharo AT ibiblio.org> wrote:
>>> On Mon, May 14, 2012 at 1:44 PM, Regier Avery J
>>> <RegierAveryJ AT johndeere.com> wrote:
>>>> It seems to be lost here that I am not attempting to bind to the null
>>>> namespace. I am attempting to bind a prefix to a non-null namespace that
>>>> currently has no prefix because the document did not specify it with one.
>>>
>>
>> That doesn't look like what your code is doing. See here:
>>
>> context.addNamespace("a", context.lookup(""));
>>
>> context.lookup("") should always return no namespace because "" cannot
>> be bound in an XPath context.
>>
>>
>> --
>> Elliotte Rusty Harold
>> elharo AT ibiblio.org
>> _______________________________________________
>> XOM-interest mailing list
>> XOM-interest AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/xom-interest
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
Re: [XOM-interest] XOM 1.2.8 released
, (continued)
- Re: [XOM-interest] XOM 1.2.8 released, Michael Kay, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Elliotte Rusty Harold, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Regier Avery J, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Elliotte Rusty Harold, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Regier Avery J, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Michael Kay, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Regier Avery J, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Elliotte Rusty Harold, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Elliotte Rusty Harold, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Regier Avery J, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Regier Avery J, 05/14/2012
- Re: [XOM-interest] XOM 1.2.8 released, Elliotte Rusty Harold, 05/15/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Regier Avery J, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Michael Kay, 05/14/2012
-
Re: [XOM-interest] XOM 1.2.8 released,
Regier Avery J, 05/14/2012
Archive powered by MHonArc 2.6.24.