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

Asgeir Frimannsson asgeirf at gmail.com
Thu Jun 14 07:25:16 EDT 2007


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


More information about the XOM-interest mailing list