On 25 December 2014 at 21:18, Lee Fisher <l.office.fis...@gmail.com> wrote:

> I got a dump of 250MB of ODF files from the AOO bug database, via Rob,
> the ODF subset used for his recent Peach fuzzing.
>
> There are very few examples of scripts. All of the examples I've found
> to date use these XML files, which refer to these DTD files.
>
> I have not see any other script files which do not use these XML files
> and refer to these DTDs.
>
> So, these DTDs *are* referred by one ODF producer which implements scripts.
>
It is correct that you will find many XML based documents that refer to DTD
documents, actually it is a part of XML standard to do so.

But that does not mean that scripts or programs use these files. They are
often (and in case of AOO it is so) included just as a reference for
defining which XML constructs are legal. If you google DTD there are a
handfull of sites that offer them for both ODF and OOXML.

rgds
jan i.




>
> I'll dig up the specific filenames.
>
> Since these scripts came from the bug database, the're the 'wild west',
> could be generated from anywhere.
>
> I really wish I had a test suite of AOO QA documents which exercised the
> script abilities.
>
> I realize scripting is outside of the OASIS ODF spec. I would like to
> find the AOO docs that describe their implementation of scripts.
>
> Thanks,
> Lee
>
> On 12/25/2014 11:54 AM, Dennis E. Hamilton wrote:
> > The files listed below are not conventional files used in ODF packages.
> The basic ODF files do not use DTDs and files by those names are not part
> of the standard ODF document structure.  While there might be other files
> in an ODF package, usually XML files are expected to conform to [xml-names]
> and need a different schema.
> >
> > What is the file extension on the files you are examining and are there
> standard ODF components there as well, such as content.xml (the minimum
> requirement) and a META-INF/manifest.xml conforming to the ODF
> specification.
> > If it is otherwise an ODF package, the meta.xml file should reveal what
> software produced it.
> >
> > It may be that these are *OpenOffice-specific and you will find nothing
> about them in the ODF specification, so your tool may need to differentiate
> between ODF and implementation-specific content.
> >
> > Note that scripting is implementation-dependent in the ODF specification.
> >
> >  - Dennis
> >
> > -----Original Message-----
> > From: Lee Fisher [mailto:l.office.fis...@gmail.com]
> > Sent: Thursday, December 25, 2014 11:41
> > To: dev@openoffice.apache.org
> > Subject: location of libraries/library/module/script DTDs?
> >
> > Hi,
> >
> > Where can I find these DTDs:
> >
> >   libraries.dtd
> >   library.dtd
> >   module.dtd
> >   scripting.dtd
> >
> > These are used in ODF packages for the script-lb.xml, script-lc.xml, and
> > parcel-description.xml files. Besides the DTDs, are there any specs that
> > describe the format of these 3 XML files?
> >
> > I haven't found them in the SDK or the source distribution.
> >
> > I need them to do DTD validation of the script-related metadata in these
> > XML files, in addition to the RelaxNG validation of the other ODF XML
> > content.
> >
> > I'm working on an ODF diagnostic tool, and I need to study these to
> > determine if there can be multiple scripts per XML file, etc.
> >
> > Thanks,
> > Lee
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> > For additional commands, e-mail: dev-h...@openoffice.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> > For additional commands, e-mail: dev-h...@openoffice.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>

Reply via email to