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
'org.apache.xmlbeans.impl.store.Xobj$DocumentXobj.

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

com.sun.org.apache.xml.internal.utils.URI$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?

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

e.

Current Thread