[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Re: Tidy as output handler (was: XT and XHTML)

Subject: [list4xt] Re: Tidy as output handler (was: XT and XHTML)
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 28/04/2000 - 18:12


> Note that I am not sure it can easily be done since it is relying on DOM
> :(

After "diving into the blinding code", I think that it's possible
without too much coding but it's requiring to build a DOM out of the
result.

I had a look at the DOM support and I think (just tell me if I am wrong)
that it's really supported as input only (the W3C DOMs for both the XML
and XSL documents are mapped as generic DOM using the
com.jclark.xsl.dom.RootNode class.

It looks like the result tree is never materialized as a tree but only
pushed to the output as SAX events.

To support DOM as output, the com.jclark.xsl.dom.DOMBuilder class has
been developed which is an output method just building a DOM.

(No wonder why this mode is slower than the classical XT one ;)

James writes :
> It is also possible to mix SAX and the DOM, using the DOM
> for input and SAX for output

More than this, it looks that the input and output are totally
independent and that the reverse is true as well.

This DOM should then easily be useable by Jtidy...

The solution would probably be slow. On the other hand, it could be used
with all the output options of Jtidy to check and generate html and
xhtml.

Another usage of Jtidy would be to use it to read html documents as
xhtml.

What does the list4xt think about all this ?

Eric

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://adultstoredesign.com
creator                  http://highriskmerchantaccount.co -              http://hardemancountychamber.org
editor                   http://tcteachersfcu.com              http://highriskcc.com
------------------------------------------------------------------------

-- Mailing list for the XT users community. (http://rideforthestars.org) (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org


A site designed by Dyomedea