Next in thread → Next in month →

Re: [docbook-apps] Chapter/info/title Behaviour Different in HTML Than in fo

From
Bob Stayton <>
Date
2010-01-11T03:19:21+00:00
ID
0ab701ca926c$d7f79250$6400a8c0@pazu
Thread
Re: [docbook-apps] Chapter/info/title Behaviour Different in HTML Than in fo
Hi John,
That's a bug.  I tracked it down and fixed in the SVN source for the next 
release.  In the meantime, you could use this template from 
html/component.xsl  in your customization layer:

<xsl:template 
match="d:chapter/d:title|d:chapter/d:chapterinfo/d:title|d:chapter/d:info/d:title"
    mode="titlepage.mode" priority="2">
    <xsl:call-template name="component.title">
        <xsl:with-param name="node" select="ancestor::d:chapter[1]"/>
    </xsl:call-template>
</xsl:template>

The original lacked the match on d:chapter/d:info/d:title.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "John Green" <>
To: <>
Sent: Sunday, January 10, 2010 5:53 PM
Subject: [docbook-apps] Chapter/info/title Behaviour Different in HTML Than 
in fo


> Hello,
>
> I'm having trouble getting the chapter label (i.e., "Chapter 1.") 
> prepended to the chapter title when I put the chapter title inside an info 
> element. It's fine for fo output, but all html-based output formats create 
> the chapter title without the label.
>
> In other words, I get this:
>
> <chapter><info><title> in fo produces "Chapter 1. The Beginning", but in 
> html produces "The Beginning"
>
> <chapter><title> produces "Chapter 1. The Beginning" in all output formats
>
> This is using stock docbook 1.75.2 with namespaces, no customization.
>
> Any explanations of why the behaviour is different when I use the <info> 
> element and how to change it would be appreciated.
>
> Thanks
> John
>
> -- 
> John Green
>
> "It's no wonder that truth is stranger than fiction. Fiction has to make 
> sense." - Mark Twain
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →