Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Mixed content problem

From: richard@---.--.--.-- (------- -----)
To: xml-dev@-----.---.---
Date: 11/7/2005 11:02:00 PM
In article <EC2C7B699FF2A64D91DBA742E10DA2D73EA977@e...> you write:

>I'm having trouble with the following content model in a DTD:


> <!ELEMENT metanote
>  ((#PCDATA|emph|meta-received|meta-accepted|meta-revised|
>    meta-presented|meta-submit|edcode|techeditor) |
>   (symposium?,contribgrp?))*>

>This seems to follow all the XML mixed content rules, but I'm still
>getting a parsing error. Can anyone explain, or help with a workaround?

A mixed content declaration in XML must consist of a starred choice
of #PCDATA and a number of element names (or just be (#PCDATA)).  You're
not allowed to put in something like (symposium?,contribgrp?).

In any case, even if it were legal, it would allow exactly the same 
content as:

 <!ELEMENT metanote
  (#PCDATA|emph|meta-received|meta-accepted|meta-revised|
   meta-presented|meta-submit|edcode|techeditor|symposium|contribgrp)*>

See http://www.w3.org/TR/REC-xml/#sec-mixed-content

-- Richard


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent