AbstractSAXSource incompatible changes [was: DOMStreamer incompatible changes]

2003-03-18 Thread Unico Hommes
> On Tue, 2003-03-18 at 16:25, Unico Hommes wrote: > [...] > > For > > instance the method setContentHandler seems to have been removed > > completely. > > re-added in CVS (both 2.0 and 2.1). Thanks, that does help. > Thanks for reporting, and don't hesitate to report any > further problems >

Re: DOMStreamer incompatible changes

2003-03-18 Thread Bruno Dumon
On Tue, 2003-03-18 at 16:25, Unico Hommes wrote: [...] > For > instance the method setContentHandler seems to have been removed > completely. re-added in CVS (both 2.0 and 2.1). Thanks for reporting, and don't hesitate to report any further problems you may have. -- Bruno Dumon

DOMStreamer incompatible changes

2003-03-18 Thread Unico Hommes
Hi, There have been a lot of changes made to DOMStreamer lately and I'm grieved to see without consideration of backwards compatibity. For instance the method setContentHandler seems to have been removed completely. I use this class quite heavily throughout my code and I'm getting e

Re: Saxon broken -- DOMStreamer question

2003-03-16 Thread Jeff Turner
te > start/endPefixMapping events, and no xmlns attributes. So it seems only > logical that the DOMStreamer also shouldn't generate xmlns attributes. I agree; that is the default SAX2 behaviour. DOMStreamer is currently emulating namespace-prefixes=true, and as the JaxpPa

Re: Saxon broken -- DOMStreamer question

2003-03-16 Thread Bruno Dumon
tributes is in fact something that every SAX-generating component in the pipeline should be aware of and honor. And AFAIK most/all transformers only generate start/endPefixMapping events, and no xmlns attributes. So it seems only logical that the DOMStreamer also shouldn't generate xmlns

Saxon broken -- DOMStreamer question

2003-03-15 Thread Jeff Turner
Hi, Currently, DOMStreamer.setNormalizeNamespaces() is hardcoded to true. This fixes the xmlns problem with Xalan, but breaks it with Saxon. Shouldn't we be doing the AbstractTextSerializer.needsNamespacesAttributes() check in DOMSerializer too? --Jeff

Re: DOMStreamer DOM 1 support?

2003-03-11 Thread Michael Wechner
NamespaceNormalizingDOMStreamer doesn't support DOM 1 nodes, which means that any code using, say, 'setAttribute' instead of 'setAttributeNS' causes cryptic errors like: ... The DOMStreamer should now also work with elements or attributes created with crea

Re: DOMStreamer DOM 1 support?

2003-03-11 Thread Jeff Turner
r Bruno.. > > > > > > > > The NamespaceNormalizingDOMStreamer doesn't support DOM 1 nodes, which > > > > means that any code using, say, 'setAttribute' instead of > > > > 'setAttributeNS' causes cryptic errors like: ... > The

Re: DOMStreamer DOM 1 support?

2003-03-11 Thread Bruno Dumon
alName also when using setAttribute (or createElement for > > that matter). > > > > Since this is not the case, I'll need to improve the DOMStreamer. I'll > > look into it and let you know more later on. > > Thanks. I've put a sample subsitemap that DOMi

Re: DOMStreamer DOM 1 support?

2003-03-11 Thread Jeff Turner
, say, 'setAttribute' instead of > > 'setAttributeNS' causes cryptic errors like: > > Ah, didn't know that. I thought that it would automatically assign a > value to localName also when using setAttribute (or createElement for > that matter). > > Since this i

Re: DOMStreamer DOM 1 support?

2003-03-10 Thread Bruno Dumon
s like: Ah, didn't know that. I thought that it would automatically assign a value to localName also when using setAttribute (or createElement for that matter). Since this is not the case, I'll need to improve the DOMStreamer. I'll look into it and let you know more later on. >

DOMStreamer DOM 1 support?

2003-03-10 Thread Jeff Turner
Probably a question for Bruno.. The NamespaceNormalizingDOMStreamer doesn't support DOM 1 nodes, which means that any code using, say, 'setAttribute' instead of 'setAttributeNS' causes cryptic errors like: Failed to execute pipeline.: org.xml.sax.SAXException: [NamespaceNormalizingDOMStreamer

Re: Strange exception in DOMStreamer

2003-03-06 Thread Upayavira
> I got a strange exception from the DOMStreamer. > I have got a similar error. I get this when using the HTMLGenerator. Upayavira == Exception in thread "main" java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethod

