Re: Using values from one node tree to iterate/recurse
As at least in your sample the field and record/* elements are in the same order the above might suffice. If not then post back.
Thing is I *know* it's my scripting language based thinking, but I want the stylesheet to be able to handle a set of records which may be structured differently than the structure element.
A <record> element may have more child data elements than the <structure> has <field> children. I would like the ordering of the <field> elements to be reflected in the table, rather than rely current symmetry.
<view display="list" controller="story" action="list">
<record_list type="story" total_found="2" page_size="10" page_number="1" last_page="1" begin_record="1" end_record="2">
<field name="id" type="id" label="ID" >id</field>
<field name="headline" type="name" label="Headline" >headline</field>
<!-- <field name="bodycopy" type="textarea" label="Bodycopy" >bodycopy</field> to be ommitted from table!!! -->
<field name="picture" type="image" label="Picture" >picture</ field>
<record type="story" sig="47c44488b7a614.15734104">
<bodycopy>There was fog in the channel. No French cheese for us.</bodycopy>
<headline>Fog in Channel, Europe Cut Off</headline>
<record type="story" sig="47c44488bb80e5.13211401">
<headline>Man Bite Dogs</headline>
<bodycopy>Today a man bit a dog</bodycopy>
makes my intention clearer.
Or not? ;-)
-- Richard Dyce MA (Cantab.) MBCS MIET
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format