Element that can only have one of two text values?
I'm constructing a DTD which has a fuel_system element. I want to restrict the text between <fuel_system> tag. It must be only carbureted or fuel-injected . How can I do this? I don't mention something like this = > attribute type (carbureted, fuel-injected), because I want to force this rule in <fuel_system> tags, not the attribute of fuel_system . when defining an element in a DTD, there is no way to restrict the text inside the element. you can only tell what other element (child elements) it might contain and their order, or you can tell that the element contains text, or a mixture of the