OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] RELAX NG: Are Grammar Elements Always Required to Contain a Start Child Element?

Thanks George,

That makes sense.  I was thinking that it might end up being a
situation like this.

Thanks again for your help.


-----Original Message-----
From: George Cristian Bina [mailto:george@oxygenxml.com] 
Sent: Thursday, September 20, 2007 2:08 AM
To: Rudick, Tom
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] RELAX NG: Are Grammar Elements Always Required
to Contain a Start Child Element?

Hi Tom,

That file that you create only to be included in another schema is not 
valid by itself, however, it may contribute without problems to form a 
valid grammar when included from another file.

Similar issues appear not only for Relax NG but also for XSLT, XQuery 
and even XML documents.

oXygen handles these cases through validation scenarios. For instance 
you can define a validation scenario for that Relax NG file and specify

that instead of validating that file alone oXygen should validate the 
file that includes it.

More information about validation scenarios can be found here
video demo:
user guide entry:

Best Regards,
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Rudick, Tom wrote:
> Hello All,
> I am somewhat new to RELAX NG and just starting to get my feet wet
> more complex topics.  I am trying to create a "modular" schema by
> making use of the <include> element.  I have followed the schemas
> in the RELAX NG Tutorial
> (http://www.oasis-open.org/committees/relax-ng/tutorial.html) in
> section 9.3 to merge grammars using the <include> element.
> However, both my current editor (OxygenXML) and jing, tell me that
> document to be included is 'missing "start" element' and that it is
> invalid.  I have noticed that in section 4.18 of the RELAX NG
> Specification
> ZR) is stated, "A grammar must have a start child element." 
> Does this mean that I cannot correctly create a schema that does not
> have a start element, even though it is to be included in another
> schema?  Or am I interpreting section 4.18 incorrectly?
> Thanks in advance,
> -Tom Rudick

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS