Page 1 of 1

Elements within elsements

Posted: Tue Mar 17, 2009 1:56 pm
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

Re: Elements within elsements

Posted: Tue Mar 17, 2009 4:05 pm
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

Re: Elements within elsements

Posted: Fri Mar 27, 2009 12:01 pm
by tjsingh
hi

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

cheers