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] 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
bobs@sagehill.net


----- Original Message ----- 
From: "John Green" <jmg7439@rogers.com>
To: <docbook-apps@lists.oasis-open.org>
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: 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]