Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
Converting Simple BNF grammar to DTD or schema
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Chris, post: 771260"] I have a requirement to have an XML document that consists of an arbitrarily large expression. For simplicity's sake, assume I have the following grammar: expr => term rest term => ID relop ID rest => (conjunction term) | e conjunction => AND|OR relop => EQ|NE|GT|GE|LT|LE Is it possible to convert this grammar to a DTD or schema? I've tried the following DTD without success: <!ELEMENT expr (term,rest)> <!ELEMENT term (id,relop,id)> <!ELEMENT rest ((conjunction,term)|EMPTY)> <!ELEMENT conjunction (EMPTY)> <!ELEMENT id (#PCDATA)> <!ELEMENT relop (EMPTY)> <!ATTLIST conjunction type (AND|OR)> <!ATTLIST relop type (EQ|NE|GT|GE|LT|LE)> Any pointers appreciated. Thanks in advance. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
Converting Simple BNF grammar to DTD or schema
Top