parameter-entities/expansion-in-decl
<!DOCTYPE test SYSTEM "test.dtd" [
<!ENTITY % rplcmt "'replacement text'">
<!ENTITY nonparaent %rplcmt;>
]>
<test>
&nonparaent;
</test>
parameter-entities/expansion-in-decl
parameter-entities/expansion-in-decl1
parameter-entities/expansion-in-literal
parameter-entities/pe-as-unspecified-system-id
parameter-entities/preexpansion-in-literal0
sgmlproc <your-file.sgm>
where <your-file.sgm> is replaced by the actual file
used for storing.
<!DOCTYPE test SYSTEM "test.dtd" [
<!ENTITY % rplcmt "'replacement text'">
<!ENTITY nonparaent %rplcmt;>
]>
<test>
&nonparaent;
</test>
<!DOCTYPE test SYSTEM "test.dtd" [
<!ENTITY % rplcmt '"replacement text"'>
<!ENTITY nonparaent %rplcmt;>
]>
<test>
&nonparaent;
</test>
<!DOCTYPE test SYSTEM "test.dtd" [
<!ENTITY % rplcmt "see if this gets replaced">
<!ENTITY % torplc "replacement: '%rplcmt;'">
<!ENTITY nonparaent "%torplc;">
]>
<test>
&nonparaent;
</test>
<!DOCTYPE test [
<!ENTITY % requestparm SYSTEM>
<!ENTITY requestparm "%requestparm">
<!ELEMENT test - - (#PCDATA)>
]>
<test></test>
<!DOCTYPE test [
<!ELEMENT test - - (#PCDATA)>
<!ENTITY % p "path">
<!ENTITY % f "file">
<!ENTITY % pe "'%p/%f'">
<!ENTITY sysid SYSTEM %pe>
]>
<test>&sysid;</test>