On 18 May 2009, at 11:05, Guillaume Lecanu wrote:

Here is the final XHTML STRICT custom DTD for PHPTAL.

Nothing is ever final :)

You can probably trim it down significantly by only overriding values in XHTML DTD, and including XHTML DTD as an entity.

Here's an example that adds Safari's <input type=search> to XHTML/1.0:

<!ENTITY % InputType
  "(text | password | checkbox |
    radio | submit | reset |
    file | hidden | image | button | search)"

   "-//W3C//DTD XHTML 1.0 Strict//EN"

<!ATTLIST input
  autosave    NMTOKEN       #IMPLIED
  results     CDATA         #IMPLIED
  incremental (incremental) #IMPLIED

As you see the trick is that some things have to be defined before including XHTML DTD, and some after. I'm not sure if you won't run into some chicken-egg problem though.

regards, Kornel

PHPTAL mailing list

Reply via email to