[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: customizing XSL titlepages
Hope you don't mind, but I changed the Subject line to better reflect the current question. I'm just learning the titlepage customization myself, so don't consider this an authoritative answer. The titlepage elements are processed in various modes, so that might be why your new template is being missed. I was able to get <holder> wrapped in <P> with these templates in a customization layer: <xsl:template match="copyright" mode="book.titlepage.recto.mode" > <xsl:apply-templates mode="book.titlepage.recto.mode"/> </xsl:template> <xsl:template match="holder" mode="book.titlepage.recto.mode" > <P> <xsl:apply-templates/> </P> </xsl:template> I don't think you need to include the <year/> and <holder/> elements in your titlepage.templates.xml spec file, because templates are applied to the children of copyright anyway. I just needed to specify the templates in the right mode. The one for copyright is just to pass the mode down to the holder template, since modes are not automatically propagated to children. Hope this is something that helps. bobs Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 Caldera International, Inc. fax: (831) 429-1887 email: bobs@caldera.com > From: Dave Pawson <daveP@dpawson.freeserve.co.uk> > > One more if I may. > Defining titlepages, e.g. for 'holder' I want a <p> element. > > have > <t:titlepage element="book" wrapper="div" class="titlepage"> > <t:titlepage-content side="recto"> > <title/> > <subtitle/> > <author/> > <contrib/> > <edition/> > <copyright> > <year/> > <holder/> > </copyright> > <legalnotice/> > <publisher/> > <pubdate/> > <dedication/> > <abstract/> > </t:titlepage-content> > > <t:titlepage-content side="verso"> > </t:titlepage-content> > > <t:titlepage-separator> > <hr/> > </t:titlepage-separator> > > <t:titlepage-before side="recto"> > </t:titlepage-before> > > <t:titlepage-before side="verso"> > </t:titlepage-before> > </t:titlepage> > > and I'm defining a template for holder. > Its being overridden somewhere, > Is the format of the xml file right, with nesting? > Any clues please? > > Regards DaveP > > > > > > ---------------------------------------------------------------- > To subscribe or unsubscribe from this elist use the subscription > manager: <http://lists.oasis-open.org/ob/adm.pl>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC