Re: namespaces in XML configurations

2016-11-20 Thread Matt Sicker
Whoops, I didn't even notice that!

On 20 November 2016 at 08:06, Claude Warren  wrote:

> @sebb
>
> good catch.
>
> On Sun, Nov 20, 2016 at 1:33 PM, sebb  wrote:
>
> > It may be valid XML, but AFAICT the scope of a namespace is the
> > enclosing element.
> >
> > So 'x' is only defined in the head, but is being used in the body.
> >
> > Try what happens when the namespace is defined and used only in the
> > body element.
> >
> >
> > On 20 November 2016 at 00:34, Matt Sicker  wrote:
> > > Considering that's valid XML, that certainly sounds like a bug. Could
> you
> > > file an issue on jira for it?
> > > https://issues.apache.org/jira/browse/CONFIGURATION
> > >
> > > On 19 November 2016 at 17:52, Claude Warren  wrote:
> > >
> > >> I am attempting to use configuration2 for the first time and have run
> > into
> > >> what I think is a bug.
> > >>
> > >> {noformat}
> > >> http://www.xml.com/books;
> > >> xmlns:h="http://www.w3.org/HTML/1998/html4;
> > >> xmlns:x='http://xenei.org'>
> > >>  Book Review
> > >>  
> > >>   
> > >>hoo
> > >>XML: A Primer
> > >>
> > >> 
> > >>  AuthorPrice
> > >>  PagesDate
> > >> 
> > >>  Simon St. Laurent
> > >>  31.98
> > >>  352
> > >>  1998/01
> > >> 
> > >>
> > >>   
> > >>  
> > >> 
> > >> {noformat}
> > >>
> > >> will parse but
> > >>
> > >> {noformat}
> > >> http://www.xml.com/books;
> > >> xmlns:h="http://www.w3.org/HTML/1998/html4;>
> > >>  Book
> > >> Review
> > >>  
> > >>   
> > >>hoo
> > >>XML: A Primer
> > >>
> > >> 
> > >>  AuthorPrice
> > >>  PagesDate
> > >> 
> > >>  Simon St. Laurent
> > >>  31.98
> > >>  352
> > >>  1998/01
> > >> 
> > >>
> > >>   
> > >>  
> > >> 
> > >> {noformat}
> > >>
> > >> will not.
> > >>
> > >> Note the only difference is  that the namespace for "x" is not
> declared
> > on
> > >> the first element.  Is this a bug or intended?
> > >>
> > >> Claude
> > >>
> > >>
> > >> --
> > >> I like: Like Like - The likeliest place on the web
> > >> 
> > >> LinkedIn: http://www.linkedin.com/in/claudewarren
> > >>
> > >
> > >
> > >
> > > --
> > > Matt Sicker 
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
> >
> >
>
>
> --
> I like: Like Like - The likeliest place on the web
> 
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
Matt Sicker 


Re: namespaces in XML configurations

2016-11-20 Thread Claude Warren
@sebb

good catch.

On Sun, Nov 20, 2016 at 1:33 PM, sebb  wrote:

> It may be valid XML, but AFAICT the scope of a namespace is the
> enclosing element.
>
> So 'x' is only defined in the head, but is being used in the body.
>
> Try what happens when the namespace is defined and used only in the
> body element.
>
>
> On 20 November 2016 at 00:34, Matt Sicker  wrote:
> > Considering that's valid XML, that certainly sounds like a bug. Could you
> > file an issue on jira for it?
> > https://issues.apache.org/jira/browse/CONFIGURATION
> >
> > On 19 November 2016 at 17:52, Claude Warren  wrote:
> >
> >> I am attempting to use configuration2 for the first time and have run
> into
> >> what I think is a bug.
> >>
> >> {noformat}
> >> http://www.xml.com/books;
> >> xmlns:h="http://www.w3.org/HTML/1998/html4;
> >> xmlns:x='http://xenei.org'>
> >>  Book Review
> >>  
> >>   
> >>hoo
> >>XML: A Primer
> >>
> >> 
> >>  AuthorPrice
> >>  PagesDate
> >> 
> >>  Simon St. Laurent
> >>  31.98
> >>  352
> >>  1998/01
> >> 
> >>
> >>   
> >>  
> >> 
> >> {noformat}
> >>
> >> will parse but
> >>
> >> {noformat}
> >> http://www.xml.com/books;
> >> xmlns:h="http://www.w3.org/HTML/1998/html4;>
> >>  Book
> >> Review
> >>  
> >>   
> >>hoo
> >>XML: A Primer
> >>
> >> 
> >>  AuthorPrice
> >>  PagesDate
> >> 
> >>  Simon St. Laurent
> >>  31.98
> >>  352
> >>  1998/01
> >> 
> >>
> >>   
> >>  
> >> 
> >> {noformat}
> >>
> >> will not.
> >>
> >> Note the only difference is  that the namespace for "x" is not declared
> on
> >> the first element.  Is this a bug or intended?
> >>
> >> Claude
> >>
> >>
> >> --
> >> I like: Like Like - The likeliest place on the web
> >> 
> >> LinkedIn: http://www.linkedin.com/in/claudewarren
> >>
> >
> >
> >
> > --
> > Matt Sicker 
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
I like: Like Like - The likeliest place on the web

