[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: For-each and keys()
On 7/31/06, Steve <subsume@xxxxxxxxx> wrote:
Hey group, Change this key to <xsl:key name="oldID" match="option" use="@oldID" /> <xsl:variable name="$Definitions" select="Document(Disabilities.xml)" /> <xsl:variable name="$Var" select="Document(Records.xml)" /> <xsl:template match="Record" mode="x"> <xsl:param name="type" /> <tr> <td> <xsl:value-of select="$type" /> </td> <td> <xsl:variable name="current" select="disabPrimary" /> <xsl:for-each select="$Definitions/disabilities"> <xsl:value-of select="count(key('oldID',$current))" /> </xsl:for-each> and then change this for-each to: <xsl:for-each select="$Definitions"> <xsl:value-of select="count(key('oldID',$current))" /> </xsl:for-each> You have a few other typo's to fix (if you code matches your example) but that should be it. cheers andrew
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|