It probably wouldn't, but is something I'd rather not see in the source.
Its too bad <xsl:attribute-set> doesn't support xsl:if or xsl:choose.
On 10/19/07, Scott Trenda <Scott(_dot_)Trenda(_at_)oati(_dot_)net> wrote:
That was one of my caveats that I said at the very beginning. Only
<xsl:attribute> elements can be children of <xsl:attribute-set>, so you
can't wrap them in <xsl:if>.
Why would an empty class attribute invalidate your result document?
~ Scott
-----Original Message-----
From: ettinger(_at_)gmail(_dot_)com [mailto:ettinger(_at_)gmail(_dot_)com] On
Behalf Of
Anthony Ettinger
Sent: Friday, October 19, 2007 6:17 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] extend an xslt template defined elsewhere?
On 10/19/07, Scott Trenda <Scott(_dot_)Trenda(_at_)oati(_dot_)net> wrote:
If this IS the case, you can do this:
<xsl:import href="docbook.xsl"/>
<xsl:attribute-set name="glossdef">
<xsl:attribute name="class">
<xsl:value-of select="@role"/>
</xsl:attribute>
</xsl:attribute-set>
I still have an empty class attribute in my html output.
--
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>
--~--
--
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>
--~--