commit: abi: UT_XML (was Re: multiple inheritance)


Subject: commit: abi: UT_XML (was Re: multiple inheritance)
From: F J Franklin (F.J.Franklin@sheffield.ac.uk)
Date: Thu Oct 18 2001 - 09:25:15 CDT


I've tested this (though not rigorously) with expat on XDarwin, and will
be testing it with libxml2 this weekend.

There is still XML dependence in ut_string.cpp and xap_EncodingManager.cpp
which can't be localized in UT_XML neatly.

I'm a little concerned about the XML sniffers (what's the nasal
equivalent of myopia?). They use a technique which failed with Adobe
Illustrator's SVG and could easily fail for similar reasons with the other
XML formats. I propose to add a .sniff (const char * szFilename) method to
UT_XML that uses expat/libxml2 to do detection properly.

Something else it may be worth doing is adding support for automatic
decompression of XML, which libxml2 does if compiled with zlib support.
Doing this would mean there would be no need for separate ZABW & SVGZ
importers (or for the ABW & SVG importers to *explicitly* support
decompression).

Any thoughts?

o localize (most) XML stuff to UT_XML
o importers now implement UT_XML::Listener (idea by Joaquin Cuenca Abela)
o IE_Imp_GZipAbiWord & IE_Imp_BZip2AbiWord implement UT_XML::Reader

CVS:----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/af/util/xp/GNUmakefile.am src/af/util/xp/Makefile
CVS: src/af/util/xp/ut_svg.cpp src/af/util/xp/ut_svg.h
CVS: src/af/util/xp/ut_xml.h src/af/xap/xp/xap_Prefs.cpp
CVS: src/af/xap/xp/xap_Prefs.h src/af/xap/xp/xap_Strings.cpp
CVS: src/af/xap/xp/xap_Strings.h
CVS: src/wp/impexp/xp/ie_imp_AbiWord_1.cpp
CVS: src/wp/impexp/xp/ie_imp_AbiWord_1.h
CVS: src/wp/impexp/xp/ie_imp_BZ2Abw.cpp
CVS: src/wp/impexp/xp/ie_imp_BZ2Abw.h
CVS: src/wp/impexp/xp/ie_imp_DocBook.cpp
CVS: src/wp/impexp/xp/ie_imp_DocBook.h
CVS: src/wp/impexp/xp/ie_imp_GZipAbiWord.cpp
CVS: src/wp/impexp/xp/ie_imp_GZipAbiWord.h
CVS: src/wp/impexp/xp/ie_imp_KWord_1.cpp
CVS: src/wp/impexp/xp/ie_imp_KWord_1.h
CVS: src/wp/impexp/xp/ie_imp_WML.cpp src/wp/impexp/xp/ie_imp_WML.h
CVS: src/wp/impexp/xp/ie_imp_XHTML.cpp
CVS: src/wp/impexp/xp/ie_imp_XHTML.h
CVS: src/wp/impexp/xp/ie_imp_XML.cpp src/wp/impexp/xp/ie_imp_XML.h
CVS: src/wp/impexp/xp/ie_imp_XSL-FO.cpp
CVS: src/wp/impexp/xp/ie_imp_XSL-FO.h
CVS: Added Files:
CVS: src/af/util/xp/ut_xml.cpp
CVS:----------------------------------------------------------------------

Regards, Frank

Francis James Franklin
F.J.Franklin@shef.ac.uk

Deep in the human unconsciousness is a pervasive need for a logical
universe that makes sense. But the real universe is always one step
beyond logic.
          --- from `The Sayings of Muad'dib' by the Princess Irulan



This archive was generated by hypermail 2b25 : Thu Oct 18 2001 - 09:25:22 CDT