[Home] [By Thread] [By Date] [Recent Entries]
Schneeman, Brent wrote:
Me again. As I was moving my lessons learned over to the real application, I noticed that I need a bit more flexibility...
Try <xsl:apply-templates select="*[not(self::RF or self::RK or self::HR or self::Ext)]"/> If this gets too messy, declare the excluded (or included) elements in another form. One possibility is to declare them in the stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:data="uri:my.data" exclude-result-prefixes="data"/> <data:excludes> <exclude name="RF"/> <exclude name="RK"/> <exclude name="HR"/> <exclude name="Ext"/> </data:excludes> <xsl:variable name="excludes"
select="document('')/xsl:stylesheet/data:excludes"/><xsl:template .... ... <xsl:apply-templates select=*[not(name()=$excludes/exclude/@name)]"/> Beware: untested. J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



