[Laszlo-user] Help with tabsliders and datapaths
Paulo Scardine
paulo at scardine.com.br
Wed Sep 24 06:15:32 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>
try this instead (untested):
<tabslider width="${(parent.width / 3) - 15}" height="200"
datapath="current_news:/news-items">
<tabelement datapath="news-item" text="$path{'title/text()'}">
<text multiline="true" text="$path{'body/text()'}"/>
</tabelement>
</tabslider>
> 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