Subject: RE: [xsl] Keep previous attributes, while adding a new one From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Wed, 31 Mar 2004 22:00:09 +0200 |
> -----Original Message----- > From: Naomi Gronson [mailto:naomi_gronson@xxxxxxxxx] > > 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. > Yup! Try: <xsl:template match="programlisting[ancestor::para]"> <xsl:copy> <xsl:copy-of select="@*" /> <xsl:attribute name="format">bling</xsl:attribute> <xsl:apply-templates /> </xsl:copy> </xsl:template> Cheers, Andreas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Keep previous attributes, whi, Naomi Gronson | Thread | RE: [xsl] Keep previous attributes,, Josh Canfield |
RE: [xsl] Keep previous attributes,, Josh Canfield | Date | [xsl] XSL-List Guidelines - changed, Mulberry Technologie |
Month |