You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Hoskens <jh...@schaubroeck.be> on 2004/01/22 17:00:51 UTC

[Woody] Repeater & TemplateTransformer

Hi,

I got another strange thing going:

This is the good and working template part:

<wt:repeater-widget id="persons">
     <table class="persons">

      <th/>
      <th/>
      <body>
       <tr>
        <td><wt:widget-label id="name"/>:</td>
        <td><wt:widget id="name"/></td>
       </tr>
      </body>
     </table>
    </wt:repeater-widget>

This does give me the right output: a table with the persons.

When I want to use my own tags (maybe not necessary, but I'm using 'home-made' tags through all my other pages) results in:
<wt:repeater-widget id="contactpersoon">
     <Table>
      <Atributes class="persons"/>
      <Header/>
      <Header/>
      <Body>
       <Row>
        <RowData><wt:widget-label id="name"/>:</RowData>
        <RowData><wt:widget id="name"/></RowData>
       </Row>
      </Body>
     </Table>
    </wt:repeater-widget>

This gives me, well nothing at all! I've put these together in one template, but this latter one gives a blank space while the former does not. In my final transformation I replace my 'home-made' tags with the correct ones, and leave the others as is, so it does have to give the same result (a table with 'home-made' tags that isn't in a repeater does give the correct output).

I thought the templatetransformer filled in the fields and just copied the stuff in bewteen the repeater for each row, but apparently it does not??

Greetings,

Jan. 

Re: [Woody] Repeater & TemplateTransformer

Posted by Jan Hoskens <jh...@schaubroeck.be>.
Sorry, it was a mismatch in an xslt! (Hmm, last minute check at the end of
the day, I guess that part of my mind fell asleep..:-)


----- Original Message ----- 
From: "Fabio Sabatini" <f....@cbim.it>
To: <us...@cocoon.apache.org>
Sent: Thursday, January 22, 2004 7:04 PM
Subject: Re: [Woody] Repeater & TemplateTransformer


> Jan Hoskens wrote:
>
> > Hi,
> >
> > I got another strange thing going:
> >
> > This is the good and working template part:
> >
> > <wt:repeater-widget id="persons">
> >      <table class="persons">
> >
> >       <th/>
> >       <th/>
> >       <body>
> >        <tr>
> >         <td><wt:widget-label id="name"/>:</td>
> >         <td><wt:widget id="name"/></td>
> >        </tr>
> >       </body>
> >      </table>
> >     </wt:repeater-widget>
> >
> > This does give me the right output: a table with the persons.
> >
> > When I want to use my own tags (maybe not necessary, but I'm
> > using 'home-made' tags through all my other pages) results in:
> > <wt:repeater-widget id="contactpersoon">
> >      <Table>
> >       <Atributes class="persons"/>
> >       <Header/>
> >       <Header/>
> >       <Body>
> >        <Row>
> >         <RowData><wt:widget-label id="name"/>:</RowData>
> >         <RowData><wt:widget id="name"/></RowData>
> >        </Row>
> >       </Body>
> >      </Table>
> >     </wt:repeater-widget>
> >
> > This gives me, well nothing at all! I've put these together in one
> > template, but this latter one gives a blank space while the former
> > does not. In my final transformation I replace my 'home-made' tags
> > with the correct ones, and leave the others as is, so it does have to
> > give the same result (a table with 'home-made' tags that isn't in a
> > repeater does give the correct output).
>
> Don't do your transformation and see the result: see what woody
> transformer sends out.
> Maybe this can help you understand the reason.
>
> >
> > I thought the templatetransformer filled in the fields and just copied
> > the stuff in bewteen the repeater for each row, but apparently it does
> > not??
> >
> > Greetings,
> >
> > Jan.
>
> -- 
> Fabio Sabatini
>
> Direzione Tecnica
> Consorzio di Bioingegneria e Informatica Medica
> P.le Volontari del Sangue 2 - 27100 PAVIA (PV) ITALIA
> Tel. +39.0382.525100 - Fax +39.0382.526622
> E-mail: f.sabatini@cbim.it
> http://www.cbim.it
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Re: [Woody] Repeater & TemplateTransformer

Posted by Fabio Sabatini <f....@cbim.it>.
Jan Hoskens wrote:

> Hi,
>  
> I got another strange thing going:
>  
> This is the good and working template part:
>  
> <wt:repeater-widget id="persons">
>      <table class="persons">
>  
>       <th/>
>       <th/>
>       <body>
>        <tr>
>         <td><wt:widget-label id="name"/>:</td>
>         <td><wt:widget id="name"/></td>
>        </tr>
>       </body>
>      </table>
>     </wt:repeater-widget>
>  
> This does give me the right output: a table with the persons.
>  
> When I want to use my own tags (maybe not necessary, but I'm 
> using 'home-made' tags through all my other pages) results in:
> <wt:repeater-widget id="contactpersoon">
>      <Table>
>       <Atributes class="persons"/>
>       <Header/>
>       <Header/>
>       <Body>
>        <Row>
>         <RowData><wt:widget-label id="name"/>:</RowData>
>         <RowData><wt:widget id="name"/></RowData>
>        </Row>
>       </Body>
>      </Table>
>     </wt:repeater-widget>
>  
> This gives me, well nothing at all! I've put these together in one 
> template, but this latter one gives a blank space while the former 
> does not. In my final transformation I replace my 'home-made' tags 
> with the correct ones, and leave the others as is, so it does have to 
> give the same result (a table with 'home-made' tags that isn't in a 
> repeater does give the correct output).

Don't do your transformation and see the result: see what woody 
transformer sends out.
Maybe this can help you understand the reason.

>  
> I thought the templatetransformer filled in the fields and just copied 
> the stuff in bewteen the repeater for each row, but apparently it does 
> not??
>  
> Greetings,
>  
> Jan.

-- 
Fabio Sabatini

Direzione Tecnica
Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue 2 - 27100 PAVIA (PV) ITALIA
Tel. +39.0382.525100 - Fax +39.0382.526622
E-mail: f.sabatini@cbim.it 
http://www.cbim.it


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