xsl-list
[Top] [All Lists]

Excluding text fragments

2005-09-06 02:43:54
Hi,

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="*[(_at_)type='a'] | *[(_at_)type='b'] | ...">
        </xsl:template>

Instead of this the following would be possible:

        <xsl:template match="*[(_at_)type='a']">
        </xsl:template>

        <xsl:template match="*[(_at_)type='b']">
        </xsl:template>

        ...

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

Best Regards
Thomas.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>