File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Using Saxon implementation for XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using Saxon implementation for XSLT " Watch "Using Saxon implementation for XSLT " New topic
Author

Using Saxon implementation for XSLT

bharat bhasin
Greenhorn

Joined: Jul 19, 2009
Posts: 19
How can I use string parameters in the saxon method

net.sf.saxon.s9api.XsltTransformer transformer.setParameter(Qname name ,XdmValue value).

instead of the Qname and XdmValue objects?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

In Java you can't use parameters of any type other than the type required by the method. This is just a basic rule of Java.

So you're going to have to create a QName object for the first parameter and an XdmValue object for the second parameter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Saxon implementation for XSLT
 
Similar Threads
Is XPath 2.0 part of the Java SDK
How to go for XPATH 2.0
Instant Saxon (IE and text file)
open source XQJ
XML-Based, Document Style JAX-WS Web Service Example giving error