[xsl] intersection of different node types

Subject: [xsl] intersection of different node types
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Wed, 27 Apr 2005 10:28:20 -0600
Is it meaningful to take the intersection of a sequence of element nodes
and a sequence attribute nodes, like this:

<xsl:variable
  name="intersection"
  select="a/b intersect c/@d"/>

The intent is to match their string values, so would something like this
be better:

<xsl:variable
  name="intersection"
  select="a/b/text() intersect c/@d/text()"/>

Thanks!
-- 
Kevin Rodgers

Current Thread