An attribute can be set to the name of an entity declared.
<?xml version="1.0" standalone="yes"?> <!DOCTYPE rootelement [ <!ELEMENT rootelement (childelement1)> <!ELEMENT childelement (#PCDATA)> <!ATTLIST childelement sampleattribute ENTITY #IMPLIED <!ENTITY sampleentity SYSTEM "entity reference value"> ]> <rootelement> <childelement sampleattribute="sampleentity"> Child element. </childelement> </rootelement>