Page 1 of 1
XHTML "conversion" and validation
Posted: Thu 12. Jan 2006, 13:13
by yorkshire_spam
Greetings.
I recently started moving my site over to phpwcms, but wanted it to be XHTML 1.0 Transitional, so I set about altering the bit required to make this so.
I know it's not much of an "enhancement" but if anyone is interested I will happily document the required changes that I needed to make to allow the pages to validate correctly.
Cheers,
Sam
Posted: Thu 12. Jan 2006, 14:26
by pepe
Hi Sam,
nice to have you here in our phpWCMS forum!
And... it would be very interesting, to "see" what you have to do, to make the script XHTML 1.0 Transitional.
How much time do i need, to have it running?
Posted: Thu 12. Jan 2006, 14:43
by yorkshire_spam
pepe,
Most of the changes can be done using a search and replace tool. The text editor that I use allows you to run regex based search and replace across multiple files, so I started by making sure all the <br> tags were replaced with <br />, next big problem was the <img> tags that needed changing so they were <img />
I also noticed that some of the meta tags generated were not valid as they used uppercase properties of even META, so I updated them.
I'm just updating some more tags at the moment, as I add features to my website and test the validation it's throwing up occasional things that I've missed.
When I get home (I'm at work at the moment) I'll do a proper document on how to convert to XHTML transitional for phpwcms just in case anyone else wants to do it.
Posted: Mon 23. Jan 2006, 10:51
by Marchel
Hi all,
I'm very interested in seeing what you've done. I'm planning to make the required changes to make all my website XHTML-valid. I've just began with the home page, and all I had to do was change the DOCTYPE, meta and link (for the css) tags so that they end up with />
I'm very interested to know what you guys have done.
Cheers!
Posted: Tue 7. Feb 2006, 14:56
by marcus@localhorst
hi, - if the server supports exec you can convert/correct phpwcms on the fly into valid XHTML with Tidy.
I described it here in the forum some times ago...
i run
http://www.fieldmuzick.net successful with that and there are no problems.
BUT the rendered sourcecode should be valid HTML else tidy make some strange things
greetings m.
Posted: Tue 7. Feb 2006, 17:34
by DeXXus