“For” Expressions

XPath 2.0 adds a “for” expression:

for $bib in blist/bibl
   where contains($bib/orgname, 'W3C')
   return $bib

N.B. This is in XPath. For example, it might appear in a select attribute.

XSLT 2.0 retains the xsl:for-each instruction.