xsl-list
[Top] [All Lists]

RE: [xsl] document() function using variable

2007-05-14 03:32:07

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/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>