[daisy] Safe way to share Field, Part and Document Types
between instances of Daisy 1.5
Bruno Dumon
bruno at outerthought.org
Fri Dec 8 02:02:33 CST 2006
On Thu, 2006-12-07 at 15:07 -0500, Robert Cecil wrote:
> Ok, Now I've switched to using Daisy 2.0-dev... (for other reasons).
>
> I was looking at the pages regarding import/export and I don't see a
> clear way to flag either the import / export to work with schema
> alone. It seems you have to give it a list of actual document ids?
> I'm looking for a way to create to share a centrally versioned (SCM)
> schema for a team of devs working on a Daisy site.
The import/export tools are really meant for importing / exporting a set
of documents. The export will only export the document types needed by
the exported documents.
The schema import/export code is however seperately accessible. For the
import part, there is a tool called daisy-schema-uploader included in
the Daisy distribution (this tool also exists in Daisy 1.5, though it is
improved in 2.0, e.g. it only updates the schema types if they are
really changed).
So one option is to hand-author the schema XML file, and then import it
using the standalone import tool.
Creating a corresponding export tool wouldn't be too hard, the basic API
calls to do such a thing are:
ImpExpSchema schema = ImpExpSchemaFactory.build(docTypeIds, repository);
ImpExpSchemaXmlizer.toXml(schema, outputStream, repository);
It would also be cool if we eventually included this functionality
directly in the Administration console of the wiki (which is just a
matter of some GUI work).
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list