You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Pa...@lotus.com on 2000/07/18 18:36:27 UTC

Re: XSLT-how do I match on value rather than tag?


Tom, first off review section 12.2 of the spec.  xsl:key should do the
trick. You'll want to use something
like the following;  (untested)
   <xsl:key name="account" match="transaction" use="account_id"/>

   <xsl:template match="account">
     <xsl:for-each select="key('account', 'account_id')">
       process each transaction here
     </xsl:for-each>
   </xsl:template>

   Paul