xsl-list
[Top] [All Lists]

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

2007-10-17 17:04:21
<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(_at_)gmail(_dot_)com [mailto:ettinger(_at_)gmail(_dot_)com] On 
Behalf Of
Anthony Ettinger
Sent: Wednesday, October 17, 2007 6:56 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--