I am having trouble trying to implement parameter entities so that i can repeat text multiple times within the DTD.
example XML code:
The address, street, city, postcode elements both have the same information. How would i reuse these sets of elements multiple times within a DTD document using parameter entity ? i know the key syntax is the % sign, but i can't seem to understand how to code it properly.
posted 5 years ago
This is how it would look like, making some assumptions on cardinality and content model.
with the external dtd (specifically using parameter entity):
You cannot use parameter entities inside an internal subset, though.