OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Entities vs #PCDATA with msxml 1.6 ?

[ Lists Home | Date Index | Thread Index ]
  • From: Patrice Bonhomme <Patrice.Bonhomme@loria.fr>
  • To: xml-dev@ic.ac.uk
  • Date: Sun, 30 Nov 1997 17:57:17 +0100


Hi,

I have a problem with msxml 1.6. If i put only one entity within an element, 
this element must be able to contain some PCDATA because msxml considers an 
entity as a piece of PCDATA !

But if i have:

<?XML VERSION="1.0" ?>
<!DOCTYPE EXAMPLE [
<!ELEMENT EXAMPLE (P+)>
<!ELEMENT P     (S+)>
<!ELEMENT S     (#PCDATA)>
<!ATTLIST S     ID ID #IMPLIED>
<!-- ENTITY incs SYSTEM "inc-s.xml" -->
<!ENTITY incs "<S>A third in a new paragraph.</S>">
]>
<EXAMPLE>
<P><S ID="s1">A sentence.</S><S ID="s2">An another.</S></P>
<P>&incs;</P>
</EXAMPLE>

I get this message:
% java msxml2 -i -d test-ext-ent.xml
Invalid element 'PCDATA' in content of 'P'.  Expected [S]
Location: file:test-ext-ent.xml(12,5)
Context: <EXAMPLE><P>

And with this one, it works (just because P contains PCDATA in its content !):

<?XML VERSION="1.0" ?>
<!DOCTYPE EXAMPLE [
<!ELEMENT EXAMPLE (P+)>
<!ELEMENT P     (#PCDATA | S+)><!-- <<= here -->
<!ELEMENT S     (#PCDATA)>
<!ATTLIST S     ID ID #IMPLIED>
<!-- ENTITY incs SYSTEM "inc-s.xml" -->
<!ENTITY incs "<S>A third in a new paragraph.</S>">
]>
<EXAMPLE>
<P><S ID="s1">A sentence.</S><S ID="s2">An another.</S></P>
<P>&incs;</P>
</EXAMPLE>

Is there something broken in the msxml kingdom  ?

Pat.
-- 
  ==============================================================
  bonhomme@loria.fr               |      Office : B.228
  http://www.loria.fr/~bonhomme   |      Phone  : 03 83 59 20 37
  --------------------------------------------------------------
   * Projet Aquarelle : http://aqua.inria.fr
   * Serveur Silfide  : http://www.loria.fr/Projet/Silfide
  ==============================================================



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS