[docbook] Customization of attribute set

2014-01-30 Thread julia . jacobson
Hello everybody out there using DocBook 5,

Customizing the attribute set section.title.properties does not work for my 
minimal example:

my_doc.xml:
?xml version=1.0 encoding=utf-8?
article xmlns=http://docbook.org/ns/docbook; version=5.0 xml:lang=en
  titleSample article/title
  section
titleSample section/title
  /section
  paraThis is a very short article./para
/article

my_style.xls:
?xml version=1.0?
xsl:stylesheet 
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 xmlns:d=http://docbook.org/ns/docbook;
 exclude-result-prefixes=d
 version=1.0
xsl:import 
href=http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl/
xsl:attribute-set name=section.title.properties
  xsl:attribute name=text-aligncenter/xsl:attribute
/xsl:attribute-set
/xsl:stylesheet

Toolchain: xsltproc -o output.html my_style.xls my_doc.xml
I would expect the title of the section to be centered, but this is not the 
case.
Could you please point me towards additional diagnostics to run in order to pin 
down the problem?

Kind regards,
Julia

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



Re: [docbook] Customization of attribute set

2014-01-30 Thread Jirka Kosek
On 30.1.2014 21:47, julia.jacob...@arcor.de wrote:
 Toolchain: xsltproc -o output.html my_style.xls my_doc.xml
 I would expect the title of the section to be centered, but this is not the 
 case.
 Could you please point me towards additional diagnostics to run in order to 
 pin down the problem?

You are generating HTML, but changing attribute set that affects FO
(print) output. If you need to customize HTML output, then easiest is to
use CSS, see:

http://www.sagehill.net/docbookxsl/UsingCSS.html

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature


[docbook-apps] (non hot-linked) olink reference to book in PDF format

2014-01-30 Thread natk
Hi,

I'm trying to link between books (without hot-links).

The text that is generated for everything but the top-level books is fine.
It renders Refer to olink targetdoc=bookDocId targetptr=section/ as
Refer to Section x,y, Title in Book Title.

But when I olink to the book itself: Refer to olink targetdoc=bookDocId
targetptr=bookId there is no fo:inline element, it just renders the book
title: Refer to Book Title.

Is there some configuration or customisation that I can do to get this to
render as something like Refer to Document Book Title.

I'm using docbkx 2.0.15 which uses version 1.78.1 of the stylesheets.

Nat