![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - RE: [xsl] removing nodes according to attibute value [Thread Next] RE: [xsl] removing nodes according to attibute valueTo: Date: 11/1/2005 10:56:00 PM > Michael Kay: > > > Start with an identity template that copies everything: > > > <xsl:template match="*"> > > <xsl:copy><xsl:copy-of > > select="@*"/><xsl:apply-templates/></xsl:copy> > > </xsl:template> > > Or matching "node()" if you want to copy everything, isn't it? > > <xsl:template match="node()"> > <xsl:copy> > <xsl:copy-of select="@*"/> > <xsl:apply-templates/> > </xsl:copy> > </xsl:template> > Your version will copy comments and processing instructions, mine won't. Both of them copy text nodes: yours explicitly, mine by relying on the built-in template rules. So they're different, but I'm not sure the difference is relevant to the problem. Michael Kay http://www.saxonica.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
