--On February 5, 2006 3:01:13 PM -0500 Josh Sled <[EMAIL PROTECTED]> wrote:

On Sun, 2006-02-05 at 14:37 -0500, Mike Alexander wrote:

When I added these (and a catalog to map the URI to the DTD), Epic
found the DTD, but it complained about a number of errors in it.  I
haven't tracked them down yet.

Which DTD?  If it's one(s) from the gnucash source tree, it's likely
out of date and unmaintained.  Chris's message was regarding
validating the datafile using the schema at
http://svn.gnucash.org/trac/browser/gnucash/trunk/src/doc/xml/gnucash
-v2.rnc .   If you prefer XSD, trang [1] can be used to convert; I
might eventually setup a Makefile rule to do so (conditionally, as
it's a somewhat obscure dep).

I'd love feedback on validation failures against the schema, even if
it's non-normative and we don't use it while emitting the datafile
presently.  There've been multiple requests for a datafile schema, so
it'd be nice to have one.

[1] http://www.thaiopensource.com/relaxng/trang.html

You're right, I was using the DTD in the source tree. I hadn't paid as much attention to the beginning of this thread as I should have. I tried converting the rnc file to an XSD schema using trang, but it produced a schema that the xerces parser (which is what Epic uses for XSD schemas) wouldn't accept so I didn't get too far. I'm not enough of a schema expert to easily understand the 50 or so error messages I got. I don't have time to pursue this right now, but perhaps I'll take a look later this week.

--
Mike Alexander           [EMAIL PROTECTED]
Ann Arbor, MI            PGP key ID: BEA343A6


_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to