From other DTDs to Z39.86

TO DO

  • improve existing XSLT
  • add support for other DTDs

DAISY 2.02 XHTML to dtbook

/stylesheets/daisy202/dtbook/daisy2022dtbook.xsl

upCastGeneric 3.0 and 4.0 to dtbook

upCast is a tool provided by Infinity Loop. upCast is able to convert RTF files to XML.

One possible output is XML validating against upCastGeneric DTD. When using upCast we recommend using the following options :

  • XML (generic DTD)
  • Remove empty elements
  • Include visual elements
  • Validate
  • XML DTD
  • Write to file
  • Table model : HTML 4.x
  • 'kind' Naming conventions : XML 1.0

The current version of upCast is 3.0.8 (Build 21). upCastGeneric DTD may be found at http://www.infinity-loop.de/DTD/upcast/V3.0/upCastGeneric.dtd.

We use upCast for producing both dtbook and opf files. We rely upon informations found in document properties. Some of these parameters may be passed as arguments.

upcast2dtbook

/stylesheets/upcast/dtbook/upcast2dtbook.xsl

Parameter Description
debug Set to true() to output debug information.
section-numbering Set to true() to insert section numbering
langDefault Set the language of the book or set a property 'dc:Language' in RTF documents.
uid Set the unique identifier of the dtbook or set a property 'dc:Identifier' in RTF documents.
title Set the title of the book, or set the title in properties of the RTF document.

See comments in the stylesheets for furher information.

upcast2opf.xsl

/stylesheets/upcast/dtbook/upcast2opf.xsl

Should we keep thtat feature ?

Questions

At present we use RTF document properties for :

  • dc:Identifier : unique identifier
  • dc:Language, lang attribute : language of dtbook
  • dc:Creator and docauthor : author of the book
  • dc:Title, title and doctitle : title of the book
  • and others to use in generating OPF files

Where could we get these informations oterwise ?

To build a valid OPF, we need to write filenames in the manifest. How to decide on that ? At present, unique identifier is used.


SourceForge.net Logo Valid XHTML 1.0!

Markus Gylling