commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: namespaces in XML configurations
Date Sun, 20 Nov 2016 00:34:47 GMT
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 <claude@xenei.com> wrote:

> I am attempting to use configuration2 for the first time and have run into
> what I think is a bug.
>
> {noformat}
> <h:html xmlns:xdc="http://www.xml.com/books"
>         xmlns:h="http://www.w3.org/HTML/1998/html4"
>         xmlns:x='http://xenei.org'>
>  <h:head><h:title>Book Review</h:title></h:head>
>  <h:body>
>   <xdc:bookreview>
>    <x:yoo>hoo</x:yoo>
>    <xdc:title>XML: A Primer</xdc:title>
>    <h:table>
>     <h:tr align="center">
>      <h:td>Author</h:td><h:td>Price</h:td>
>      <h:td>Pages</h:td><h:td>Date</h:td></h:tr>
>     <h:tr align="left">
>      <h:td><xdc:author>Simon St. Laurent</xdc:author></h:td>
>      <h:td><xdc:price>31.98</xdc:price></h:td>
>      <h:td><xdc:pages>352</xdc:pages></h:td>
>      <h:td><xdc:date>1998/01</xdc:date></h:td>
>     </h:tr>
>    </h:table>
>   </xdc:bookreview>
>  </h:body>
> </h:html>
> {noformat}
>
> will parse but
>
> {noformat}
> <h:html xmlns:xdc="http://www.xml.com/books"
>         xmlns:h="http://www.w3.org/HTML/1998/html4">
>  <h:head xmlns:x='http://xenei.org'><h:title>Book
> Review</h:title></h:head>
>  <h:body>
>   <xdc:bookreview>
>    <x:yoo>hoo</x:yoo>
>    <xdc:title>XML: A Primer</xdc:title>
>    <h:table>
>     <h:tr align="center">
>      <h:td>Author</h:td><h:td>Price</h:td>
>      <h:td>Pages</h:td><h:td>Date</h:td></h:tr>
>     <h:tr align="left">
>      <h:td><xdc:author>Simon St. Laurent</xdc:author></h:td>
>      <h:td><xdc:price>31.98</xdc:price></h:td>
>      <h:td><xdc:pages>352</xdc:pages></h:td>
>      <h:td><xdc:date>1998/01</xdc:date></h:td>
>     </h:tr>
>    </h:table>
>   </xdc:bookreview>
>  </h:body>
> </h:html>
> {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
> <http://like-like.xenei.com>
> LinkedIn: http://www.linkedin.com/in/claudewarren
>



-- 
Matt Sicker <boards@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message