[Home] [By Thread] [By Date] [Recent Entries]
Hello Guy,
I can't see an error in your code, maybe somebody else? Did you exactly use the code below? Line 12 is the key() - no error with parantheses, commas or apostrophes? What it does: <xsl:key/> creates one index for each input XML. With key() you can easily access these indexed elements, here your <a/>s. With <xsl:for-each select="document($previous)"> you do not work through the whole tree, you only switch the context to the other file, because you want to have the indexed <a/>s from there and not from your current file. With "document($previous)" you only access the root node '/', so there is only one iteration. For multiple iterations you can write "document($previous)//a", but as you said it, it's completely useless when using keys. Regards, Joerg Guy McArthur wrote: I thought I understood, but I get an "unknown error in XPath" on line 12. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



