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)"
   >

<!ENTITY % XHTML10Strict PUBLIC
   "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
%XHTML10Strict;

<!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
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to