[daisy] Daisy detachment

Marc Portier mpo at outerthought.org
Thu Jul 6 02:02:46 CDT 2006



Bruno Dumon wrote:
> On Wed, 2006-07-05 at 17:49 +0200, Marc Portier wrote:

<snip />

>>> -Things like branches and languages are stored in a Document object as
>>> ids. These mean a lot to a computer but not much to a human. It would be
>>> nice for people to see the name of the document owner, for example, for
>>> the document they have detached. Retrieving names involves connecting to
>>> the repository, which is not something we want to do except for when
>>> downloading and uploading detachments. My solution was to retrieve this
>>> information when the Document was first downloaded and store it with the
>>> Document in an implementation of the Document interface called
>>> DetachmentDocument. This implementation has fields such as ownerName for
>>> storing this information. Of course this information must be persisted
>>> in the detachment file so it can be accessed next time the file is
>>> opened. This means the getXml() method is no longer sufficient as it
>>> does not provide the name attributes I want. I have the schema and the
>>> generated classes for a more complete xml rendering, but now I'm
>>> starting to wonder if it is really so important for people to be able to
>>> see owner name or branch name since it would be much easier to stick
>>> with the current implementation. Otherwise, if any one has any
>>> suggestions or ideas they would be appreciated.
>> I think having the readable formats will turn out to be highly
>> appreciated (even a crucial element of perceived usability)
>>
>> Maybe you should explain why the various 'name' variants can't be in the
>> getXML()?
> 
> Might be because these are not in the document XSD, when reusing Daisy's
> schema/classes. But if that's the problem, I think it would be better to
> keep a separate file for mapping IDs of entities to their name/label.
> 

+1, I think that's the best way to approach this.

(and thx for clarifying the other points)

-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo at outerthought.org                              mpo at apache.org


More information about the daisy mailing list