Elements within elsements

Questions about XML that are not covered by the other forums should go here.
tjsingh
Posts: 4
Joined: Tue Mar 17, 2009 1:52 pm

Elements within elsements

Post by tjsingh »

Hi

I am just refreshing myself on XML been a while. Just wondering i am creating a table with different rows. But inbetween some rows there will be a subtotal element which is called <subtotal>

I cannot get it to display after the 2nd row of data but instead it displays it at the bottom.

First i need to know if the following is valid

<data>
<record>
<matter_chargeable>YES</matter_chargeable>
<matter_status>0</matter_status>
<disbursement_amount>40.00</disbursement_amount>
<disbursement_billed_amount>0.00</disbursement_billed_amount>
<disbursement_date>2008-11-20</disbursement_date>
<disbursement_status>0</disbursement_status>
<disbursement_text>Invoice</disbursement_text>
<disbursement_unbilled_amount>40.00</disbursement_unbilled_amount>
</record>
<record>
<matter_chargeable>YES</matter_chargeable>
<matter_status>0</matter_status>
<disbursement_amount>50.00</disbursement_amount>
<disbursement_billed_amount>0.00</disbursement_billed_amount>
<disbursement_date>2008-11-21</disbursement_date>
<disbursement_status>0</disbursement_status>
<disbursement_text>Invoice</disbursement_text>
<disbursement_unbilled_amount>50.00</disbursement_unbilled_amount>
</record>
<subtotal>
<matter_chargeable/>
<matter_status/>
<disbursement_amount>2000</disbursement_amount>
<disbursement_billed_amount>0</disbursement_billed_amount>
<disbursement_date/>
<disbursement_status/>
<disbursement_text/>
<disbursement_unbilled_amount>200000</disbursement_unbilled_amount>
</subtotal>

</data>

regards

tj
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Elements within elsements

Post by sorin_ristache »

Hello,

Do you try to display a table in Author mode, in the output of an XSLT transformation, etc? For Author mode the problem is probably in the CSS stylesheet but you did not show the CSS stylesheet that you associated with the XML file.

What do you mean valid? Do you have a schema for validating the XML file against it?


Regards,
Sorin
tjsingh
Posts: 4
Joined: Tue Mar 17, 2009 1:52 pm

Re: Elements within elsements

Post by tjsingh »

hi

Sorry for the late reply. I have sorted this one now and have an xml format in place.

cheers
Post Reply