You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jean-Francois Farley <fa...@yahoo.com> on 2002/03/08 19:39:07 UTC

about entities...

Hi,

I'd like to know if it's possible to declare a general
entity in the value of a parameter entity...

Here's an example:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE File [
	<!ELEMENT File ( Text? ) >
	<!ELEMENT Text ( #PCDATA )>
	<!ENTITY % entdecl "<!ENTITY someent
&quot;BigTest&quot;>">
%entdecl;
]>
<File>
	<Text>
		test &someent; testend
	</Text>
</File>

Internet explorer can't read it, XML SPY can, and
xerces (non-validating) give this error when parsing:

Expected system or public id
<line>6</line>
<column>10</column>

Maybe the syntax is not rigth...?



Thanks a lot,

Jeff.

______________________________________________________________________ 
Find, Connect, Date! http://personals.yahoo.ca

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org