Re: Splitting on XML Documents

2012-01-28 Thread Raul Kripalani
gt; red-herring. >>>>>>> >>>>>>> The xml processing instruction should only be necessary if you are >>>>>>> converting the output of the xpath to a String prior to the xslt >>>>> endpoint, >>>>>&

Re: Splitting on XML Documents

2012-01-27 Thread Chris Geer
is converted to a Source via camel's built-in type conversion. > >>>>> > >>>>> I just set up a quick unit test with a route very similar to yours > and > >>>>> everything worked as I expected. Granted this test was in an existing > >>>>> project using camel 2.7.3 (time to upgrade!). > >>>>> > >>>>> I suspect you're either running into a namespace problem[1] or your > >>>>> templates XPaths aren't expecting Parcel (from your example) as the > >> root > >>>>> element. > >>>>> > >>>>> [1] > >>>>> > >>> > http://camel.apache.org/xpath.html#XPath-Namespaceauditingtoaiddebugging > >>>>> > >>>>> Let us know more info (example XML and XSLT) if my suspicions are off > >>> base. > >>>>> > >>>>> HTH, > >>>>> Doug > >>>>> > >>>>> On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer > >>> wrote: > >>>>> > >>>>>> Sorry, 2.8.3. > >>>>>> > >>>>>> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat > >>>>>> wrote: > >>>>>> > >>>>>>> And what about the Camel version you use? > >>>>>>> > >>>>>>> Babak > >>>>>>> > >>>>>>> -- > >>>>>>> View this message in context: > >>>>>>> > >>>>>> > >>>>> > >>> > >> > http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html > >>>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. > >>>>>>> > >>>>>> > >>>>> > >>> > >>> > >> > >

Re: Splitting on XML Documents

2012-01-27 Thread Łukasz Dywicki
;>> project using camel 2.7.3 (time to upgrade!). >>>>> >>>>> I suspect you're either running into a namespace problem[1] or your >>>>> templates XPaths aren't expecting Parcel (from your example) as the >> root >>>>> element. >>>>> >>>>> [1] >>>>> >>> http://camel.apache.org/xpath.html#XPath-Namespaceauditingtoaiddebugging >>>>> >>>>> Let us know more info (example XML and XSLT) if my suspicions are off >>> base. >>>>> >>>>> HTH, >>>>> Doug >>>>> >>>>> On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer >>> wrote: >>>>> >>>>>> Sorry, 2.8.3. >>>>>> >>>>>> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat >>>>>> wrote: >>>>>> >>>>>>> And what about the Camel version you use? >>>>>>> >>>>>>> Babak >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> >>>>>> >>>>> >>> >> http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html >>>>>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>>>>> >>>>>> >>>>> >>> >>> >>

Re: Splitting on XML Documents

2012-01-26 Thread Chris Geer
aren't expecting Parcel (from your example) as the > root > > >> element. > > >> > > >> [1] > > >> > > http://camel.apache.org/xpath.html#XPath-Namespaceauditingtoaiddebugging > > >> > > >> Let us know more info (example XML and XSLT) if my suspicions are off > > base. > > >> > > >> HTH, > > >> Doug > > >> > > >> On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer > > wrote: > > >> > > >>> Sorry, 2.8.3. > > >>> > > >>> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat > > >>> wrote: > > >>> > > >>>> And what about the Camel version you use? > > >>>> > > >>>> Babak > > >>>> > > >>>> -- > > >>>> View this message in context: > > >>>> > > >>> > > >> > > > http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html > > >>>> Sent from the Camel - Users mailing list archive at Nabble.com. > > >>>> > > >>> > > >> > > > > >

Re: Splitting on XML Documents

2012-01-26 Thread Doug Douglass
my suspicions are off > base. > >> > >> HTH, > >> Doug > >> > >> On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer > wrote: > >> > >>> Sorry, 2.8.3. > >>> > >>> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat > >>> wrote: > >>> > >>>> And what about the Camel version you use? > >>>> > >>>> Babak > >>>> > >>>> -- > >>>> View this message in context: > >>>> > >>> > >> > http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html > >>>> Sent from the Camel - Users mailing list archive at Nabble.com. > >>>> > >>> > >> > >

Re: Splitting on XML Documents

2012-01-26 Thread Łukasz Dywicki
>> HTH, >> Doug >> >> On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer wrote: >> >>> Sorry, 2.8.3. >>> >>> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat >>> wrote: >>> >>>> And what about the Camel version you use? >>>> >>>> Babak >>>> >>>> -- >>>> View this message in context: >>>> >>> >> http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>> >>

Re: Splitting on XML Documents

2012-01-25 Thread Chris Geer
ons are off base. > > HTH, > Doug > > On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer wrote: > > > Sorry, 2.8.3. > > > > On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat > > wrote: > > > > > And what about the Camel version you use? > > > &g

Re: Splitting on XML Documents

2012-01-25 Thread Doug Douglass
; Babak > > > > -- > > View this message in context: > > > http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > >

Re: Splitting on XML Documents

2012-01-25 Thread Chris Geer
Sorry, 2.8.3. On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat wrote: > And what about the Camel version you use? > > Babak > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html > Sent from the Camel - Us

Re: Splitting on XML Documents

2012-01-25 Thread Babak Vahdat
And what about the Camel version you use? Babak -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431531.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Splitting on XML Documents

2012-01-25 Thread Chris Geer
ile to be "xml"? > > omit-xml-declaration="no" /> > > Actually the default value of the omit-xml-declaration attribute is already > "no" but try this if it could help. > > And what version of Camel do you use? > > Babak > > -- > View this

Re: Splitting on XML Documents

2012-01-25 Thread Babak Vahdat
http://camel.465427.n5.nabble.com/Splitting-on-XML-Documents-tp5431032p5431454.html Sent from the Camel - Users mailing list archive at Nabble.com.

Splitting on XML Documents

2012-01-25 Thread Chris Geer
I ran into an issue with a combination of using split and the XSLT component. I have a XML body that that has a header on it with multiple elements.* *When I run it through split, it works and I get multiple messages but the split docs don't have header. When I try and run that split doc (without