473,735 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tips and advice on converting from HTML 4.01 Trans. to XHTML

I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01
Transitional and CSS compliant, and I'm thinking of converting it into XHTML
to learn a little about it. Which XHTML variant would you recommend? The w3c
HTML validator mentions XHTML 1.0 Transitional, Basic, Strict, and XHTML
1.1. Would I be able to make my existing CSS work in the XHTML page without
modification to the .css file?
Jul 23 '05 #1
29 3905
Armand Karlsen wrote:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML
4.01 Transitional and CSS compliant, and I'm thinking of converting
it into XHTML to learn a little about it. Which XHTML variant would
you recommend? The w3c HTML validator mentions XHTML 1.0
Transitional, Basic, Strict, and XHTML 1.1. Would I be able to make
my existing CSS work in the XHTML page without modification to the
.css file?


HTML Tidy might be of great help to automatically concert your pages. I
suggest XHTML 1 Strict but you may go for something else. If you are
using "transition al" a move to "strict" may cause some headaches now,
but they should be worth it in the long run.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #2
On Mon, 29 Nov 2004, Armand Karlsen wrote:
Subject: Tips and advice on converting from HTML 4.01 Trans. to XHTML


Tip: Don't.
Go to HTML 4.01 Strict if you want to convert something and don't know
what to do else in your spare time.

--
Top-posting.
What's the most irritating thing on Usenet?

Jul 23 '05 #3
"Andreas Prilop" <nh******@rrz n-user.uni-hannover.de> wrote in message
news:Pine.GSO.4 .44.04112916212 10.3945-100000@s5b004.. .
On Mon, 29 Nov 2004, Armand Karlsen wrote:
Subject: Tips and advice on converting from HTML 4.01 Trans. to XHTML


Tip: Don't.
Go to HTML 4.01 Strict if you want to convert something and don't know
what to do else in your spare time.


Is converting HTML 4.01 Transitional to XHTML-anything a pain?
Jul 23 '05 #4
On Mon, 29 Nov 2004, Armand Karlsen wrote:
Is converting HTML 4.01 Transitional to XHTML-anything a pain?


I'm sorry - no. Please refer to <news:soc.sexua lity.spanking>

Jul 23 '05 #5
Armand Karlsen wrote:
"Andreas Prilop" <nh******@rrz n-user.uni-hannover.de> wrote in message
news:Pine.GSO.4 .44.04112916212 10.3945-100000@s5b004.. .
On Mon, 29 Nov 2004, Armand Karlsen wrote:

Subject: Tips and advice on converting from HTML 4.01 Trans. to XHTML
Tip: Don't.
Go to HTML 4.01 Strict if you want to convert something and don't know
what to do else in your spare time.

Is converting HTML 4.01 Transitional to XHTML-anything a pain?


Depends on the quality of your HTML code. It's possible to write code
that is both HTML 4.01 Transitional and XHTML 1.1 compliant (excepting
served media type), if you avoid "empty" elements like <br>, <hr> and so on.

Arbitrary HTML is a pain to convert, yes. Andreas' point is that there
is no benefit in doing so. Convert your code to comply with HTML Strict,
and add some of the XHTML rules in to make for easier transition later:

* all elements in lowercase
* all attributes quoted, even compact ones
* closing tags included for all non-empty elements, even optional ones

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #6
In our last episode,
<41************ **********@news .zen.co.uk>,
the lovely and talented Armand Karlsen
broadcast on comp.infosystem s.www.authoring.html:
"Andreas Prilop" <nh******@rrz n-user.uni-hannover.de> wrote in message
news:Pine.GSO.4 .44.04112916212 10.3945-100000@s5b004.. .
On Mon, 29 Nov 2004, Armand Karlsen wrote:
> Subject: Tips and advice on converting from HTML 4.01 Trans. to XHTML
Tip: Don't.
Go to HTML 4.01 Strict if you want to convert something and don't know
what to do else in your spare time.

Is converting HTML 4.01 Transitional to XHTML-anything a pain?


No. Tidy can be persuaded to do a pretty good job of converting -
if you have a valid HTML 4.01 * document to begin with. Otherwise:
GIGO.

--
Lars Eighner -finger for geek code- ei*****@io.com http://www.io.com/~eighner/
Nobody home but the lights, and they're out too.
Jul 23 '05 #7
Armand Karlsen wrote:
"Andreas Prilop" <nh******@rrz n-user.uni-hannover.de> wrote in message
news:Pine.GSO.4 .44.04112916212 10.3945-100000@s5b004.. .
On Mon, 29 Nov 2004, Armand Karlsen wrote:
Subject: Tips and advice on converting from HTML 4.01 Trans. to
XHTML


