Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Can XSD do "by reference"

From: "Rich Adili" <Rich.Adili@----.--->
To: <xmlschema-dev@--.--->
Date: 8/7/2007 6:40:00 PM
I would like to define a sort of row-column schema. Although the XML is
easy to write manually, I'm having trouble finding an elegant schema
design. The requirements are:

1. A sequence (1 or more occurrences) of column definitions, which is
straightforward enough i.e. a sequence of elements each with a sequence
of identical children. This would permit one to create column types by
adding an entry to this list of properties that a column must have. A
simplistic example: columns must have properties Name and Type. One
instance might have Name="Purchase Type" and Type="string". Another
instance might have Name="Purchase Date" and Type="Date".

2. Another sequence that provides row data using references to each of
the above types rather than a copy (Name(1)="Capital Equipment" AND
Name(2)="1/1/2007");

I can be quite flexible as to the particulars as long as it will pass
through the Visual Studio code generator(XSD.exe) and provide the above
properties. However, I haven't found a way to do the reference bit in
#2. Visual Studio's DataSet designer provides an implementation of this
using data relations but it's rather complex. Is a simpler solution
feasible?

Rich

From mike@s... Wed Aug 08 10:59:19 2007
Received: fr


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent