[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] <!ELEMET declarations



Thanks a lot for your quick answer. 

> > Exists there a language construct for that purpose?
>
>    At the DTD level, no. In Schemas you have xsd:all for this. In Relax-NG
> there is the interleave construct.

I guess I have to read up on schemas and Relax-NG then.

> > 2. Is there a way to copule a attribute definition together with a
> > element declaration? That is,  i would like to define that element "node"

>   You can't do that in DTD or Schemas. This is possible by building a
> choice with two branches one with the attribute and one without in
> Relax-NG.

How unfortunate, since I have a eight different attribute values to choose 
from.

Over all, it sounds like I have to program a control routine checking a xml 
document against the bnf-grammer we have written for our data format - but 
then I might meet my old friends flex and bison again so it is not that bad.

-- 
Morten W. Jørgensen

Newtec A/S
Stærmosegårdsvej 18
5230 Odense M
Denmark
Tlf.: 66 15 84 44



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]