[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: extend an xslt template defined elsewhere?

Subject: Re: extend an xslt template defined elsewhere?
From: "Anthony Ettinger" <anthony@xxxxxxxxx>
Date: Fri, 19 Oct 2007 10:33:33 -0700
Re:  extend an xslt template defined elsewhere?
On 10/17/07, Scott Trenda <Scott.Trenda@xxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.