jpan
05-18-2004, 01:10 PM
Hi,
I have an xml that looks like this:
<dataset name="dset">
<images>
<image>
<resource>image1</resource>
<x>100</x>
<y>100</y>
<width>100</width>
<height>100</height>
</image>
<image>
<resource>image2</resource>
<x>100</x>
<y>100</y>
<width>100</width>
<height>100</height>
</image>
</images>
</dataset>
And I have a view that needs to be replicated based on the dataset:
<view datapath="dset:/images/image"
x="${dset:/images/image/x/text()}"
y="${dset:/images/image/y/text()}"
height="${dset:/images/image/height/text()}"
width="${dset:/images/image/width/text()}"
resource="${dset:/images/image/resource/text()}" />
The above is obviously wrong. How can I achieve this though?? Thank you!
I have an xml that looks like this:
<dataset name="dset">
<images>
<image>
<resource>image1</resource>
<x>100</x>
<y>100</y>
<width>100</width>
<height>100</height>
</image>
<image>
<resource>image2</resource>
<x>100</x>
<y>100</y>
<width>100</width>
<height>100</height>
</image>
</images>
</dataset>
And I have a view that needs to be replicated based on the dataset:
<view datapath="dset:/images/image"
x="${dset:/images/image/x/text()}"
y="${dset:/images/image/y/text()}"
height="${dset:/images/image/height/text()}"
width="${dset:/images/image/width/text()}"
resource="${dset:/images/image/resource/text()}" />
The above is obviously wrong. How can I achieve this though?? Thank you!