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
 

Reply via email to