|
Posted by Andy Dingley on 03/15/07 09:59
On 14 Mar, 21:25, "Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote:
> Scripsit Andrew:
>
> > I have a 150 page site that I would like to convert from XHTML 1.0
> > Strict to HTML 4.01 Strict:
>
> Why? That's almost as pointless as the opposite conversion.
Maybe he's been listening to the regular advice posted in this ng?
Yes, it's "pointless", as is any conversion on the "If it ain't broke,
don't fix it" basis. OTOH, there are more things about web development
than merely coding one-off pages. Perhaps the OP is writing a
tutorial, or putting forward best practices to a large team, or
posting a portfolio site for a design house (we've criticised enough
of those for being in "pointless XHTML"), or just wants to have a
consistent doctype across all their pages.
Maybe he's just worried about browsers rendering the extra "/" as
character data? As you're so fond of reminding us, XHTML Appendix C
does rely on an error that not all browsers demonstrate.
It's not necessary to do this. Nor is it wrong to do it. It's not our
place to say whether or not the OP should, especially not when we
don't know the whole story.
As to tools, then Tidy is good if the markup is perhaps less than
valid. If it is well-formed XML and mostly valid XHTML, then XSLT can
do it too -- perhaps more safely than Tidy. Just use a simple identity-
copy stylesheet with a HTML output method.
(I wouldn't make any real effort to do this XHTML -> HTML though. The
inherent advantage is indeed tiny, unless you have some other reason
to do it.)
Navigation:
[Reply to this message]
|