This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > July 2005 > extending attributes with an XHTML DTD





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author extending attributes with an XHTML DTD
David Manheim

2005-07-14, 7:22 am

I am writing an XHTML extension, to add some attributes to all xhtml
objects, so that for any object, I can have "<a href="http://aol.com"
random="This is a note that is useful for me">

I tried the following dtd, and I'm not sure why it won't work: it
accepts the html tags in the file, but not any of the extended tags.
I'm not sure why. Any help would be wonderful!

____________________base-aaa.dtd_______________________

<!ENTITY % aaa-attrs
"required (true | false) #IMPLIED
readonly (true | false) #IMPLIED
random %Text; #IMPLIED"


<!ENTITY % xhtml11.dtd
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/D TD/xhtml11.dtd" >
%xhtml11.dtd;

<!-- Then add aaa-attrs to the common attributes -->

<!ENTITY % Common.attrib
"%Core.attrib;
%I18n.attrib;
%Events.attrib;
%aaa-attrs.attrib;"
>


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews