
Hi, A document with the following DocDecl <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ <!ENTITY % xinclude SYSTEM "/home/sean/apps/oxygen/docbook/dtd/xinclude.mod"> %xinclude; <!ENTITY % global_entities SYSTEM "global.ent"> %global_entities; ]> With XIncludes that use Entities provided by gobal.net <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="&prt02_supplychain;"> <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"> <para> <emphasis>FIXME: MISSING XINCLUDE CONTENT</emphasis> </para> </xi:fallback> </xi:include> I get an error, but to best of my knowledge the value of an attribute is allowed to be an entity F The external entity reference "&prt02_supplychain;" is not permitted in an attribute value. Any ideas where the problem is? -- Sean Wheller 084-8549408 sean@enbaya.co.za http://www.enbaya.co.za

Hi Sean, I guess the problem is because that is an external entity. You can use entities in attribute values but those should be character entities. So the following will be valid: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE test [ <!ELEMENT test (#PCDATA)> <!ATTLIST test sample CDATA #IMPLIED> <!ENTITY val "someValue"> ]> <test sample="&val;"> </test> while the following will report the same error you quoted: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE test [ <!ELEMENT test (#PCDATA)> <!ATTLIST test sample CDATA #IMPLIED> <!ENTITY val SYSTEM "test.xsd"> ]> <test sample="&val;"> </test> Best Regards, George ------------------------------------------------------------- George Cristian Bina mailto:george@oxygenxml.com <oXygen/> XML Editor - http://www.oxygenxml.com/ ----- Original Message ----- From: "Sean Wheller" <sean@enbaya.co.za> To: <oxygen-user@oxygenxml.com> Sent: Monday, August 23, 2004 12:24 PM Subject: [oXygen-user] XInclude and Entities
Hi,
A document with the following DocDecl
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY % xinclude SYSTEM "/home/sean/apps/oxygen/docbook/dtd/xinclude.mod"> %xinclude; <!ENTITY % global_entities SYSTEM "global.ent"> %global_entities; ]>
With XIncludes that use Entities provided by gobal.net
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="&prt02_supplychain;"> <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"> <para> <emphasis>FIXME: MISSING XINCLUDE CONTENT</emphasis> </para> </xi:fallback> </xi:include>
I get an error, but to best of my knowledge the value of an attribute is allowed to be an entity
F The external entity reference "&prt02_supplychain;" is not permitted in an attribute value.
Any ideas where the problem is?
-- Sean Wheller 084-8549408 sean@enbaya.co.za http://www.enbaya.co.za _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
George Cristian Bina
-
Sean Wheller