Hi,
Thank you for the clarification.
I was interpreting %foo; inside document content as parameter entity, which
was wrong understanding I belive.
So, it solved my querry. Anyway I am attaching the document I have used.
Thanks & Regards,
murali
-----Original Message-----
From: Daniel Veillard [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 6:47 PM
To: murulidhara
Cc: [email protected]
Subject: Re: [xml] XML : PE reference outside DTD
On Thu, Oct 18, 2007 at 12:46:14PM +0530, murulidhara wrote:
>
> Hi ,
>
> According to standard, PE reference must not occur outside DTD.
>
> Well-formedness constraint: In DTD
>
> Parameter-entity references MUST NOT appear outside the [1]DTD.
To do a Parameter-entity reference one use %name;
http://www.w3.org/TR/REC-xml/#dt-entref
"[Definition: Parameter-entity references use percent-sign (%) and
semicolon (;) as delimiters.]"
"Parameter-entity references MUST NOT appear outside the DTD."
%foo; is not a Parameter-entity reference in content:
http://www.w3.org/TR/REC-xml/#dt-entref
"Outside the DTD, the % character has no special significance; thus, what
would be parameter entity references in the DTD are not recognized as markup
in content."
and
&foo; is not a Parameter-entity reference
so I didn't see a parameter entity reference in your document, but again
send a minimal one as attachement to make sure.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
<?xml version="1.0"?>
<!DOCTYPE root [
<!ELEMENT root (a, b)>
<!ELEMENT a EMPTY>
<!ELEMENT b (#PCDATA | c)*>
<!ELEMENT c ANY>
<!ENTITY inContent "<b>General entity reference in element content</b>">
<!ENTITY % paaa "wrong">
]>
<!--* content: element|CharData|Reference|CDSect|PI|CDSect|PI|Comment *-->
<root>
<a/>
<b>
<!-- there is an empty element in the above line -->
<c/>
CharData: content of b element
%paaa; : PE reference should not be recognized in element content
<c>
<?PIcontent anyProcessingInstruction?>
<!-- Comment content -->
&inContent;
Charater reference: A
CDSect in content: <![CDATA[ <html>markups<head>HEAD</head><body>nothing</body></html> ]]></c>
</b>
</root>
<!--* test P43 *-->
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml