cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinh...@apache.org>
Subject RE: First impresion BetwixtTransformer (Bug report ?)
Date Sat, 14 Feb 2004 13:11:01 GMT

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


Mime
View raw message