It:
<xsl:variable name="matches" select="$set1[starts-with(., $set2)]"/>
$matches node -set, node $set1, node $set2. , , ?
Edit:
, . .
starts-with , . , .
node -set , node -set, node . , $set2 ; node - , $set1, node $set2.
, ( ) :
<xsl:variable name="hits" select="$set1[. = $set2]"/>
node -sets, .
. : " node $set1, node $set2, ...", , XPath . ? , , - :
<xsl:variable name="matches" select="$set1[$set2[starts-with(?, .)]]"/>
, ?, node, . ( - .)
, , node:
<xsl:variable name="matches">
<xsl:for-each select="$set1">
<xsl:if test="$set2[starts-with(current(), .)]">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
, , node -set. (, msxsl:node-set) RTF node -set, XPath.