XHTML "conversion" and validation

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
yorkshire_spam
Posts: 2
Joined: Thu 12. Jan 2006, 13:10

XHTML "conversion" and validation

Post 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
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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?
yorkshire_spam
Posts: 2
Joined: Thu 12. Jan 2006, 13:10

Post 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.
Marchel
Posts: 4
Joined: Tue 27. Sep 2005, 15:32
Location: Madrid

Post 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!
User avatar
marcus@localhorst
Posts: 815
Joined: Fri 28. May 2004, 11:31
Location: localhorst
Contact:

Post 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.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

To find what Marcus posted look here:
http://www.phpwcms.de/forum/viewtopic.p ... light=tidy
Post Reply