Re: [xml] Unique + Key/Keyref



On Sun, Dec 06, 2009 at 03:03:46PM -0700, Aaron Dalton wrote:
I am having a hard time finding documentation about what features LibXML
actually supports and what its limitations are.  Here is my issue.

I have a schema (http://abstractgamers.org/xml/iago-report.xsd) that I
am trying to use to validate a particular instance document
(http://abstractgamers.org/xml/iago-report-test.xml).  The Perl bindings
and xmllint both say the document is valid.

xmllint --noout --schema http://abstractgamers.org/xml/iago-report.xsd \
http://abstractgamers.org/xml/iago-report-test.xml

However, there is a duplicate "iagoid" that violates <xs:unique
name="IAGOids"> and <team id="3"> that violates <xs:keyref
name="TeamIDsRef">.  Does LibXML support unique and key/keyrefs in
schemas?  Am I doing something in the instance document that is
incorrect (although my xml editor and other online validators catch the
error)?

I sincerely appreciate your time and any assistance you may be able to
offer.

  And me I have a very hard time understanding the XSD spec
  http://www.w3.org/TR/xmlschema-1/

I sincerely appreciate your time and any assistance you may be able to
offer.

  That said 1/ you could try to reproduce the problem with a minimal
example 2/ come up with a patch , either might help fixing your troubles

We have a number of test case using key/keyref in the libxml2 testsuite
so this should be a supported feature.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]