Subject: RE: document() function using variable
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 14 May 2007 11:31:51 +0100
|
> document('/folder/folder2/$nm.xml')/title doesn't work.
Despite the use of "$" to prefix a variable name, XSLT variables do not work
by textual substitution. A variable reference is an expression, which can
only be used in a place where you might use a function call (for example).
So, as others have indicated, you need to build the string using concat().
Michael Kay
http://www.saxonica.com/
|