OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: DOCBOOK-APPS: Interactive reading

Overriding templates in the docbook xsls could get messy. The stylesheet
below avoids that by using apply-imports. It causes the elements to be
processed with the imported docbook templates, but then you have a
chance to write in whatever markup you need. The reason I do table and
informaltable separately like that is because they both can occur inside
para, but also can occur as block level elements as peers to other
paras. I add the not(ancestor::table) to avoid having the 'comment'
button showing up in every cell in a table. There are probably other
cases besides these you'll have to account for that aren't occurring to
me right now. 

Btw., I think an annotation mechanism like you describe would be a nice
feature. Please let me know what you come up with.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet>

<xsl:stylesheet version="1.0"

  <xsl:import href="path_to/html/docbook.xsl"/>

<xsl:output method="html"

  <xsl:template match="para[not(ancestor::table)]">
    <!-- Your stuff here -->

  <xsl:template match="table[not(parent::para)] |
    <!-- Your stuff here -->


-----Original Message-----
From: Joachim Ziegler [mailto:ziegler@algorilla.de]
Sent: Sunday, September 15, 2002 11:26 AM
To: docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: Interactive reading

Am Donnerstag, 12. September 2002 19:05 schrieb Dave Pawson:
> The W3C have this thing called Annotea which is essentially
> the same thing.... but for HTML?
> Regards DaveP

but you need a special server and a special browser to make and view

this is more complicated than simply embedding the annotations in plain

btw, is there an easy possiblity to extend the DocBook Stylesheets, so
after normal processing of a <para>, I can add some special markup to
final output (something like a "hook")?

this would help me to built an easy to use annotation mechanism.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC