Re: SV: SV: SV: SV: SAX tree?

2001-11-14 Thread David Rosenstrauch
At 03:33 PM 11/14/01 -0800, you wrote: >Fair enough, I find it quite odd too. Don't know if it's a bug, but if it >isn't, C2 surly acts strange by my standards :) > >/Soren Well then I'm stumped too! :-) But as long as you got SOMEthing to work that's all that matters. DR

SV: SV: SV: SV: SAX tree?

2001-11-14 Thread Soren Neigaard
-Oprindelig meddelelse- Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sendt: 14. november 2001 06:05 Til: [EMAIL PROTECTED] Emne: Re: SV: SV: SV: SAX tree? > At 08:35 AM 11/14/01 -0800, you wrote: > If I return a stream/string of ACSII XML data to C2, it works just fine on

Re: SV: SV: SV: SAX tree?

2001-11-14 Thread David Rosenstrauch
At 08:35 AM 11/14/01 -0800, you wrote: >If I return a stream/string of ACSII XML data to C2, it works just fine on >the first URL I call (no matter how many times i call it), but if I call >another URL which doest EXCATLY the same as the first (same logicsheet, same >namespace) it dosn't work. BUT

SV: SV: SV: SAX tree?

2001-11-13 Thread Soren Neigaard
-Oprindelig meddelelse- Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sendt: 13. november 2001 07:34 Til: [EMAIL PROTECTED] Emne: Re: SV: SV: SAX tree? I'm cutting away in you mail, but I agree with the rest so it's less interesting :) > So the options were either to

Re: SV: SV: SAX tree?

2001-11-13 Thread David Rosenstrauch
At 04:12 PM 11/13/01 -0800, you wrote: > > 2) Pass in a DOM object you've already created some other way. This way >you don't need > > to invoke the parser. One suggestion they give for doing this is to >create a > > XMLFragment, which can be converted to both DOM and SAX easily. > >But how? I t

SV: SV: SAX tree?

2001-11-13 Thread Søren Neigaard
-Oprindelig meddelelse- Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sendt: 13. november 2001 06:14 Til: [EMAIL PROTECTED] Emne: Re: SV: SAX tree? >> (http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml) >> it seemed (to me anyway) that I could g

Re: SV: SAX tree?

2001-11-13 Thread David Rosenstrauch
At 02:12 PM 11/13/01 -0800, you wrote: >Well... Hmm... But..?? > >Ok - In the previous supplied link >(http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml) >it seemed (to me anyway) that I could give C2 a DOM/SAX source directly, and >C2 then could work on this. Can I, and how

RE: SAX tree?

2001-11-13 Thread Karl Øie
i see what you are getting at and i guess you'll need to wrap your SAXSource into a XMLFragment first... but i don't really know because i cannot find anywhere xsp documentation except the little pieces of documentation for cocoon1.8. This is pseudo code, i havent even tried to run it but it

Re: SV: SAX tree?

2001-11-13 Thread David Rosenstrauch
At 01:31 PM 11/13/01 -0800, you wrote: >Oh - Thanks for clearing this out for me :) > >Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put >this in my logicsheet like this: > >-- > > > SAXSource msg = Controller.execute(); >

SV: SAX tree?

2001-11-13 Thread Søren Neigaard
Mvh/Best regards Søren -Oprindelig meddelelse- Fra: Karl Øie [mailto:[EMAIL PROTECTED]] Sendt: 13. november 2001 04:57 Til: [EMAIL PROTECTED] Emne: RE: SAX tree? obviously I cant type right, the SAXSource msg is supposed to be used in the transform command, not the undeclared mystic s

RE: SAX tree?

2001-11-13 Thread Karl Øie
To: [EMAIL PROTECTED] Subject: RE: SAX tree? yes, the SAX source is useless without any handler, what you are looking for is perhaps to serialize this to xml. i havent yet looked at xsp actually, but here is one approach that might create xml from a SAX source inside a xsp page: try

RE: SAX tree?

2001-11-13 Thread Karl Øie
-Original Message- From: Søren Neigaard [mailto:[EMAIL PROTECTED]] Sent: 13. november 2001 22:32 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: SV: SAX tree? Oh - Thanks for clearing this out for me :) Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put

SV: SAX tree?

2001-11-13 Thread Søren Neigaard
PROTECTED] Emne: RE: SAX tree? there is no such thing as a SAX tree, if it is a tree it is a DOM tree. SAX is an interface that generates event streams, like when you parse a xml file with sax the sax parser would fire events like startDocument(), startElement(), endElement(), endDocument() in a suc

RE: SAX tree?

2001-11-13 Thread Karl Øie
there is no such thing as a SAX tree, if it is a tree it is a DOM tree. SAX is an interface that generates event streams, like when you parse a xml file with sax the sax parser would fire events like startDocument(), startElement(), endElement(), endDocument() in a succession of function calls

SAX tree?

2001-11-13 Thread Søren Neigaard
This subject is a little offtopic :) Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found the following link that talks about this: http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml Now I'm not a XML shark, so I could need some help doing th