[Laszlo-user] Help with tabsliders and datapaths
Paulo Scardine
paulo at scardine.com.br
Wed Sep 24 05:58:16 PDT 2008
Donald Brady escreveu:
> Hi
>
> I have a simple tabslider setup:
>
>
> <tabslider width="${(parent.width / 3) - 15}" height="200"
> datapath="current_news:/news-items">
> <tabelement datapath="news-item/title/text()">
> <text multiline="true" datapath="news-item/title/text()"/>
> </tabelement>
> </tabslider>
>
I think the problem is that the inner text element datapath is relative
to the parent, so in this depth there is no "news-item".
>
> The tabslider title bars get their appropriate title from each
> news-item in the xml. That works fine. But I can't get any text to
> display (the code above uses the same title xpath just to make sure
> that things were working).
>
> All the doc examples with tabslider/datapath don't actually display
> anything in the sliders content are.
>
> What am I doing wrong?
>
> Thanks
>
> Donald
More information about the Laszlo-user
mailing list