Hi Hussein, Your educated guess about the start pattern was a good one. Their idea is that one would use bnml-standard.rnc as a starting point for creating one's own *.rnc file.
I am glad that my 3.5.1 edition of XXE is RelaxNG aware, because it RelaxNG looks like an interesting system to work with (I'd not seen it in actual use before). So with your advice I can now edit instances my own minimalist customisation of BNML using XXE! I was so excited, I re-read the tutorial (it's been a while). I noticed a small typo in the last sentence of section 6.1 in chapter 2: " In this is not the case" should be "If this his not the case". regards, David. 2009/7/22 Hussein Shafie <hussein at xmlmind.com> > David Bullock wrote: > >> >> I've tried to enable a customisation for BNML ( >> http://www.elkera.com/cms/downloads/bnml_schema/ ) which is expressed in >> Relax NG. I've followed the instructions at >> http://www.xmlmind.com/xmleditor/_distrib/doc/rngsupport/friendly_content_models.html, >> noting: >> >> <relaxng compactSyntax="true" encoding="ISO-8859-1" >> location="bnml-standard.rnc"/> >> >> in the .xxe file. bnml-standard.rnc is the 'master' rnc which imports the >> other *.rnc files that comprise the grammar. >> >> I'm using XXE Professional 3.5.1 (yes it is old, but I am an occasional >> user and it has served well to date) >> >> It's mostly smooth sailing: XXE lists my template file in the 'File -> >> New' dialog, parses it and opens a new document based on it, but then >> complains: >> >> "file:/C:/Documents%20and%20Settings/Administrator/Application%20Data/XMLmind/XMLEditor/addon/BNML%201.05/bnml-standard.rnc:E:103:1: >> missing "start" element >> >> I've checked bnml-standard.rnc, and line 103 is a "grammar {" declaration. >> The text "start" indeed does not appear in that document, although it >> imports a few other *.rnc files. >> >> Assuming that Elkera know how to write and distribute a RelaxNG grammar, >> it feels like I might be stressing out 3.5.1 ... are you able to advise >> whether I need to upgrade or not? >> >> > No need to upgrade to solve this specific problem. > > XMLmind XML Editor, whatever its version, cannot work without knowing which > are the start elements of a RelaxNG grammar. > > You attempt to use in XMLmind XML Editor a set of RelaxNG schemas which > are just *building* *blocks* (this is clearly documented in Elkera's "Guide > to BNML Schema configuration.pdf") and as such, it simply cannot work. > > --> Please contact Elkera and ask them to provide you with an *end* *user* > schema, one that specifies one or more start elements. This is required by > the RelaxNG standard. Excerpts of > http://www.relaxng.org/compact-tutorial-20030326.html (recommended > reading) > --- > A grammar pattern contains one or more definitions. Each definition > associates a name with a pattern. Inside a grammar, a pattern consisting of > just a name references the definition of that name in the grammar. The name > start is special. A grammar pattern is matched by matching the definition of > start. A grammar pattern must define start. > --- > > --> If this is not possible, then please add yourself a start element at > the beginning of bnml-standard.rnc, something like this: > --- > grammar { > > start = document|contract|correspondence > ... > --- > > Note that [1] I know nothing at all about the BNML vocabulary [2] I just > guessed (but I'm not sure) that document, contract, correspondence are good > candidates for being start elements (that is, the root elements of the > documents you are going to author using XMLmind XML Editor). > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090723/4ae7f54f/attachment.htm

