27/11/2000 - version 0.0.1
--------------------------

This is the first version of this implementation. It is based on the
HTML code 
from ECS 1.3.3.

After some of the code creators pointed out that ECS 1.x isn't very
extensible, I've decided to do the 'hard yards' and rewrite the whole
thing. In the process, I've used some *VERY* sophisticated code reuse
techniques, such as 'cp' and 'vi'...

Jokes aside, you can find the patch here:

ftp://ftp.binarix.com/pub/ecs-xhtml/ecs-1.3.3-xhtml-0.0.1.patch.gz

This text is at:

ftp://ftp.binarix.com/pub/ecs-xhtml/README.ASC

Apply the patch from the ECS distribution directory (e.g.
/usr/local/src/ecs-1.3.3) by running:

zcat <path>/ecs-1.3.3-xhtml-0.0.1.patch.gz | patch -p1

Although the patch is against 1.3.3, it should apply (with possible
slight mods) to (some) other versions, since there is only one modified
file, the rest are additions.

I don't have write access to ECS CVS, so if some of the main ECS
developers believe this code classifies as something useful, they'll
have to upload it to the main development tree.

About the patch
---------------

XHTML is HTML defined as an XML application. So, XHTML is XML, and it
has to follow a bit stricter syntax rules than HTML. It is also case
sensitive, so all tags and attributes are lowercase. All tags also have
to be closed. There are a few other little quirks, you can read about it
here:

http://www.w3.org/TR/xhtml1/

Anyway, I've added a few new DTD's to Doctype and new convenience
classes XhtmlDocument and XhtmlFrameSetDocument. The latter two are
equivalent to their HTML counterparts, except for the underlying
implementation which is XHTML rather than HTML. The rest of the fancy
footwork is inside org.apache.ecs.xhtml package. You'll notice that
class names are lowercase, as opposed to org.apache.ecs.html, where
class names are mixed case.

I've kept the credits for the authors of the original code. Please don't
e-mail them with patch related problems.

Please note that using the patch to produce XHTML doesn't guarantee that
pages will validate against http://validator.w3.org/. Most of it should
be OK though (if some rules a followed).

Here is (roughly) what was done to the original code:

+ add XHTML DTD's to Doctype
+ create new package org.apache.ecs.xhtml
+ copy HTML classes into XHTML
+ call setCase(LOWERCASE) in the private initialiser to force lower case
+ call setAttributeQuote(true) in the private initialiser to force
quoting
+ for single part elements call setBeginEndModifier('/')
+ change setLang() to do xml:lang as well for all classes
+ change setNoWrap and similar functions to be in the long form (i.e.
nowrap="nowrap")
+ Document -> XhtmlDocument
+ FrameSetDocument -> XhtmlFrameSetDocument
+ remove setBackground from td element (spec doesn't talk about it)
+ unhide script tags (XML parsers are free to remove comments)

I hope some of you will find this useful.

Have fun,
Bojan Smojver
[EMAIL PROTECTED]


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to