You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Scherler, Thorsten" <th...@apache.org> on 2004/02/11 08:11:05 UTC

BetwixtTransformer

Hello group,
I followed the instruction at 
http://wiki.cocoondev.org/Wiki.jsp?page=BetwixtTransformer.

the only differents between my local setting and that wiki page is that 
I could not find commons-betwixt-1.0-beta-1.jar! I used 
commons-betwixt-1.0-alpha-1.jar.

I also downloaded BetwixtTransformer.java but with the alpha release 
eclipse cannot
import org.apache.commons.betwixt.strategy.ClassNormalizer. Because is 
not in the alpha release!

So line 208:
BetwixtTransformer.introspector.setClassNormalizer(new ClassNormalizer();

cannot be resoleved.

Any tips to solve this problem?
King regards
-- 
<thorsten>
  <name>Thorsten Scherler</name>
  <country>Spain</country>
  <@mail> thorsten@apache.org</...@mail>
  <@cocoon-WIKI> 
http://wiki.cocoondev.org/Wiki.jsp?page=Scherler</...@cocoon-WIKI>
  <http>http://www.target-x.de</http>
</thorsten>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: First impresion BetwixtTransformer (Bug report ?)

Posted by "Scherler, Thorsten" <th...@apache.org>.
> Try "samples/scratchpad/betwixt/"

The undefined value has no properties.

org.apache.avalon.framework.CascadingRuntimeException: The undefined 
value has no properties.

cause: ConversionError: The undefined value has no properties. 
(file:/D:/get/eclipse/workspace/cocoon/samples/scratchpad/betwixt/flow.js; 
line 4)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


[betwixt] Re: First impresion BetwixtTransformer (Bug report ?)

Posted by Christoph Gaffga <cg...@triplemind.com>.
> So the second <?xml version="1.0" encoding="ISO-8859-1" ?> produce in
> Mozilla Firefox (and Navigator) a parsing error. IE 6 seems not to care.

That's strange. I wrote this damn BetwixtTransformer, tested it, an never
saw an output like this. So perheaps it has to do with the version of
betwixt, you are using.

What you see is that it the betwixt SAXBeanWriter fires a
startDocument-event. But I think in my version of betwixt this event is
never fired. But it could be a good starting-point for debugging.

Perheaps somebody from the betwixt-developers knows if there has been a
problem with this.

regards
Christoph
cgaffga@triplemind.com

"Scherler, Thorsten" <th...@apache.org> schrieb im Newsbeitrag
news:c0jsfn$imj$1@sea.gmane.org...
> Reinhard Poetz wrote:
> >
> > You find the betwixt transformer in the Cocoon scratchpad with a working
> > example.
> >
> > --
> > Reinhard
>
> Cheers, I found it using cocoon 2.1.4 (but I could not find a direct
> link to the example).
> So I tried http://wiki.cocoondev.org/Wiki.jsp?page=BetwixtTransformer.
> Nice.
>
> ...but the resulting transformation is (if I use <map:serialize
> type="xml"/> instead of <map:serialize />):
>    <?xml version="1.0" encoding="ISO-8859-1" ?>
>   <page xmlns:xsp="http://apache.org/xsp" >
>   <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
>    <?xml version="1.0" encoding="ISO-8859-1" ?>
>   <Hashtable>
>   <entry>
>    <key>entry2</key>
>    <value>22</value>
>    </entry>
>   <entry>
>    <key>entry1</key>
>    <value>String1</value>
>    </entry>
>    </Hashtable>
>    </example>
>    </page>
>
> So the second <?xml version="1.0" encoding="ISO-8859-1" ?> produce in
> Mozilla Firefox (and Navigator) a parsing error. IE 6 seems not to care.
>
> If I use <map:serialize /> Mozilla is working fine but IE produce a
> parsing error. The result of the serialize is:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <page xmlns:xsp="http://apache.org/xsp">
> <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
>        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <Hashtable>
> <entry>
> <key>entry2</key>
> <value>22</value>
> </entry>
> <entry>
> <key>entry1</key>
> <value>String1</value>
> </entry>
> </Hashtable>
> </example>
> </page>
>
> Again there are *TWO* <!DOCTYPE/> declarations. Is that a bug of the
> BetwixtTransformer.java and should I post a bug?
>
> Like I stated before I used the wiki page as example. The output of the
> Betwixt transformation was described as:
> <page>
>    <example>
>      <testB>
>        <entry><key>entry1</key><value>String1</value></entry>
>        <entry><key>entry2</key><value>22</value></entry>
>      </testB>
>    </example>
> </page>
>
> Why do I get <Hashtable><entry> instead of <testB><entry>? Should I
> update the wiki?
>
> King regards
> -- 
>   <name>Thorsten Scherler</name>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Cocoon article in german magazine

Posted by Hugo Burm <hu...@xs4all.nl>.
There is an article on Cocoon 2.1 in the March issue of the german iX
magazine (from Heise) written by Reinhard Poetz and Alexander Schatten. A
large amount of info on the concepts, background, and history of Cocoon on 4
pages. Cocoon is also mentioned on the cover of the magazine. Good to see an
article like that in a "Magazin fuer professionele Informationstechnik".

Hugo Burm


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: First impresion BetwixtTransformer (Bug report ?)

Posted by Reinhard Poetz <re...@apache.org>.
From: Scherler, Thorsten

> Reinhard Poetz wrote:
> > 
> > You find the betwixt transformer in the Cocoon scratchpad with a 
> > working example.
> > 
> > --
> > Reinhard
> 
> Cheers, I found it using cocoon 2.1.4 (but I could not find a direct 
> link to the example).

Try "samples/scratchpad/betwixt/"

> So I tried http://wiki.cocoondev.org/Wiki.jsp?page=BetwixtTransformer.
> Nice.
> 
> ...but the resulting transformation is (if I use <map:serialize 
> type="xml"/> instead of <map:serialize />):
>    <?xml version="1.0" encoding="ISO-8859-1" ?>
>   <page xmlns:xsp="http://apache.org/xsp" >
>   <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
>    <?xml version="1.0" encoding="ISO-8859-1" ?>
>   <Hashtable>
>   <entry>
>    <key>entry2</key>
>    <value>22</value>
>    </entry>
>   <entry>
>    <key>entry1</key>
>    <value>String1</value>
>    </entry>
>    </Hashtable>
>    </example>
>    </page>
> 
> So the second <?xml version="1.0" encoding="ISO-8859-1" ?> produce in 
> Mozilla Firefox (and Navigator) a parsing error. IE 6 seems 
> not to care.
> 
> If I use <map:serialize /> Mozilla is working fine but IE produce a 
> parsing error. The result of the serialize is:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
> "http://www.w3.org/TR/html4/loose.dtd">
> <page xmlns:xsp="http://apache.org/xsp">
> <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
>        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
> "http://www.w3.org/TR/html4/loose.dtd">
> <Hashtable>
> <entry>
> <key>entry2</key>
> <value>22</value>
> </entry>
> <entry>
> <key>entry1</key>
> <value>String1</value>
> </entry>
> </Hashtable>
> </example>
> </page>
> 
> Again there are *TWO* <!DOCTYPE/> declarations. Is that a bug of the 
> BetwixtTransformer.java and should I post a bug?
> 
> Like I stated before I used the wiki page as example. The 
> output of the 
> Betwixt transformation was described as:
> <page>
>    <example>
>      <testB>
>        <entry><key>entry1</key><value>String1</value></entry>
>        <entry><key>entry2</key><value>22</value></entry>
>      </testB>
>    </example>
> </page>
> 
> Why do I get <Hashtable><entry> instead of <testB><entry>? Should I 
> update the wiki?
> 
> King regards
> -- 
> <thorsten>
>   <name>Thorsten Scherler</name>
>   <country>Spain</country>
>   <@mail> thorsten@apache.org</...@mail>
>   <@cocoon-WIKI> 
> http://wiki.cocoondev.org/Wiki.jsp?page=Scherler</...@cocoon-WIKI>
>   <http>http://www.target-x.de</http>
> </thorsten>

Sorry can't help you - pls have a look at the demo, maybe this can
answer some of your questions. If you think that the Betwixt-transformer
doesn't work correctly fill in a bug report at Bugzilla or even better
provider a patch (IIRC it is very straight forward). Pls also make sure
if it is a problem of Betwixt itself or a problem of the transformer
because IIRC the transformer doesn't implement complicated things so I
guess it could be a problem of Betwixt.

HTH a bit ...

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


First impresion BetwixtTransformer (Bug report ?)

Posted by "Scherler, Thorsten" <th...@apache.org>.
Reinhard Poetz wrote:
> 
> You find the betwixt transformer in the Cocoon scratchpad with a working
> example.
> 
> --
> Reinhard

Cheers, I found it using cocoon 2.1.4 (but I could not find a direct 
link to the example).
So I tried http://wiki.cocoondev.org/Wiki.jsp?page=BetwixtTransformer.
Nice.

...but the resulting transformation is (if I use <map:serialize 
type="xml"/> instead of <map:serialize />):
   <?xml version="1.0" encoding="ISO-8859-1" ?>
  <page xmlns:xsp="http://apache.org/xsp" >
  <example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
   <?xml version="1.0" encoding="ISO-8859-1" ?>
  <Hashtable>
  <entry>
   <key>entry2</key>
   <value>22</value>
   </entry>
  <entry>
   <key>entry1</key>
   <value>String1</value>
   </entry>
   </Hashtable>
   </example>
   </page>

So the second <?xml version="1.0" encoding="ISO-8859-1" ?> produce in 
Mozilla Firefox (and Navigator) a parsing error. IE 6 seems not to care.

If I use <map:serialize /> Mozilla is working fine but IE produce a 
parsing error. The result of the serialize is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<page xmlns:xsp="http://apache.org/xsp">
<example xmlns:betwixt="http://apache.org/cocoon/betwixt/1.0">
       <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<Hashtable>
<entry>
<key>entry2</key>
<value>22</value>
</entry>
<entry>
<key>entry1</key>
<value>String1</value>
</entry>
</Hashtable>
</example>
</page>

Again there are *TWO* <!DOCTYPE/> declarations. Is that a bug of the 
BetwixtTransformer.java and should I post a bug?

Like I stated before I used the wiki page as example. The output of the 
Betwixt transformation was described as:
<page>
   <example>
     <testB>
       <entry><key>entry1</key><value>String1</value></entry>
       <entry><key>entry2</key><value>22</value></entry>
     </testB>
   </example>
</page>

Why do I get <Hashtable><entry> instead of <testB><entry>? Should I 
update the wiki?

King regards
-- 
<thorsten>
  <name>Thorsten Scherler</name>
  <country>Spain</country>
  <@mail> thorsten@apache.org</...@mail>
  <@cocoon-WIKI> 
http://wiki.cocoondev.org/Wiki.jsp?page=Scherler</...@cocoon-WIKI>
  <http>http://www.target-x.de</http>
</thorsten>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: BetwixtTransformer

Posted by Reinhard Poetz <re...@apache.org>.
From: Scherler, Thorsten

> Hello group,
> I followed the instruction at 
> http://wiki.cocoondev.org/Wiki.jsp?page=BetwixtTransformer.
> 
> the only differents between my local setting and that wiki 
> page is that 
> I could not find commons-betwixt-1.0-beta-1.jar! I used 
> commons-betwixt-1.0-alpha-1.jar.
> 
> I also downloaded BetwixtTransformer.java but with the alpha release 
> eclipse cannot
> import org.apache.commons.betwixt.strategy.ClassNormalizer. 
> Because is 
> not in the alpha release!
> 
> So line 208: 
> BetwixtTransformer.introspector.setClassNormalizer(new 
> ClassNormalizer();
> 
> cannot be resoleved.
> 
> Any tips to solve this problem?
> King regards
> -- 
> <thorsten>
>   <name>Thorsten Scherler</name>
>   <country>Spain</country>
>   <@mail> thorsten@apache.org</...@mail>
>   <@cocoon-WIKI> 
> http://wiki.cocoondev.org/Wiki.jsp?page=Scherler</...@cocoon-WIKI>
>   <http>http://www.target-x.de</http>
> </thorsten>


You find the betwixt transformer in the Cocoon scratchpad with a working
example.

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org