Strange exception in DOMStreamer

2003-03-06 Thread Stephan Michels
Hi, I got a strange exception from the DOMStreamer. 10:36:16.501 WARN!! Error for /cocoon/samples/slide/login java.lang.NoSuchMethodError at org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:218) at

RE: New DOMStreamer not backwards compatible

2003-03-06 Thread Carsten Ziegeler
Unico Hommes wrote: > > > > I think that DOMStreamer should only output such a declaration if > > > the Node to stream is of type Document. Reasonable? > > > > > Yes, this is right, so actually you found a bug. Can you enter this > > as a bug

RE: New DOMStreamer not backwards compatible

2003-03-05 Thread Unico Hommes
> > I think that DOMStreamer should only output such a declaration if > > the Node to stream is of type Document. Reasonable? > > > Yes, this is right, so actually you found a bug. Can you enter this > as a bug in bugzilla, please. Done. > > Anyway,

RE: New DOMStreamer not backwards compatible

2003-03-05 Thread Carsten Ziegeler
Unico Hommes wrote: > > The latest changes to DOMStreamer broke my code in several places > due to the fact that the NamespaceNormalizingDOMStreamer is > outputting xml declarations during each stream( Node ) call, > resulting in xml declarations all over the place in my out

New DOMStreamer not backwards compatible

2003-03-05 Thread Unico Hommes
Hi, The latest changes to DOMStreamer broke my code in several places due to the fact that the NamespaceNormalizingDOMStreamer is outputting xml declarations during each stream( Node ) call, resulting in xml declarations all over the place in my output. I think that DOMStreamer should only

Re: DOMStreamer enableLogging missing

2002-11-24 Thread Mircea Toma
On Saturday 23 November 2002 12:15, Bernhard Huber wrote: > hi, > as I have experienced all DOMStreamer usages > do not invoke enableLogging() for the DOMStreamer object created, > > The list of files concerened: > SourceWritingTransformer.java > XMLFormTransformer.j

Re: DOMStreamer enableLogging missing

2002-11-23 Thread Vadim Gritsenko
Bernhard Huber wrote: hi, as I have experienced all DOMStreamer usages do not invoke enableLogging() for the DOMStreamer object created, The list of files concerened: SourceWritingTransformer.java XMLFormTransformer.java SourceUtil.java XIncludeTransformer.java

DOMStreamer enableLogging missing

2002-11-23 Thread Bernhard Huber
hi, as I have experienced all DOMStreamer usages do not invoke enableLogging() for the DOMStreamer object created, The list of files concerened: SourceWritingTransformer.java XMLFormTransformer.java SourceUtil.java XIncludeTransformer.java XMLUtils.java

Re: DOMStreamer

2001-07-24 Thread Ovidiu Predescu
; wrote: > I have a DocumentFragment supposebly looking > like this: > > > > > > Now I try to create SAX events from it: > > DOMStreamer streamer = new DOMStreamer(handler); > streamer.stream(fragment); > > Unfortunately this is also fireing the fo

Re: DOMStreamer

2001-07-24 Thread Sylvain Wallez
XMLPipe in the CVS. I also patched DOMStreamer so that it automatically uses EmbeddedXMLPipe if the streamed node isn't a Document, so it's not necessary to pipe it's output to EmbeddedXMLPipe. This is in fact a regression in DOMStreamer since it was rewritten using JAXP, and that

Re: DOMStreamer

2001-07-24 Thread Davanum Srinivas
Ovidiu, What does this file have? What format is it in? Thanks, dims --- Ovidiu Predescu <[EMAIL PROTECTED]> wrote: > ATTACHMENT part 1 application/octet-stream > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additiona

RE: DOMStreamer

2001-07-23 Thread Torsten Curdt
> > I have a DocumentFragment supposebly looking > > like this: > > > > > > > > > > > > Now I try to create SAX events from it: > > > > DOMStreamer streamer = new DOMStreamer(handler); > > streamer.stream(fragment); &g

Re: DOMStreamer

2001-07-23 Thread Ovidiu Predescu
Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]

DOMStreamer

2001-07-23 Thread Torsten Curdt
I have a DocumentFragment supposebly looking like this: Now I try to create SAX events from it: DOMStreamer streamer = new DOMStreamer(handler); streamer.stream(fragment); Unfortunately this is also fireing the following events: [setDocumentLocator] [startDocument] [endDocument