[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Non-deterministic content model
Purvesh Sharma wrote: > Can anybody tell me whether the following content model is > deterministic or non-deterministic? and why? <!ELEMENT a ((x, y) | (y, > x))?> It's deterministic, because the parser always knows what element it can expect next. Element a will be followed by either element x, element y or nothing. It would be non-deterministic if it the processor was faced with element x in two contexts (for example), such as: <!ELEMENT a ((x, y) | (x, x))?> -- Regards, Marcus Carr email: mrc@a... ___________________________________________________________________ Allette Systems (Australia) www: http://www.allette.com.au ___________________________________________________________________ "Everything should be made as simple as possible, but not simpler." - Einstein
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|