XML Schema for 2 Dimensional Table
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 3
- Joined: Wed Oct 18, 2006 6:14 pm
XML Schema for 2 Dimensional Table
I am using Oxygen 8.2 to develop a Schema for a Database. I have come across a need to describe a Two Dimensional Table with an unbounded number of Rows and Columns and Cells for each Row and Column combination. I know how to use xs:sequence to describe a 1 dimensional list. But what is the best way to describe a 2 dimensional table with NxM cells in an XML Schema?
Any Help is greatly appreciated.

Any Help is greatly appreciated.

Don Baechtel
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: XML Schema for 2 Dimensional Table
Post by sorin_ristache »
Hello,
You can define a row of the table as a sequence of maximum maxColumnNumber cells. You have to replace maxRowNumber and maxColumnNumber with real numbers.
Regards,
Sorin
You can define a row of the table as a sequence of maximum maxColumnNumber cells. You have to replace maxRowNumber and maxColumnNumber with real numbers.
Code: Select all
<xs:element name="table">
<xs:complexType>
<xs:sequence maxOccurs="maxRowNumber">
<xs:element name="row">
<xs:complexType>
<xs:sequence maxOccurs="maxColumnNumber">
<xs:element ref="tableCellType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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