Elements within elsements
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 4
- Joined: Tue Mar 17, 2009 1:52 pm
Elements within elsements
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
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
-
- 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
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
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service