xsl-list
[Top] [All Lists]

Re: dynamic document() template problem

2005-06-20 13:00:53
Arian Hojat wrote:
select="document(@href)/Document/{(_at_)nodes}"/>

You seem to expect some sort of macro substitution:
 {(_at_)nodes} -> fb/section1/*
and the reevaluate the expression. XSLT/XPath doesn't work this way.

It seems you have to use Saxon's extension function for evaluating
strings as XPath expression, roughly like
 select="saxon:evaluate(concat('document(@href)/Document/',@nodes))"
Note string concatenation.
Please check your Saxon docs for the exact name of the extension
function and and the namespace declaration you need.

J.Pietschmann


--~------------------------------------------------------------------
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>