[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] RFC: Decouple DOM HTML parser from Swing
From: |
Roman Kennke |
Subject: |
[cp-patches] RFC: Decouple DOM HTML parser from Swing |
Date: |
Thu, 25 Aug 2005 12:40:15 +0200 |
Hi,
I notice that the HTML parser in gnu.xml.dom.html2 depends on
gnu.javax.swing and javax.swing packages. That is because it basically
extends the Swing HTML parser. The problem that I have is that we (==
Aicas) also would like to build with GUI-less configurations, that means
without AWT and Swing. The situation now is that ripping out AWT and
Swing also means ripping out the whole DOM stuff because of this
dependency.
Ideally I would like to have an independent DOM HTML parser, and let the
Swing HTML parser extend that, instead of doing it the other way round.
I already contacted Audrius in private for suggestions on solving this
dependency problem. My solution for now is to decouple the dependency by
detecting and loading the DomHTMLImpl dynamically. Is this ok to check
in?
2005-08-25 Roman Kennke <address@hidden>
* gnu/xml/dom/DomImpl.java
(hasFeature): Dynamically detect if there actually is a HTML
parser implementation present.
(getFeature): Dynamically load the DomHTMLImpl. This decouples
the XML/HTML packages from the Swing packages.
/Roman
DomImpl.diff
Description: Text Data
- [cp-patches] RFC: Decouple DOM HTML parser from Swing,
Roman Kennke <=