Josh Sled wrote:

How does this reconcile with the hand-generated Relax-NG schema in
<src/doc/xml/gnucash-v2.rnc>?

An attempt to convert it with trang throws the following errors:

Severity and Description        Path    Resource        Location        
Creation Time   Id
[Xerces] cos-element-consistent: Error for type '#AnonType_book'. Multiple elements with name 'count-data', with different types, appear in the model group. @see: http://www.w3.org/TR/xmlschema-1/#cos-element-consistent gnucash-xsd/target gnucash-v2.xsd line 56 1212357352094 8017 [Xerces] cos-element-consistent: Error for type '#AnonType_slotKvpSlot'. Multiple elements with name 'value', with different types, appear in the model group. @see: http://www.w3.org/TR/xmlschema-1/#cos-element-consistent gnucash-xsd/target gnucash-v2.xsd line 265 1212357352120 8019 [Xerces] cos-nonambig: "http://www.gnucash.org/XML/gnc":count-data and "http://www.gnucash.org/XML/gnc":count-data (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. @see: http://www.w3.org/TR/xmlschema-1/#cos-nonambig gnucash-xsd/target gnucash-v2.xsd line 56 1212357352111 8018 [Xerces] cos-nonambig: "http://www.gnucash.org/XML/slot":value and "http://www.gnucash.org/XML/slot":value (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. @see: http://www.w3.org/TR/xmlschema-1/#cos-nonambig gnucash-xsd/target gnucash-v2.xsd line 265 1212357352146 8020

If we're going to keep a non-authoritative schema, I'd prefer we have just
one, and convert to the other formats.  Though I don't care much, I'd
strongly suggest the much more human-friendly Relax-NG compact syntax for
that.

It definitely makes sense.

Xmlbeans expects XSD though, so before that is practical, we need to make sure the relax-ng schema can be converted to the different formats.

I tried to convert the relax-ng to DTD, and got this:

SAXException: file:/Users/minfrin/src/gnucash/gnucash-xsd/gnucash-v2.rnc:151:5 - sorry, not handled: duplicate declaration of element "value" from namespace "http://www.gnucash.org/XML/slot";

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to