Noxico


No DTD for the body plans and stuff?

Went from this:

<bodyplan>
 <culture>
  <human />
 </culture>
 <terms>
  <generic text="yes">human</generic>
  <male text="yes">man</male>
  <female text="yes">woman</female>
 </terms>
 <playable />
 <tallness>
  <roll>1d50+150</roll>
 </tallness>
 <hair>
  <length>6</length>
  <color>
   <oneof>blond,brown,black,red,gray,white,auburn</oneof>
  </color>
 </hair>
</bodyplan>

…to this:

bodyplan
 culture
  human
 terms
  generic: "human"
  male: "man"
  female: "woman"
 playable
 tallness: roll 1d50+150
 hair
  length: 6
  color
   oneof blond,brown,black,red,gray,white,auburn
-- Can also do color: oneof blond... to make it a text value for the color
-- token instead of a new child token to color.

This solves the problem of not being able to make a DTD for XML files that include tokens. Not only that, but no end tags to mismatch and no more brackets.

[ ]

Leave a Reply

Your email address will not be published. Required fields are marked *