RE: [xsl] extend an xslt template defined elsewhere?

Subject: RE: [xsl] extend an xslt template defined elsewhere?
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Wed, 17 Oct 2007 19:03:53 -0500
<xsl:import href="docbook.xsl"/>
<xsl:template match="orderedlist">
  <xsl:if test="@role = 'html class real code goes here'">
    <xsl:apply-imports/>
  </xsl:if>
</xsl:template>

~ Scott


-----Original Message-----
From: ettinger@xxxxxxxxx [mailto:ettinger@xxxxxxxxx] On Behalf Of
Anthony Ettinger
Sent: Wednesday, October 17, 2007 6:56 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] extend an xslt template defined elsewhere?

I have a 'customization layer' as described in Docbook context for my
XSLT stylesheets....

I'd like to know if there is a way I can extend an existing
xslt:template definition (inheriting all its properties, plus adding
my own).

Basically there is a rather large template defined for orderedlist in
docbook xhtml xslt files, and I'd like to add a simple " if @role =>
convert to @class in html" (pseudo code) without having to copy the
entire template definition.



--
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");

http://chovy.dyndns.org/resume/
http://utuxia.com/consulting

Current Thread