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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XML Schema and BNF

[ Lists Home | Date Index | Thread Index ]



On Mon, 6 Mar 2006, Essam Mansour wrote:

> I am designing an XML-based language. I am using the XML Schema to
> define the syntax of the language.
>
> I would like to know whether the XML Schema could be used as a
> substitution or an alternative to the BNF or not?
> Could you tell me references addressing that?

Is this a data format or a programming language? In the latter case, for 
any reasonably complex constructs, you would probably find it more natural 
to represent them using non-XML syntax. For example, even though XSLT is 
often said to have XML-based syntax, its significant part, XPath, has 
non-XML syntax and therefore requires additional (e.g., BNF-based) parsing 
technology in addition to generic XML parsers, Schema-validating or not.

Unless, of course, you are indeed willing to represent every single 
construct of your language by an XML element, in the style of XQueryX.
(XQueryX syntax is not intended to be written by humans.)

Vladimir




 

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

Copyright 2001 XML.org. This site is hosted by OASIS