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

Re: XML transformation based on parameters

Subject: Re: XML transformation based on parameters
From: Emiliano Pecis <emiliano.pecis@xxxxxxxxx>
Date: Thu, 16 Apr 2009 12:18:40 +0200
Re:  XML transformation based on parameters
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

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.