Re: HELP: Need At-Least-One model, and CDATA element type

Brian Atkins <brian_atkins@firehunter.com> writes:

> As far as I can tell, the schema fragment I posted below IS the
> schema equivalent of ((a, b?) | (b, a?)).  I even tested this
> by using dtd2xs to translate the above statement into schema
> elements, and it produced the same thing.  They still fail the
> Unique Particle Attribution test, however.

Nope, what you have below is (a, b?) | (a?, b)

> For #2 below, you got it.  I want a content model which will cause
> it's contents to be completely ignored by the parser, including
> any and all markup.  For example, the contents of the element
> I'm trying to define may be HTML.  I won't know what the content
> is, I know I just want to pass it on with out touching or parsing
> it in any way.  The <any/> particle doesn't do this, as the contents
> of this is "any well-formed XML", according to the Schema Primer.
> This is born out by the 1.4.1 Xerces SAX parser, which tries to

I'm still not clear what you want.  Let's call your element
'brianBox'.  Which of the following do you want to be OK:

1)
   <brianBox><p>This is a <em>test</em> of the box</p></brianBox>

2)
   <brianBox><p>This is a <em>test</em> of the box</p>
             <p>more stuff</p></brianBox>

3) 
   <brianBox><p>this is not <xyzzy>HTML</xyzzy></p></brianBox>

4)
   <brianBox><p>this is not balanced</q></brianBox>


ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/

Received on Monday, 10 September 2001 13:22:04 UTC