W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

RE: Converting HTM to XML

From: Reitzel, Charlie <CReitzel@arrakisplanet.com>
Date: Mon, 28 Jan 2002 13:15:39 -0500
Message-ID: <B5C79DDBC655D311B6BD0008C7E64D76013C1B08@exchange.arrakisplanet.com>
To: "'Mervyn & Marica Jones'" <jones@netdial.co.za>, html-tidy@w3.org
To be as specific as possible, see:

Output XHTML 
http://tidy.sourceforge.net/quickref.html#output-xhtml

DOCTYPE handling
http://tidy.sourceforge.net/quickref.html#doctype

HTML Scraping (extract <body> contents)
http://tidy.sourceforge.net/quickref.html#show-body-only

How To Set Config/Options Generally
http://tidy.sourceforge.net/docs/Overview.html#help

One thing to be aware of when converting to XHTML is that your in-line
Javascript (or VBScript or what have you) may conflict with reserved XML
characters.  Browser script functions within <script></script> tags are
CDATA escaped so that ampersands(&) and less than/greater than signs (<,>)
are passed to the scripting language unaltered.  But it is not possible to
do this for in-line event handlers (e.g. onclick="if ( a > b && c < d) { a =
d; }; return false;").  You will have to modify these handlers to make a
simple function call and move the actual code to a <script> tag.

take it easy,
Charlie

-----Original Message-----
From: Mervyn & Marica Jones [mailto:jones@netdial.co.za]
Sent: Saturday, January 26, 2002 2:54 PM
To: html-tidy@w3.org
Subject: Converting HTM to XML



Hi
I visited your website and found a similar topic bu I was unable to access
the answer.  Is there an example anywhere of the original HTML file and the
new XML file??  I have a project to complete.  Please help

Thank you
Marica Jones (jones@netdial.co.za)
Received on Monday, 28 January 2002 13:16:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:51 GMT