Re: Text OR Fixed structure in an ELEMENT



In article <1132659405.033619.326980@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
 <luckyroom505@xxxxxxxxx> wrote:
I try to make a DTD for a structure like this:

<notelist>
<note><to>john</to><subj>i have a question</subj></note>
<note>my pin code is 1111</note>
</notelist>

Richard Tobin wrote:
You can't do that in a DTD.  The best you can do is allow any mixture
of <to>, <subj>, and text.

Or use two different elements: <structuredNote><to>john</to><subj>i have a question</subj></structuredNote> <note>my pin code is 1111</note> -- Johannes Koch In te domine speravi; non confundar in aeternum. (Te Deum, 4th cent.) .



Relevant Pages

  • Re: doc.getElementById()
    ... <!ELEMENT utente (nome, password)> ... Johannes Koch ... In te domine speravi; non confundar in aeternum. ...
    (comp.text.xml)
  • Re: explained (for dummies)
    ... as character data is not valid in head elements. ... Johannes Koch ... In te domine speravi; non confundar in aeternum. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Pixel Specific Layout
    ... but still contrary to the standard. ... Johannes Koch ... In te domine speravi; non confundar in aeternum. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: How can I make a div topmost?
    ... but no matter how I set it, some portion of the div is always covered. ... Johannes Koch ... In te domine speravi; non confundar in aeternum. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: XML and XSL
    ... Johannes Koch ... In te domine speravi; non confundar in aeternum. ...
    (comp.text.xml)