[xsl] Excluding text fragments

Subject: [xsl] Excluding text fragments
From: "Lensch, Thomas" <Lensch@xxxxxxxx>
Date: Tue, 6 Sep 2005 11:43:54 +0200

we have text in HTML as a part of our documents. Additionally we use
attributes to express several special semantics of the HTML elment.

Dependant on the value of such an attribute we want to exclude the text
fragment in the output.

So, i have the following xsl:

	<xsl:template match="*[@type='a'] | *[@type='b'] | ...">

Instead of this the following would be possible:

	<xsl:template match="*[@type='a']">

	<xsl:template match="*[@type='b']">


Which is the best (most efficient) way to exclude such text fragments?

Best Regards

Current Thread