Hi, On Sun, May 17, 2009 at 6:52 PM, <[email protected]> wrote: >> Thanks for this information, do you have created a custom DTD for PHPTAL > with all the attributes list ? >> This will be cool if you can share it :-) > > I have sent a copy of the custom DTD privately. It merely appends some > attributes that enabled me to validate 3 attributes: > > <!-- Customised to suit template.html --> > <!ATTLIST html metal:define-macro CDATA #IMPLIED> > <!ATTLIST div metal:define-slot CDATA #IMPLIED> > <!ATTLIST title tal:content CDATA #IMPLIED> > > I see that Tjerk has written: > >> It would be much easier if you could just add tal: and metal: inside the > %coreattrs definition ;-) > > I'm not sure what he means. If anyone knows how to extend a DTD in a more > general way to suit any PHPTAL file, I would love to see it.
I'm not sure about the exact details, but in the HTML spec all elements have a set of core attributes; if the metal: and tal: attributes could be added there, it would span across to all the other elements without having to add specific <!ATTLIST /> entries. > > Chris > > > _______________________________________________ > PHPTAL mailing list > [email protected] > http://lists.motion-twin.com/mailman/listinfo/phptal > -- -- Tjerk _______________________________________________ PHPTAL mailing list [email protected] http://lists.motion-twin.com/mailman/listinfo/phptal
