| 
 
Subject: Re: [xsl] Conditional extraction of data From: Bryan Rasmussen <bry@xxxxxxxxxx> Date: Mon, 8 Nov 2004 15:03:18 +0100  | 
-- Bryan Rasmussen > <xsl:copy><xsl:copy-of select="@*"/> > <xsl:apply-templates/> > </xsl:copy> I always prefer this way of copying, generally using a mode, on particular namespaces or all elements. so <xsl:template match="*" mode="copier"> <xsl:copy><xsl:copy-of select="@*"/> <xsl:apply-templates mode="copier"/> </xsl:copy> </xsl:template> <xsl:template match="tag2" mode="copier"> <i><xsl:apply-templates/></i> </xsl:template> <xsl:template math="anElement"> <xsl:apply-templates mode="copier"/> </xsl:template> so that everything gets copied with the copier mode, but tag2 doesn't and it escapes the mode. This is just a personal preference though.
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Conditional extraction of, Bryan Rasmussen | Thread | Re: [xsl] Conditional extraction of, David Carlisle | 
| Re: [xsl] Childnodes on separate li, Martijn Kint | Date | RE: [xsl] Conditional extraction of, Bradley, Peter | 
| Month |