[xsl] XPath equivalence question

Subject: [xsl] XPath equivalence question
From: Graydon <graydon@xxxxxxxxx>
Date: Wed, 30 Nov 2011 18:48:33 -0500
Does 

<xsl:template match="/A//B">

match exactly the same thing as

<xsl:template match="B[/A]">?

My presumption is that the second form is preferable on efficiency
grounds -- on simple table lookup versus whatever tree-structure the
descendant axis search produces -- but I don't actually know.

-- Graydon

Current Thread