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
XHTML "conversion" and validation
-
yorkshire_spam
- Posts: 2
- Joined: Thu 12. Jan 2006, 13:10
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.
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.
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!
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!
- marcus@localhorst
- Posts: 815
- Joined: Fri 28. May 2004, 11:31
- Location: localhorst
- Contact:
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.
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.
To find what Marcus posted look here:
http://www.phpwcms.de/forum/viewtopic.p ... light=tidy
http://www.phpwcms.de/forum/viewtopic.p ... light=tidy