thobson
09-09-2008, 03:54 PM
Hi
I hope someone can help me with this because I've been struggling with it for about a week now!
I have a remote dataset which returns data in the form:
<cliparts>
<clipart>
<id>1</id>
<width>10</width>
<height>10</height>
<src>http://localhost:8080/clipart/1.swf</src>
</clipart>
<clipart>
...
</clipart>
</cliparts>
I want to create a series of views based on this dataset, I was hoping to do something like:
<view name="container">
<view datapath="getCliparts/cliparts/clipart">
<attribute name="source" value="$path{'src/text()'}" />
<attribute name="width" value="$path{'width/text()'}" />
<attribute name="height" value="$path{'height/text()'}" />
</view>
<simplelayout axis="y" />
</view>
The problem is that the layout is completely screwed, the views appear on top of each other and the size is ignored.
I'm using OL 3.3.3
Thanks!
Toby
I hope someone can help me with this because I've been struggling with it for about a week now!
I have a remote dataset which returns data in the form:
<cliparts>
<clipart>
<id>1</id>
<width>10</width>
<height>10</height>
<src>http://localhost:8080/clipart/1.swf</src>
</clipart>
<clipart>
...
</clipart>
</cliparts>
I want to create a series of views based on this dataset, I was hoping to do something like:
<view name="container">
<view datapath="getCliparts/cliparts/clipart">
<attribute name="source" value="$path{'src/text()'}" />
<attribute name="width" value="$path{'width/text()'}" />
<attribute name="height" value="$path{'height/text()'}" />
</view>
<simplelayout axis="y" />
</view>
The problem is that the layout is completely screwed, the views appear on top of each other and the size is ignored.
I'm using OL 3.3.3
Thanks!
Toby