Re: git commit: CAMEL-7130 XsltBuilder uses the StaxSource by default

2014-01-23 Thread Willem Jiang
Yeah, this StaxSource.java is really helpful. My original thought is setup SAXParserFactory to create a security safe XMLReader and then create SAXSource from it.  With the help of StaxSource, it saves me lots of time ;) -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://w

Re: git commit: CAMEL-7130 XsltBuilder uses the StaxSource by default

2014-01-22 Thread Daniel Kulp
On Jan 22, 2014, at 9:55 PM, Willem Jiang wrote: > Hi Dan, > > You are right, I did some test (by running the example inside Karaf) and > confirmed Xalan 2.7.1 doesn’t support StaxSource. I will keep digging the > code to find a better solution for it. You may want to try grabbing the StaxSo

Re: git commit: CAMEL-7130 XsltBuilder uses the StaxSource by default

2014-01-22 Thread Willem Jiang
Hi Dan, You are right, I did some test (by running the example inside Karaf) and confirmed Xalan 2.7.1 doesn’t support StaxSource. I will keep digging the code to find a better solution for it. Regards, -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogsp

Re: git commit: CAMEL-7130 XsltBuilder uses the StaxSource by default

2014-01-22 Thread Daniel Kulp
Willem, Can you try these changes with Xalan 2.7.1 on the class path? Possibly in OSGi with the Xalan 2.7.1 bundle? I don’t think Xalan actually supports StaxSource. I believe the in-jdk transformer does, but Xalan doesn’t.It would be good to double check and then see if we can detect