|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Variable iteration
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/
|
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
|

Cart








