[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Problems generating custom class attributes
Thank you very much Bob for your help. Pedro -----Mensaje original----- De: Bob Stayton [mailto:bobs@sagehill.net] Enviado el: viernes, 25 de enero de 2008 20:03 Para: Pedro Pastor; docbook-apps@lists.oasis-open.org Asunto: 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 bobs@sagehill.net ----- Original Message ----- From: "Pedro Pastor" <pps@dlsi.ua.es> To: <docbook-apps@lists.oasis-open.org> 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:davep@dpawson.co.uk] > Enviado el: viernes, 25 de enero de 2008 18:14 > Para: Pedro Pastor > CC: docbook-apps@lists.oasis-open.org > 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: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > 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/1244 - Release Date: 25/01/2008 19:44
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]