For Apache Abdera (which uses Axiom), I've created Source and Result implementations that work with Axiom. See http://tinyurl.com/rkcby to see it in action. It would not take much to port the code over so that it works with nothing but Axiom.
- James Mohammad N Fakhar wrote: > Hi, i am trying to perform XSLT transformations on SOAP OM elements in > axis2 and am wondering what the best way is to accomplish. > I can this of two ways: > > 1) Use staxsource interface like so: > > OMStAXWrapper wrapper = new > OMStAXWrapper(someOMElement.getBuilder(), someOMElement); > Source source = new StAXSource(wrapper); > > xslttransformer.transform(source, someresult); > > 2) Convert om element to a string and then use a StringReader > > StringReader reader = new StringReader( > someOMElement.toString()); > xslttransformer.transform(new StreamSource(reader), > someresult); > > > Method 1) has a dependency on jaxp 1.4/jdk 6 which is in beta and I don't > want to have that dependency. > Is there any other obvious, easier way to transform axiom elements with > XSLT that you guys know of? > > thanks, > > > mohammad > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
