Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Possible bug with Schema validation and the xml prefix

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Asgeir Frimannsson" <asgeirf AT gmail.com>
  • To: "Elliotte Harold" <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Possible bug with Schema validation and the xml prefix
  • Date: Thu, 14 Jun 2007 21:25:16 +1000

On 6/13/07, Elliotte Harold <elharo AT metalab.unc.edu> wrote:
Asgeir Frimannsson wrote:
> Hi,
>
> I started using XOM last weekend, and have bumped into something that
> might be a bug. It relates to parsing documents that uses XML schema
> validation. It's easier explained by example:
>

You're right. That could be a bug, though off the top of my head I don't
know if it's XOM's or Xerces's. I don't have time to dig into it right
now this morning, but I'll definitely look into it.

Anyone else have any thoughts about this, or want to cook up a JUnit
test case to reporduce it?


For what it's worth, I don't think this is a bug in XOM, but rather a
Xerces problem. It seems to be reproducible with any ref-attribute
that provides a default value, where e.g a parse-validate-output round
in xerces will simply remove any namespace and prefix of these
attributes. I'll post an xerces-specific example on the xerces j-dev
mailing list and see if they can give any further light on the issue.

cheers,
asgeir




Archive powered by MHonArc 2.6.24.

Top of Page