Subject: RE: Keep previous attributes, while adding a new one
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
Date: Wed, 31 Mar 2004 11:52:18 -0800
|
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@xxxxxxxxx]
Sent: Wednesday, March 31, 2004 11:42 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: 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
|