Next in thread → Next in month →

Re: [docbook-apps] Is-it possible to include TEI parts in a docbook book?

From
Bob Stayton <>
Date
2010-12-16T17:47:06+00:00
ID
02e701cb9d49$39d6e830$6600a8c0@pazu
Thread
Re: [docbook-apps] Is-it possible to include TEI parts in a docbook book?
One of the reasons DocBook 5 was put into a namespace was to enable applications to 
more easily mix content from other namespaces in XML documents.  Putting such content 
into a DocBook document means adding the TEI namespace declaration to the document and 
inserting the TEI elements with TEI namespace prefix into the document.  The Sun 
Multi-Schema Validator (MSV) is a free tool that can validate a document with multiple 
namespaces.

In terms of formatting, the DocBook XSL stylesheets have no templates for matching 
elements in the TEI namespace.  You would have to create a template to match on each 
TEI element you use.  The formatting applied by the template would have to fit in with 
the formatting done by the DocBook container element.  Depending on which TEI elements 
you use, that work is probably non-trivial.

It might be easier to convert the TEI content to DocBook.  An XSLT transformation can 
do that, even for TEI content embedded in DocBook 5 (the conversion templates for 
DocBook 5 elements just copy through).  If the TEI content is "live", you could do the 
conversion automatically as part of a build process.  Then you could just use the 
DocBook XSL stylesheet to format everything.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Streit Eric" <>
To: <>
Sent: Monday, December 13, 2010 4:10 AM
Subject: [docbook-apps] Is-it possible to include TEI parts in a docbook book?


> Hi,
>
> I am formating and translating a language course (written in English and
> for the Russian language).
>
> There are some parts which are like a dictionary (the vocabulary): could
> I use the TEI dictionary part and include it in my docbook document?
>
> If it is possible, could you explain how to do this?
>
> Thanks
>
> Eric!
> -----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →