Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Resolving entities etc.

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Matthew Darlison" <m.darlison AT ucl.ac.uk>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Resolving entities etc.
  • Date: Wed, 30 Jun 2004 18:31:57 +0100

Hi again,

Thanks to Elliotte for such a fast response - and thanks for the work
to get nu.xom.* this far - I think it was hearing you speak in London
on the whole XML API issue and the need to do it better that hooked
me...

On 30 Jun 2004 at 8:33, Elliotte Rusty Harold wrote:
> At 12:50 PM +0100 6/30/04, Matthew Darlison wrote:
> >I'm building a susbsystem to recursively unpack and extract some
> >content from OpenOffice.org files (which are in effect zip archives
> >of XML...). So far, so good, but the extracted XML makes references
> >to a complex set of DTD and numerous .mod files, so that parsing the
> >content.xml file that I am interested in fails unless all of the
> >ancillary files are in the same directory...
>
> Why wouldn't they be there if that's where the references say they
> are?

<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD
OfficeDocument 1.0//EN" "office.dtd">

is what they say, which seems odd since the files are all zipped up
inside an OpenOffice file... so there is no local directory there per
se - they'd have to be in the root of the .zip (.sxw), which they
aren't... they're off in OpenOffice.org's installation tree... and as
they the files seem not to parse "out of the zip", I can't get in to
fix them...

> >This may be a dumb question (apologies if it is... I'm learning...!),
> >but is there any way of replicating what a CATALOG file would do
> >under other circumstances, so that the ancillary files can be
> >referenced from a single location...?
>
> There's no catalog support built-in. It's on the TODO list for post
> 1.0. You could use a custom XMLReader that used the Apache catalog
> resolver.

I've been trying to get my head around this, and not having much
success either in doing it or finding any documentation on how to or
examples to see how it's been done... Does anyone have any clues or
wisdom they might share..?

Thanks again,

Yours,

Matthew

--
"Mr. Matthew Darlison BA MA" <M.Darlison AT ucl.ac.uk>
Senior Research Fellow, Clinical & Applied Bioinformatics
UCL Centre for Health Informatics and Multiprofessional Education
(CHIME)
WHO Collaborating Centre for the Community Control of Inherited
Disorders
APoGI on the Web at http://www.chime.ucl.ac.uk/APoGI/






Archive powered by MHonArc 2.6.24.

Top of Page