D
David Manheim
I am writing a module which is supposed to allow use of a set of
attributes in any XML document; there is a DTD for XHTML, but it will
need to work with all XML data types when imported.
I have written the Qname module, which I am having a bit of trouble
trying to verify (mostly simply because I haven't written the rest of
the module, I believe) but the main problem I am having is that I am
unsure how to make the attributes common to all tags; I understand how
to add them to, say, tags with a specific name, for instance;
<!ENTITY % p
"alignment (good|neutral|evil) #IMPLIED
damagetype (lightning|fire|water)
damage (1d6|2d6|3d6|4d6) #IMPLIED"
Would allow me to apply some D&D attributes to my paragraph elements,
when this is imported in my DTD along with, say, XHTML. (No, that's not
what I'm doing)) The problem is, if I want the attributes to apply to
every element, regardless of which other XML formats I'm using,
(understanding that they need to be unique, or prefixed) I don't
understandd how I can get the module to allow it for all tags.
attributes in any XML document; there is a DTD for XHTML, but it will
need to work with all XML data types when imported.
I have written the Qname module, which I am having a bit of trouble
trying to verify (mostly simply because I haven't written the rest of
the module, I believe) but the main problem I am having is that I am
unsure how to make the attributes common to all tags; I understand how
to add them to, say, tags with a specific name, for instance;
<!ENTITY % p
"alignment (good|neutral|evil) #IMPLIED
damagetype (lightning|fire|water)
damage (1d6|2d6|3d6|4d6) #IMPLIED"
Would allow me to apply some D&D attributes to my paragraph elements,
when this is imported in my DTD along with, say, XHTML. (No, that's not
what I'm doing)) The problem is, if I want the attributes to apply to
every element, regardless of which other XML formats I'm using,
(understanding that they need to be unique, or prefixed) I don't
understandd how I can get the module to allow it for all tags.