cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Heidl <he...@zib.de>
Subject Re: bad WML transformation
Date Mon, 04 Dec 2000 15:56:43 GMT
On Mon, Dec 04, 2000 at 04:49:29PM +0100, Vincent Raeber wrote:
> Hi all,
> 
> I use Cocoon to generate WML code using a XSLT transformation.
> My XSL is  :
> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
> <xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
> <xsl:template match="/">
> <wml>
>   <template>
>     <do type="prev" name="Previous" label="Previous">
>       <prev/>
>     </do>
>   </template>
>   <card id="Login" title="Login">
>     <p>
>       Entrez votre login:
>       <br/>
>       <input name="login"/>
>     </p>
>     <p>
>       Entrez votre mot de passe : <input name="MotDePasse"/>
>     </p>
>     <do type="accept" label="Valider">
>       <go href="wapaffichettespriveesscreen.wml"/>
>     </do>
>   </card>
> </wml>
> </xsl:template>
> </xsl:stylesheet>
> 
> After the transformation, the both <input .../> tags are modified to <input

> ... >.
> I've tried to insert <input ..></input> but the same result appears.
> 
> The same with the <br/> tag. (<br/> tag become <br>)

I think you have to tell cocoon the output mime type.
Try putting
<xsl:processing-instruction name="cocoon-format">type="text/wml"</xsl:processing-instruction>
after your <xsl:template match="/">

just a guess,
Seb


Mime
View raw message