Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Saxon implementation for XSLT

 
bharat bhasin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21140
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic