XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
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] Validation of complex content

Hello John,

Thank you very much for this.

> Then it is certainly beyond the power of any standard XML tool.  You will
> have to translate the EBNF into an ANTLR or Packrat grammar, or something
> similar depending on what language you are using.  This should be a
> straightforward effort.

I was afraid of that but I was hopeful that some of the people on this
list might have implemented this in a different way, because I believe
in theory the following should be possible:

<rules xmlns="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0";>
  <namespace ns="ns">
    <validate schema="test.ebnf" schemaType="application/ebnf"/>
  </namespace>
  ...
</rules>

Kind regards,
Edwin

On 30 March 2012 16:22, John Cowan <cowan@mercury.ccil.org> wrote:
> Edwin Dankert scripsit:
>
>> The expression language is quite complex and cannot be represented by
>> a regular-expression. The syntax is however specified using EBNF and
>> only the syntax needs to be validated.
>
> Then it is certainly beyond the power of any standard XML tool.  You will
> have to translate the EBNF into an ANTLR or Packrat grammar, or something
> similar depending on what language you are using.  This should be a
> straightforward effort.
>
> --
> John Cowan                              cowan@ccil.org
>            http://www.ccil.org/~cowan
> Humpty Dump Dublin squeaks through his norse
>                Humpty Dump Dublin hath a horrible vorse
> But for all his kinks English / And his irismanx brogues
>                Humpty Dump Dublin's grandada of all rogues.  --Cousin James


[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