Re: [xsl] XML transformation based on parameters

Subject: Re: [xsl] XML transformation based on parameters
From: Emiliano Pecis <emiliano.pecis@xxxxxxxxx>
Date: Thu, 16 Apr 2009 12:18:40 +0200
2009/4/16 David Carlisle <davidc@xxxxxxxxx>:
>> select="xalan:nodeset($params)/
> why do you need an extension function here? xx:node-set() is for

Hi David, I was searching for a trick to accept an external parameter
when an XML is passed.
Using: $params/query-params/param/@name
it fails with the same exception: java.lang.RuntimeException: Invalid
conversion from node-set' a

Instead, using:
document($params)/query-params/param/@name" (as you suggestes)
it returns a different error:$MalformedURIException: Path
contains invalid character <

I think that "<" is the begin of xml file I passed. So, my question
is: is there a way to encode this xml file in some way
and see it as a normal xpath variable?

yes, I will write to a xalan ml as well! Thanks


Current Thread