Kevin Flynn wrote: > > I'm an old XmlMind user, now evaluating XmLMind for my new employer. > Specifically, I'm looking at using XmlMind for editing highly customized > (i.e small subset) DocBook 5 documents. > > I've created an RNG customization layer which worked fine until I > introduced the following customization: > > <define name="db.common.data.attributes"> > <attribute name="fileref"> > <a:documentation>Identifies the location of the data by > URI</a:documentation> > <data type="anyURI"/> > </attribute> > </define> > > When I open a document that references the customized schema in XXE, I > now get the following error:
I would recommend to validate your schemas using the "rngvalid" command line tool (found in XXE_install_dir/bin/). This is much more handy than starting XXE just to get this kind of errors. > file:/home/kevin/.xxe/addon/ecebook/rng/ecebook.rng:E:212:9: datatype > "anyURI" from library "" not recognized > > <data type="anyURI"/> > > appears many places in the base docbook.rng file, so I don't understand > why I can't use it in the customization...I don't know if XmlMind is the > source of this problem, or if it is a Relax NG thing, or (perhaps the > most likely option) my mistake. Can anybody help? > You need to declare that you are using the "W3C XML Schema Part 2" datatype library by adding this attribute: datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" to the elements using datatypes (or to the common ancestor of the elements using datatypes). Recommended reading: RELAX NG By Eric van der Vlist http://www.oreilly.com/catalog/relax/

