The original intent for Unknown was for exactly this type of situation. They
may not define B, and as long as they don't ever use an <A> in their
document, that's ok. But without the Unknown indicator, someone using
validator enumeration cannot know that B's content model was never really
defined.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com
"Why put off until tomorrow what you can
put off until the day after tomorrow?"
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 11:04 AM
Subject: Re: Unknown
> Peter,
>
> >Does it mean that element never has Unknown model?
>
> In DTD, content model for element shall be
> Empty, Element Only, Mixed or Any. May be
> u can use __Any__ to describe "Unknown".
>
> >What is the model type of element B in the following DTD ?
> <!ELEMENT A (B)>
>
> This reads as, element A, whose content model is __Element Only__, which
> allows
> _ONE__ and __only ONE__ occurance of another element, B.
>
> In order to specify the content model for element B, you need another
> statement
> like this:
> <!ELEMENT B content_model_here>
>
> Regards,
>
> Peiyong Zhang
> ____________________________________________
> XML Parsers Development
> IBM Toronto Laboratory email: [EMAIL PROTECTED]
> Phone: (416)448-4088; Fax: (416)448-4414; T/L: 778-4088
>
>
>
> "Peter A. Volchek" <[EMAIL PROTECTED]> on 06/04/2001 01:26:34 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: "Xerces" <[EMAIL PROTECTED]>
> cc:
> Subject: Unknown
>
>
> I'm currently moving from older XML4C2.3.1 to new Xerces.
> The code was significatly changed since that, so that is why I'm going to
> post some questions related to this task.
> -------
>
> What happened to "Unknown" model type of ElementDecl? (that was presented
> in
> XML4C2.3.1) ?
>
> :xerces\src\validators\DTD\DTDElementDecl.hpp contains:
>
> enum ModelTypes
> {
> Empty
> , Any
> , Mixed
> , Children
>
> , ModelTypes_Count
> };
>
> Does it mean that element never has Unknown model?
> What is the model type of element B in the following DTD ?
>
> <!ELEMENT A (B)>
>
> P.S.
> As a workaround I use ModelTypes_Count instead of older Unknown, but I do
> not think that this is a good idea.
>
> ----------------------------------------------
> Peter A. Volchek
> Software Engineer
> Metis International, Inc.
> [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]