So I have a non trivial ASP.NET 1.1 Web Application with custom controls
emitting HTML markup and good deal of static HTML in the aspx pages.
I'm wanting to make this thing fully XHTML 1.0 compliant.
My primary question is this: Can I reasonably migrate from HTML 4.0 to XHTML
1.0 *incrementally*? Or would everything totally break.
To clarify, I want to put different pieces into production at different
times (for a bunch of logistical reasons). If I do this, then I'd have
rendered pages sent to the browser with a mix of HTML 4.x and XHTML
1.0-compliant markup.
My secondary question is this: What do I use for the DTD when I have this
mix going on?
Alternatively, is it such an incredibly terrible thing to migrate from HTML
4.0 to XHTML 1.0 incrementally - and I'd really really really be better off
migrating all in one shot?
Thanks for your time and consideration!On Tue, 4 Apr 2006 16:33:16 -0700, Fred Mertz wrote:
> My primary question is this: Can I reasonably migrate from HTML 4.0 to XHT
ML
> 1.0 *incrementally*? Or would everything totally break.
Each web page is an entity of itself, for the most part. That means you
can change one page at a time without much trouble in most cases.
How much work that is, depends on how much of your HTML needs to change.
For example, if you use a ton of font tags, then you're going to have some
work ahead of you.
If you already use CSS for most of your styling and aren't using any
deprectated features, and are already using all lower case tags, then it
might be a matter of making sure all your tags are closed (including unary
tags like <br/> ) and a little touch up.
Of course there are lots of mitigating factors as well, and you have to be
using ASP.NET 2.0 to get XHTML compliant output.
> To clarify, I want to put different pieces into production at different
> times (for a bunch of logistical reasons). If I do this, then I'd have
> rendered pages sent to the browser with a mix of HTML 4.x and XHTML
> 1.0-compliant markup.
If by "mix" you mean in the same page, then that could be bad (maybe), but
if you mean one page might be XHTML and another HTML, then that's fine.
> My secondary question is this: What do I use for the DTD when I have this
> mix going on?
You mean DOCTYPE? If so, then you use an XHTML doctype for XHTML pages,
and HTML doctype for HTML pages.
Fred Mertz wrote:
> I'm wanting to make this thing fully XHTML 1.0 compliant.
Do you have a good reason for wanting to use XHTML?
http://www.spartanicus.utvinternet.ie/no-xhtml.htm
I read the article at your link, and... Good grief = this is insane. They
come out with a new standard and there are apparently a bunch of problems
with using it. Yes - it all makes sense; but what are we supposed to do?
Apparently the "logical" answer is to WAIT until the browsers come up to
speed. Yes?
What do you recommend? WHEN would it make sense, if ever, to migrate to
anything other than HTML 4.01?
-FM
"Nik Coughlin" <nrkn.com@.gmail.com> wrote in message
news:44334271$1@.clear.net.nz...
> Fred Mertz wrote:
> Do you have a good reason for wanting to use XHTML?
> http://www.spartanicus.utvinternet.ie/no-xhtml.htm
>
My "incremental" upgrade path would result in the mix of XHTML with HTML on
the same page...
-FM
"Erik Funkenbusch" <erik@.despam-funkenbusch.com> wrote in message
news:pekohrjv0520.dlg@.funkenbusch.com...
> On Tue, 4 Apr 2006 16:33:16 -0700, Fred Mertz wrote:
>
> Each web page is an entity of itself, for the most part. That means you
> can change one page at a time without much trouble in most cases.
> How much work that is, depends on how much of your HTML needs to change.
> For example, if you use a ton of font tags, then you're going to have some
> work ahead of you.
> If you already use CSS for most of your styling and aren't using any
> deprectated features, and are already using all lower case tags, then it
> might be a matter of making sure all your tags are closed (including unary
> tags like <br/> ) and a little touch up.
> Of course there are lots of mitigating factors as well, and you have to be
> using ASP.NET 2.0 to get XHTML compliant output.
>
> If by "mix" you mean in the same page, then that could be bad (maybe), but
> if you mean one page might be XHTML and another HTML, then that's fine.
>
> You mean DOCTYPE? If so, then you use an XHTML doctype for XHTML pages,
> and HTML doctype for HTML pages.
On Wed, 5 Apr 2006 00:18:29 -0700, Fred Mertz wrote:
> My "incremental" upgrade path would result in the mix of XHTML with HTML o
n
> the same page...
Then you need to be more careful. xhtml is essentially a subset of HTML.
That means you can create xhtml pages that conform to HTML. So, as long as
the pages contain some HTML you continue to use an HTML doctype.
On Wed, 5 Apr 2006 16:07:02 +1200, Nik Coughlin wrote:
> Fred Mertz wrote:
> Do you have a good reason for wanting to use XHTML?
> http://www.spartanicus.utvinternet.ie/no-xhtml.htm
One argument the author ignores is validation. XHTML validation is
stricter than HTML validation, which means that you can validate your code
against an XHTML validator to ensure better markup. I agree with many of
his points, though. I just don't agree that XHTML is pointless.
On Wed, 5 Apr 2006 00:17:46 -0700, Fred Mertz wrote:
> What do you recommend? WHEN would it make sense, if ever, to migrate to
> anything other than HTML 4.01?
As i said in another message, XHTML is basically a subset of HTML. Nothing
is stopping you from writing code that conforms to the XHTML subset with an
HTML doctype.
Thank you Erik for all of your helpful responses.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment