TheCatWhisperer
01-09-2004, 09:55 AM
Hi,
I'm try to get text elements to do somthing that seems rather simple.. I have a dataset that containes news information, and I want the pieces of information to display in this way:
{News Header} ({Source}, {Datestamp})
{Summary}
Example:
US soldier killed in Iraq mortar attack (ABC News, 1-8-2003 13:41)
A US soldier was killed and 34 others wounded when rebels fired mortar rounds at a military base near the Iraqi capital, Baghdad, last night, according to the US military.
This is the code I'm using to try and do this:
<view name="newsList">
<simplelayout axis="y" />
<view name="rowOfData" datapath="news:/news[1]/newsitem">
<wrappinglayout axis="x" spacing="3" />
<text datapath="slug/text()" />
<text datapath="source/text()" />
<text datapath="timestamp/text()" />
<text datapath="summary/text()" />
</view>
</view>
When this code evaluates it prints out:
US Soldier Kill i
ABC News
1-8-2003 13:41
A US soldier was
The truth is out T
Toronto Star
1-8-2003 13:43
It is disturbingly
It's not only not wrapping the items, but it is also cutting them off after 100 pixels?? Help??
/c
I'm try to get text elements to do somthing that seems rather simple.. I have a dataset that containes news information, and I want the pieces of information to display in this way:
{News Header} ({Source}, {Datestamp})
{Summary}
Example:
US soldier killed in Iraq mortar attack (ABC News, 1-8-2003 13:41)
A US soldier was killed and 34 others wounded when rebels fired mortar rounds at a military base near the Iraqi capital, Baghdad, last night, according to the US military.
This is the code I'm using to try and do this:
<view name="newsList">
<simplelayout axis="y" />
<view name="rowOfData" datapath="news:/news[1]/newsitem">
<wrappinglayout axis="x" spacing="3" />
<text datapath="slug/text()" />
<text datapath="source/text()" />
<text datapath="timestamp/text()" />
<text datapath="summary/text()" />
</view>
</view>
When this code evaluates it prints out:
US Soldier Kill i
ABC News
1-8-2003 13:41
A US soldier was
The truth is out T
Toronto Star
1-8-2003 13:43
It is disturbingly
It's not only not wrapping the items, but it is also cutting them off after 100 pixels?? Help??
/c