Tip: Don't.
Go to HTML 4.01 Strict if you want to convert something and don't
know what to do else in your spare time.


Is converting HTML 4.01 Transitional to XHTML-anything a pain?


HTML Strict -> XHTML Strict = relatively easy (HTML Tidy)
HTML Strict -> XHTML Transitional = relatively easy
HTML Transitional -> XHTML Strict = relatively hard

Then again if you don't know what to gain with XHTML you may want to
simply convert HTML4 Transitional to Strict. That may be hard but will
improve on a site.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #8
Lars Eighner wrote:
Tidy can be persuaded to do a pretty good job of converting -
if you have a valid HTML 4.01 * document to begin with. Otherwise:
GIGO.


Sorry, but that's really misleading to beginners. Tidy HTML is
precisely so useful because it can turn *invalid* documents (garbage)
into *valid* documents (clean stuff). Maybe you are right it cannot
handle *total* chaos, but let's not throw out the baby with the bath
water.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #9
On Mon, 29 Nov 2004, Armand Karlsen wrote:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML
4.01 Transitional and CSS compliant, and I'm thinking of converting
it into XHTML
You need to have a good reason. Most of us don't have, I would
suggest.

I might (just *might*) make an exception for newly-generated content.
to learn a little about it.
Well, maybe. But why? If XML is good for anything, it's because
of a better toolkit. So if you're interested in XHTML, why not
learn something about XML toolkits? There's nothing exciting about
converting old HTML into shiny XHTML.

If you want to do something that -is- worthwhile, then I'd suggest
looking at getting rid of transitional features, and work to Strict.

That could be Strict HTML/4.01 or Strict XHTML/1.0 - whereby HTML
is still slightly more compatible with the existing browser population
that's out there.
Which XHTML variant would you recommend? The w3c
HTML validator mentions XHTML 1.0 Transitional, Basic, Strict,
As I say, it seems to me that the move away from Transitional is more
important and more fundamentally interesting than the rather trivial
move from H/4.01 to X/1.0.
and XHTML 1.1.
But XHTML 1.1 doesn't have any counterpart of XHTML/1.0-Appendix C,
without which, you can't feed it to the widely-used browser-like
operating system component. That makes it of no great practical
interest in WWW terms right now, whatever one may think of the theory.
Would I be able to make my existing CSS work in the XHTML page without
modification to the .css file?


The short answer to that is "yes".

good luck
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1813
by: Krista Bailie | last post by:
I'm sure this is so easy that it will hurt for anyone to read it, but I really need some direction. I'm trying to create a color chart (RGB) that shows steps between two different colors as entered by the user. I know the web script must convert the values into integers, store them as variables and then output them, but I cannot seem to establish the calculation for this. I'm attaching the html I've got, that works when the page is...
5
1398
by: lquast | last post by:
What's the best and fastest way to approach converting a large HTML site to XML? Thanks.
1
1995
by: Donald Firesmith | last post by:
We are converting the OPEN Process Framework Repository (www.donald-firesmith.com) of over 1,100 free open source reusable process components for building development methods for software-intensive systems from html to xml. The current html files are organized into a hierarchy of dozens of files based on the natural metamodel of process components on which the framework is based. I have the following questions: 1) What is the...
2
2870
by: mike | last post by:
regards: I follow the following steps to converting from HTML to XHTML http://webpageworkshop.co.uk/main/xhtml_converting My parser is http://htmlparser.sourceforge.net/ Xhtml version is 1.0 from http://nds.nokia.com/uaprof/N6600r100.xml but nokia mobile browser cannot identify the converted file(XHTML1.0). Is there something wrong with my procedure.
5
3609
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an instruction document (not data based) - same as using an xml web control. The resulting html is on the client? but what about the server side of things? Trying to figure out how to change and save the xmlDocument. It I put a button OUTSIDE of the...
1
1801
by: darrel | last post by:
I have two issues: 1) The WYSIWYG content editor we're using for our CMS doesn't truly support xhtml. 2) .net doesn't truly support xhtml my question is if there is a .net library/class/component that can convert from html to xhtml?
9
6728
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP page, I want to grab a URL and parse /change the HTML and send it to the JSP page. I take the URL from the user in a textbox (not the
3
1702
by: jitu78 | last post by:
Many Web designers and developers have been building Web pages for years. Just one person can create so many sites with so many pages that the thought of trying to convert all of them to anything is completely overwhelming. But if you've been building pages with an editor or by hand, you probably have pages that are not valid XHTML, and use old HTML styles like the font tag instead of Cascading Style Sheets. There are valid reasons for...
0
8959
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8784
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9462
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9199
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6049
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4558
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.