Subject: RE: [xsl] Changing an attribute wherever it may occur From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 27 Sep 2001 16:17:12 -0400 |
<xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template>
<xsl:template match="@Action"> <xsl:attribute name="Action">M</xsl:attribute> </xsl:template>
to do it for the <A> elements that met a certain criteria, such as @Id='X', as opposed to the whole document?
<xsl:template match="A[@Id='X']//@Action"> <xsl:attribute name="Action">M</xsl:attribute> </xsl:template>
<xsl:template match="A[@Id='X']//@Action"> <xsl:copy>M</xsl:copy> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Changing an attribute whe, Chris Bayes | Thread | RE: [xsl] Changing an attribute whe, Michael Kay |
RE: [xsl] Position X Sort-> Please , Chris Bayes | Date | Re: [xsl] Position X Sort-> Please , Wendell Piez |
Month |