[Home] [By Thread] [By Date] [Recent Entries]
fadi,
If you don't care about the order of test, test="@requiredknowledge=preceding::*[name()=concat('chunk_name',$n,'_knowledge')]"> Could be something like: test="@requiredknowledge=preceding::*[substring(local-name(), 1, 10) = 'chunk_name' and ...]"> If you want to test for a specific order of $n, you could use a loop to pass in various values of n. How you generate that loop of numbers should be an FAQ. Essentially, select arbitrary nodes from XML (or current XSL) doc, and use position(). <xsl:for-each select="/foo/bar[position() <= 3]"> // use a better path <xsl:variable name="n" select=" position of . "/> ... </ Regards, --A From: fadi qutaishat <fadi_taher2000@xxxxxxxxx> _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
|

Cart



