XML DTD elements disordered children? [code lt] [element]

Q: Lets say if we part of the DTD code:

u003c! student (name, ID, Birthday) u003e

and this will force it so that ID can only come after after Name and Birthday ID.

Is there a way so that the children of “Student” can be an order, but exactly once? Ive looked everywhere and can not find a way to do this .

Thanks.


Finite Elements Trading System
Re:Originally posted by: guy

Originally posted by: guy

Originally posted by: guy
It's not too hard if you don't want to restrict to exactly one, but if you do need that restriction then why do you need to have it unordered?
Don't ask me.. school assignments are nonsensical like that :(
I see :P Does the prof actually know how to do it, or is he/she just one of those ones that expects you to figure out anything that they can dream up? :confused:

It's been a while since I've worked with dtd, but a crazy idea: can you define 6 possible ways to define a Student, 1 for each of the permutations of the child ordering?

I've already tried that, but apparently DTD specs won't allow that.. I'm just gonna see the TA tomorrow and see what happens :)


Learn Photoshop Elements In Under 2 Hours
Re:Originally posted by: guy

Originally posted by: guy
It's not too hard if you don't want to restrict to exactly one, but if you do need that restriction then why do you need to have it unordered?
Don't ask me.. school assignments are nonsensical like that :(
I see :P Does the prof actually know how to do it, or is he/she just one of those ones that expects you to figure out anything that they can dream up? :confused:

It's been a while since I've worked with dtd, but a crazy idea: can you define 6 possible ways to define a Student, 1 for each of the permutations of the child ordering?


Football Betting Code Package
Re:Originally posted by: guy
It's not too hard if you don't want to restrict to exactly one, but if you do need that restriction then why do you need to have it unordered?

Don't ask me.. school assignments are nonsensical like that :(


The PPC Code
Re:It's not too hard if you don't want to restrict to exactly one, but if you do need that restriction then why do you need to have it unordered?

Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]