[Gnucash-changes] r13105 - gnucash/trunk - Emit all used namespaces; add XML datafile schema.

Mike Alexander mta at umich.edu
Sun Feb 5 23:09:37 EST 2006


--On February 5, 2006 3:01:13 PM -0500 Josh Sled 
<jsled at asynchronous.org> 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           mta at umich.edu
Ann Arbor, MI            PGP key ID: BEA343A6




More information about the gnucash-devel mailing list