Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Guillaume Lecanu
Le dimanche 17 mai 2009 à 20:32 +0800, Tjerk Meesters a écrit : It would be much easier if you could just add tal: and metal: inside the %coreattrs definition ;-) Hi everybody, With the help of Tjerk Chris, I have created a XHTML STRICT 1.0 custom DTD for PHPTAL. I have attached it

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Tjerk Meesters
That's awesome :-) A few more pointers: 1) it might be somewhat nicer to place phptal attributes in their own group: !ENTITY % phptalattrs tal:define%Text; #IMPLIED tal:condition %Text; #IMPLIED ... tal:block %Text; #IMPLIED ...

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Guillaume Lecanu
Le lundi 18 mai 2009 à 16:05 +0800, Tjerk Meesters a écrit : That's awesome :-) A few more pointers: 1) it might be somewhat nicer to place phptal attributes in their own group: !ENTITY % phptalattrs tal:define %Text; #IMPLIED tal:condition %Text;

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Guillaume Lecanu
Le lundi 18 mai 2009 à 09:57 +0100, Kornel Lesiński a écrit : On 18-05-2009 at 09:23:24 Guillaume Lecanu guilla...@lya.fr wrote: I have no knowledges in DTD specifications, how can we said the tal:block is available anywhere in the code ? I'm afraid that DTD isn't able to express it

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Kornel Lesinski
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

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Guillaume Lecanu
Le lundi 18 mai 2009 à 11:22 +0100, Kornel Lesinski a écrit : 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 right ! But I think it's already better and usable than before ;-) You can probably trim

Re: [PHPTAL] Validation of XHTML

2009-05-15 Thread Tjerk Meesters
It would be much easier if you could just add tal: and metal: inside the %coreattrs definition ;-) On Sun, Apr 12, 2009 at 11:16 PM, php...@jakeman.plus.com wrote: To follow up my own posting, I've found it's possible to get the W3C validator to accept tal: and metal: attributes by using a

RE: [PHPTAL] Validation of XHTML

2009-04-12 Thread phptal
To follow up my own posting, I've found it's possible to get the W3C validator to accept tal: and metal: attributes by using a DOCTYPE that points to a custom DTD. It's not ideal as you have to specify each combination of element and attribute that you have actually used. However it does work and