help with xsl templates
hello,
I have a problem. I have an xml file that I am trying to display.
the xml is similar as follows. (The <Zone>'s can come in any order/quantity, and come in 2 types: Those with child <Table>'s, and those without. Zones with Tables always have 'Name="Table"')
<Page>
<Zone Name="Address">
<Field Name="Address">123 4th st.></Field>
</Zone>
<Zone Name="Table">
<Table LineNo="1">
<Field Name="Item">12345</Field>
</Table>
<Table LineNo="1">
<Field Name="Desc">Candy</Field>
</Table>
<Table LineNo="2">
<Field Name="Desc">Cane</Field>
</Table>
</Zone>
</Page>
I want the output to look something like this:
Address
123 4th St
Item Desc
12345 Candy
Cane
I have been able to create a template that works for the first address <Zone>, but I do not understand how to create a template that can handle the Table <Zone>. Any help is appreciated.
|