[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Validation of complex content

  • From: Edwin Dankert <edankert@gmail.com>
  • To: John Cowan <cowan@mercury.ccil.org>
  • Date: Mon, 2 Apr 2012 10:39:10 +0100

Re:  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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.