[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: dynamic document() template problem

Subject: Re: dynamic document() template problem
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 20 Jun 2005 22:00:53 +0200
Re:  dynamic document() template problem
Arian Hojat wrote:
select="document(@href)/Document/{@nodes}"/>

You seem to expect some sort of macro substitution: {@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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.