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] | [List Home]

Subject: Re: [docbook-apps] olinking - invalid target.db

Hi Sean,
In general, it isn't possible to validate an olink database against the 
targetdatabase.dtd  because the cross reference data can include an 
arbitrary mix of HTML or FO markup.  It is the same problem as trying to 
validate an XSLT stylesheet, which has literal result elements mixed in 
with xsl namespace elements.

The data and the olink database elements should be in separate namespaces, 
and only the database elements should be validated. But that kind of 
processing isn't available with DTD tools, as far as I know.

The reason you see the HTML or FO markup in the olink data is because the 
olink database captures the rendered version of an xref, based on the 
stylesheet (and any customizations) in use at the time, not the raw DocBook 
xml source.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Sean Wheller" <sean@inwords.co.za>
To: "DocBook Apps Mailing List" <docbook-apps@lists.oasis-open.org>
Sent: Friday, November 17, 2006 11:29 AM
Subject: [docbook-apps] olinking - invalid target.db


When generating target.db files for documents the result for elements such 
chapter produces

<div element="chapter" href="#d0e55" number="1">
      <xreftext>Chapter 1, <i>Overview</i>

when using the html stylesheets
when using the fo styleseets a fo:inline replaces the <i>

This creates a problem when using a main olink.db created against

Both HTML element <i> and <fo:inline> are not declared in 
with the result that the olink.db is invalid.

I wonder, why must the docbook stylesheets include the italic formatting in
this way. Surely the formatting should be controlled somewhere else such as 
inline like <emphasis>?

Ask me about the Monkey.

Sean Wheller
Technical Author

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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