LinkedIn: http://www.linkedin.com/in/claudewarren


Re: namespaces in XML configurations

2016-11-20 Thread sebb
It may be valid XML, but AFAICT the scope of a namespace is the
enclosing element.

So 'x' is only defined in the head, but is being used in the body.

Try what happens when the namespace is defined and used only in the
body element.


On 20 November 2016 at 00:34, Matt Sicker  wrote:
> Considering that's valid XML, that certainly sounds like a bug. Could you
> file an issue on jira for it?
> https://issues.apache.org/jira/browse/CONFIGURATION
>
> On 19 November 2016 at 17:52, Claude Warren  wrote:
>
>> I am attempting to use configuration2 for the first time and have run into
>> what I think is a bug.
>>
>> {noformat}
>> http://www.xml.com/books;
>> xmlns:h="http://www.w3.org/HTML/1998/html4;
>> xmlns:x='http://xenei.org'>
>>  Book Review
>>  
>>   
>>hoo
>>XML: A Primer
>>
>> 
>>  AuthorPrice
>>  PagesDate
>> 
>>  Simon St. Laurent
>>  31.98
>>  352
>>  1998/01
>> 
>>
>>   
>>  
>> 
>> {noformat}
>>
>> will parse but
>>
>> {noformat}
>> http://www.xml.com/books;
>> xmlns:h="http://www.w3.org/HTML/1998/html4;>
>>  Book
>> Review
>>  
>>   
>>hoo
>>XML: A Primer
>>
>> 
>>  AuthorPrice
>>  PagesDate
>> 
>>  Simon St. Laurent
>>  31.98
>>  352
>>  1998/01
>> 
>>
>>   
>>  
>> 
>> {noformat}
>>
>> will not.
>>
>> Note the only difference is  that the namespace for "x" is not declared on
>> the first element.  Is this a bug or intended?
>>
>> Claude
>>
>>
>> --
>> I like: Like Like - The likeliest place on the web
>> 
>> LinkedIn: http://www.linkedin.com/in/claudewarren
>>
>
>
>
> --
> Matt Sicker 

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: namespaces in XML configurations

2016-11-19 Thread Matt Sicker
Considering that's valid XML, that certainly sounds like a bug. Could you
file an issue on jira for it?
https://issues.apache.org/jira/browse/CONFIGURATION

On 19 November 2016 at 17:52, Claude Warren  wrote:

> I am attempting to use configuration2 for the first time and have run into
> what I think is a bug.
>
> {noformat}
> http://www.xml.com/books;
> xmlns:h="http://www.w3.org/HTML/1998/html4;
> xmlns:x='http://xenei.org'>
>  Book Review
>  
>   
>hoo
>XML: A Primer
>
> 
>  AuthorPrice
>  PagesDate
> 
>  Simon St. Laurent
>  31.98
>  352
>  1998/01
> 
>
>   
>  
> 
> {noformat}
>
> will parse but
>
> {noformat}
> http://www.xml.com/books;
> xmlns:h="http://www.w3.org/HTML/1998/html4;>
>  Book
> Review
>  
>   
>hoo
>XML: A Primer
>
> 
>  AuthorPrice
>  PagesDate
> 
>  Simon St. Laurent
>  31.98
>  352
>  1998/01
> 
>
>   
>  
> 
> {noformat}
>
> will not.
>
> Note the only difference is  that the namespace for "x" is not declared on
> the first element.  Is this a bug or intended?
>
> Claude
>
>
> --
> I like: Like Like - The likeliest place on the web
> 
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
Matt Sicker