Re: [docbook-apps] Problems generating custom class attributes

From
Bob Stayton <>
Date
2008-01-25T19:03:24+00:00
ID
B4DEA5D684F94D9797580538AAB4F047@sheeta
Thread
Re: [docbook-apps] Problems generating custom class attributes
The "class.value" mode works when the element in question calls the 
"class.attribute" mode when it is forming its HTML output.  Unfortunately, 
formalpara/title does not.  Instead, it hardcodes <b>.  So you would need to 
customize the template in html/block.xsl that starts with:

<xsl:template match="formalpara/title|formalpara/info/title">

to output a <span> instead, and add the mode="class.attribute" call to the 
span.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Pedro Pastor" <>
To: <>
Sent: Friday, January 25, 2008 9:47 AM
Subject: RE: [docbook-apps] Problems generating custom class attributes


>
> Sorry Dave, I thought getting the "DocBOkk XSl" book was a fundamental
> requirement for joining the list ;-). </joke>
>
> <serious>
> Sorry, I should've made reference to the appropriate section of the HTML
> version:
>
> http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues
>
>
> Here you are the template I have included in my customization layer. I've
> tried the same template for different docbook elements (<formalpara>,
> <title>, ...) without any success:
>
>      <xsl:template match="formalpara/title" mode="class.value">
> <xsl:value-of select="'fp-title'"/>
> </xsl:template>
>
> Best regards
> Pedro
>
> -----Mensaje original-----
> De: Dave Pawson [mailto:]
> Enviado el: viernes, 25 de enero de 2008 18:14
> Para: Pedro Pastor
> CC: 
> Asunto: Re: [docbook-apps] Problems generating custom class attributes
>
> Pedro Pastor wrote:
>
>> In my customization layer I've inserted an exact copy of the template
>> presented in the book.
>>
>> Could anybody suggest what am I doing wrong?
>
>
> We don't all have a copy of 'page xxx'.
> Would you paste your customization here please?
>
>
>
>
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.11/1242 - Release Date: 
> 24/01/2008
> 20:32
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.11/1242 - Release Date: 
> 24/01/2008
> 20:32
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>