|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document() function using variable
Vaduvoiu Tiberiu wrote:
Simple question to the point: '/folder/folder2/$nm.xml' is a string containing the '$' dollar sign (and hence, searches for a file with the name '$nm.xml', which is apparently not what you want). Luckily, it is not interpreted as a variable reference! How would the compiler know whether your variable is $nm, $nm.xml or even something else? You probably want to use concat, or something similar, which concatenates strings): document(concat('/folder/folder2/', $nm, '.xml'))/title Btw, some help for google: use the term "xslt how to concatenate strings" (without quotes). The first hits explain what you need to know. Cheers, -- Abel Braaksma
|
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
|






