Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Ralph Goers
Stefan Pietschmann wrote:
Hmm, i'm not really into this, so it is as simple as exchanging the
XMLSerializer with the 2.1.5 version before building, or are there other
dependencies?
Cheers,
Stefan
 

I went and did diffs on XMLSerializer and its base classes. Only 
AbstractTextSerializer changed between 2.1.5 and 2.1.6 and that was a 
change to its cache key, so I don't see how that could change the output.

Ralph


Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Torsten Curdt
Stefan Pietschmann wrote:
Hmm, i'm not really into this, so it is as simple as exchanging the
XMLSerializer with the 2.1.5 version before building, or are there other
dependencies?
We have two different XML serializers. IIRC we changed
the the default implementation recently. All you need
to do is to use the old implementation. (change it in
the cocoon.xconf) Although it has other issues.
(Why the heck are you using tabs anyway?)
cheers
--
Torsten


Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread roy huang
I have the same problem.Using tab is to make xml file look nice.
- Original Message - 
From: Torsten Curdt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 06, 2004 5:54 PM
Subject: Re: AW: XMLSerializer replaces tabs with #9;


 Stefan Pietschmann wrote:
  Hmm, i'm not really into this, so it is as simple as exchanging the
  XMLSerializer with the 2.1.5 version before building, or are there other
  dependencies?
 
 We have two different XML serializers. IIRC we changed
 the the default implementation recently. All you need
 to do is to use the old implementation. (change it in
 the cocoon.xconf) Although it has other issues.
 (Why the heck are you using tabs anyway?)
 
 cheers
 --
 Torsten
 

Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Torsten Curdt
I have the same problem.Using tab is to make xml file look nice.
Well ...no problem using spaces for that over here ;-)
...even makes them look nice in every editor
cheers
--
Torsten


Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Stefano Mazzocchi
Torsten Curdt wrote:
Stefan Pietschmann wrote:
Hmm, i'm not really into this, so it is as simple as exchanging the
XMLSerializer with the 2.1.5 version before building, or are there other
dependencies?

We have two different XML serializers. IIRC we changed
the the default implementation recently. All you need
to do is to use the old implementation. (change it in
the cocoon.xconf) Although it has other issues.
(Why the heck are you using tabs anyway?)
I had the same exact problem because stupid eclipse sometimes introduces 
tabs even when you don't want to. g

--
Stefano.


Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Torsten Curdt
I tried replacing 

xml-serializer
class=org.apache.cocoon.components.sax.XMLByteStreamCompiler
logger=core.xml-serializer pool-grow=4 pool-max=32 pool-min=8/
with 

xml-serializer class=org.apache.cocoon.components.sax.XMLSerializer
logger=core.xml-serializer pool-grow=4 pool-max=32 pool-min=8/
Ehm... what? No ...you better not replace the XMLByteStreamCompiler
like that ;-)
in cocoon.xconf (and I hope this is what you were talking about), but had
the same problem with my tabs. 
We have these two serializers
./src/java/org/apache/cocoon/serialization/XMLSerializer.java
./src/blocks/serializers/java/org/apache/cocoon/components/serializers/XMLSerializer.java
The first one uses the javax TransformerHandler,
the second one is a cocoon implementation.
Sorry, for pointing you to the cocoon.xconf
usually they are specified inside the sitemap.
 map:serializers default=html
map:serializer
mime-type=text/xml
name=xml
src=org.apache.cocoon.serialization.XMLSerializer/
...but for me it seems like we are still using the
old one as a default...
cheers
--
Torsten


Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Micah Dubinko
FYI, my default sitemap has:
   map:serializer logger=sitemap.serializer.xml mime-type=text/xml 
name=xml src=org.apache.cocoon.serialization.XMLSerializer/

and
   map:serializer logger=sitemap.serializer.exml 
mime-type=text/xml name=exml 
src=org.apache.cocoon.components.serializers.XMLSerializer
 encodingUTF-8/encoding
   /map:serializer

In a simple test, say the hello-world block, changing the serializer 
from xml to exml makes the tabs serialize like you'd expect.

I'll peek around in the top one to see if I can figure out what's going on.
.micah
Torsten Curdt wrote:
We have these two serializers
./src/java/org/apache/cocoon/serialization/XMLSerializer.java
./src/blocks/serializers/java/org/apache/cocoon/components/serializers/XMLSerializer.java 

The first one uses the javax TransformerHandler,
the second one is a cocoon implementation.
Sorry, for pointing you to the cocoon.xconf
usually they are specified inside the sitemap.
 map:serializers default=html
map:serializer
mime-type=text/xml
name=xml
src=org.apache.cocoon.serialization.XMLSerializer/
...but for me it seems like we are still using the
old one as a default...
cheers
--
Torsten




Re: AW: XMLSerializer replaces tabs with #9;

2004-12-06 Thread Torsten Curdt
Micah Dubinko wrote:
FYI, my default sitemap has:
   map:serializer logger=sitemap.serializer.xml mime-type=text/xml 
name=xml src=org.apache.cocoon.serialization.XMLSerializer/

and
   map:serializer logger=sitemap.serializer.exml mime-type=text/xml 
name=exml src=org.apache.cocoon.components.serializers.XMLSerializer
 encodingUTF-8/encoding
   /map:serializer

In a simple test, say the hello-world block, changing the serializer 
from xml to exml makes the tabs serialize like you'd expect.

I'll peek around in the top one to see if I can figure out what's going on.
Better spend the time in fixing the last
few issues in the new one. ...that means
(again) our homegrown one is better. Maybe
we should sort out the last few issues and
then switch.
cheers
--
Torsten