How about :
<xsl:template match="programlisting[ancestor::para]">
<programlisting format="bling">
<xsl:copy-of select="@*"/>
<xsl:apply-templates />
</programlisting>
</xsl:template>
-----Original Message-----
From: Naomi Gronson [mailto:naomi_gronson(_at_)yahoo(_dot_)com]
Sent: Wednesday, March 31, 2004 11:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Keep previous attributes, while adding a new one
Is there any way that I can retain the
<programlisting>'s attributes while adding the new
@format value. I could list them out manually, but we
are constantly adding new attributes and I don't want
to have to update the xsl everytime a new one is
added. Any ideas? Thanks.
<xsl:template match="programlisting[ancestor::para]">
<programlisting format="bling">
<xsl:apply-templates />
</programlisting>
</xsl:template>
-Naomi
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
--+------------------------------------------------------------------
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>
--+--