Re: Text OR Fixed structure in an ELEMENT
- From: Johannes Koch <koch@xxxxxxxxxxxxxxxx>
- Date: Tue, 22 Nov 2005 14:08:02 +0100
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.) .
- Follow-Ups:
- Re: Text OR Fixed structure in an ELEMENT
- From: Harrie
- Re: Text OR Fixed structure in an ELEMENT
- References:
- Text OR Fixed structure in an ELEMENT
- From: luckyroom505
- Re: Text OR Fixed structure in an ELEMENT
- From: Richard Tobin
- Text OR Fixed structure in an ELEMENT
- Prev by Date: Re: Text OR Fixed structure in an ELEMENT
- Next by Date: Re: non-deterministic content model in xsd
- Previous by thread: Re: Text OR Fixed structure in an ELEMENT
- Next by thread: Re: Text OR Fixed structure in an ELEMENT
- Index(es):
Relevant Pages
|