[Home] [By Thread] [By Date] [Recent Entries]
Jakub,
Yes, this can be done. At 06:05 PM 10/17/01, you wrote: Yes, that should do it. Is this not working? If it's not, it might be the line (higher up) <xsl:value-of select="document(concat($dir, 'table', $tableno, '.xml'))/table/item[input=$v3code]/output/text()"/> which is somewhat brittle. The XPath itself looks good (although the final /text() step is unnecessary), but you need to be careful with the concat($dir, 'table', $tableno, '.xml') to make sure it resolves to a file name that will actually be found. It might need to be concat($dir, '/table', $tableno, '.xml') and $dir might need to be '/tables' not 'tables', etc. I would test it with a literal string before parameterizing this setting, to make sure the other parts of your stylesheet are working correctly. Then build the concat step by step -- to debug, you could ask for its value in your output, just to look at it. There are ways to improve the efficiency of these operations, but it looks to me like you've basically figured out how it should work. Good luck, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



