Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XSLTransform setParameter

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Michael Kay <mike AT saxonica.com>
  • Cc: 'xom-interest' <xom-interest AT lists.ibiblio.org>, 'John Cowan' <jcowan AT reutershealth.com>
  • Subject: Re: [XOM-interest] XSLTransform setParameter
  • Date: Thu, 10 Feb 2005 17:35:50 -0500

Michael Kay wrote:

What would Saxon do if a SAXSource were passed as the value argument to Transformer's setParameter method?


Any JAXP Source object that can be supplied as the first argument of
transform() can also be supplied as the value argument of setParameter().


That's probably the way to go then. I can just convert the Node or Nodes object into XOMSource, which is a subclass of SAXSource, and you never need to think about XOM and I never need to think about Saxon.

The sticking point may be Xalan, though. I'm not sure it would be happy with that, but it might work. I may just have to write a test case and find out.

Would passing a SAXSource to setParameter also work for Saxon 6?

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page