Converting html 3.2 to xhtml strict

View: New views
3 Messages — Rating Filter:   Alert me  

Converting html 3.2 to xhtml strict

by J and T :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Is it possible to convert from standard HTML 3.2 to xhtml 1.0 strict? I've tried every tidy configuration I can think of. It spits out the xhtml strict 1.0 doctype header, makes a bunch of changes like  , but not one single page out of 2,000 will validate with w3 validator. Each page has 100 or more reported errors. Example errors:

Line 38, Column 17: there is no attribute "background".


Line 39, Column 24: document type does not allow element "a" here;


Line 43, Column 16: there is no attribute "width".


Maybe I'm hoping for a miracle and this conversion just isn't going to be possible. Obviously there are things in the HTML like the background body image that wouldn't be possible to convert so tidy leaves it alone. But maybe there is a way to convert and then give a list of things which  need to be changed in order to validate or ?

I should note that I have no problem converting from HTML 3.2 to XHTML Transitional. But I'm not able to go from XHTML Transitional to strict with anything.

Hope this isn't a stupid question,
John
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan

Re: Converting html 3.2 to xhtml strict

by Arnaud Desitter-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


tidy cannot "convert" to strict mode. It can do some amount of clean up but
there are some transitional code that will not be converted.
Regards,

On 09/03/2008, J and T <j_and_t@...> wrote:

>
>
> Is it possible to convert from standard HTML 3.2 to xhtml 1.0 strict? I've tried every tidy configuration I can think of. It spits out the xhtml strict 1.0 doctype header, makes a bunch of changes like  , but not one single page out of 2,000 will validate with w3 validator. Each page has 100 or more reported errors. Example errors:
>
> Line 38, Column 17: there is no attribute "background".
>
>
> Line 39, Column 24: document type does not allow element "a" here;
>
>
> Line 43, Column 16: there is no attribute "width".
>
>
> Maybe I'm hoping for a miracle and this conversion just isn't going to be possible. Obviously there are things in the HTML like the background body image that wouldn't be possible to convert so tidy leaves it alone. But maybe there is a way to convert and then give a list of things which  need to be changed in order to validate or ?
>
> I should note that I have no problem converting from HTML 3.2 to XHTML Transitional. But I'm not able to go from XHTML Transitional to strict with anything.
>
> Hope this isn't a stupid question,
> John
> _________________________________________________________________
> Climb to the top of the charts! Play the word scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
>



Re: Converting html 3.2 to xhtml strict

by willyredz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi how do I download tidy & use it for my website template that I already have? I am very limited with knowledge. Do I need to download it a special way & how do I put my pages that I want to check in there?
Arnaud Desitter-2 wrote:
tidy cannot "convert" to strict mode. It can do some amount of clean up but
there are some transitional code that will not be converted.
Regards,

On 09/03/2008, J and T <j_and_t@hotmail.com> wrote:
>
>
> Is it possible to convert from standard HTML 3.2 to xhtml 1.0 strict? I've tried every tidy configuration I can think of. It spits out the xhtml strict 1.0 doctype header, makes a bunch of changes like  , but not one single page out of 2,000 will validate with w3 validator. Each page has 100 or more reported errors. Example errors:
>
> Line 38, Column 17: there is no attribute "background".
>
>
> Line 39, Column 24: document type does not allow element "a" here;
>
>
> Line 43, Column 16: there is no attribute "width".
>
>
> Maybe I'm hoping for a miracle and this conversion just isn't going to be possible. Obviously there are things in the HTML like the background body image that wouldn't be possible to convert so tidy leaves it alone. But maybe there is a way to convert and then give a list of things which  need to be changed in order to validate or ?
>
> I should note that I have no problem converting from HTML 3.2 to XHTML Transitional. But I'm not able to go from XHTML Transitional to strict with anything.
>
> Hope this isn't a stupid question,
> John
> _________________________________________________________________
> Climb to the top of the charts! Play the word scramble challenge with star power.
> http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
>