Subject: RE: [xsl] How to apply templates to all child elements except a few From: cknell@xxxxxxxxxx Date: Tue, 17 Oct 2006 14:45:28 -0400 |
<xsl:template match="el1"> <xsl:apply-templates match="*[not(local-name() = 'CHILD4'] /> </xsl:template> -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: rfd ewrew <xmlquestions101@xxxxxxxxxxx> Sent: Tue, 17 Oct 2006 13:38:15 -0500 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] How to apply templates to all child elements except a few Hi: I was wondering if there was any way in xslt to APPLY TEMPLATES a few elements and exclude a few Suppose i have an xml with a root element as el1 <el1> <CHILD1></CHILD1> <CHILD2></CHILD2> <CHILD3></CHILD3> <CHILD4></CHILD4> </el1> I want to write something like apply templates to all elements except CHILD4. How do I do this? Can someone please guide me here. Thank you. _________________________________________________________________ Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to apply templates to, Michael Kay | Thread | RE: [xsl] How to apply templates to, G. Ken Holman |
RE: [xsl] Determining if an optiona, Michael Kay | Date | RE: [xsl] How to apply templates to, G. Ken Holman |
Month |