xsl-list
[Top] [All Lists]

union vs. "or" vs. contains?

2004-10-18 16:02:55
I realize performance questions are always somewhat context-specific, but I wonder if there are still general rules about which of these is preferable?

<xsl:template match="db:section[contains($citation-class, 'note')]/db:info">
  <xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="db:section[$citation-class='note-bib']/db:info |
                db:section[$citation-class='note-nobib']/db:info">
  <xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="db:section[$citation-class='note-bib' or 'note-nobib']/db:info">
  <xsl:copy-of select="."/>
</xsl:template>

Bruce



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