xsl-list
[Top] [All Lists]

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

2007-10-19 10:34:05
On 10/17/07, Scott Trenda <Scott(_dot_)Trenda(_at_)oati(_dot_)net> wrote:
<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




I'm seeing a problem with my rule:

<xsl:template match="glossentry/glossdef">
    <dd>
        <xsl:if test="@role != ''">
            <xsl:attribute name="class">
                <xsl:value-of select="@role"/>
            </xsl:attribute>
        </xsl:if>
        <xsl:apply-imports />
    </dd>
</xsl:template>



The apply-imports is creating another level of <dd> nesting in the
output...is there a way to avoid this? I still need to process the
exisiting docbook glossdef template though.




-- 
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>
--~--