Re: table setup

On Mon, Jun 30, 2003 at 10:13:41AM +0100, Henry S. Thompson wrote:
> Sam Carleton <sam@linux-info.net> writes:
> 
> > Opps, I had the layout wrong.  This is what I have:
> 
> Too bad -- we could have done the first one (with key/keyref), but the
> second one is not possible in W3C XML Schema, which doesn't do
> run-time-constrained typing (which is what you're asking for).
 
Henry,

After some thought I have decided to be flexable:)  I will adapt the
XML to the form in which it can be done.  Would you mind enlighten
me as to how?

Again, here is the format:

<?xml version="1.0" encoding="UTF-8"?>
<doc>
        <colInfo>
                <columnDef name="col1">1st Column</columnDef> 
                <columnDef name="col2">2nd Column</columnDef>
                <columnDef name="col3">3rd Column</columnDef>
        </colInfo>
        <data>
                <item>
                        <name>an item</name>
                        <column name="col1">something</column>  
                        <column name="col2">something</column>
                        <column name="col3">something</column>  
                </item>
                <item>
                        <name>an item</name>
                        <column name="col1">something</column>
                        <column name="col2">something</column>
                        <column name="col3">something</column>
                </item>
                <item>
                        <name>an item</name>
                        <column name="col1">something</column>
                        <column name="col2">something</column>
<!--  this one would be invalid because it is missing col3 -->
                </item>
        </data>
</doc>

Thanks!

Sam

Received on Monday, 30 June 2003 07:58:10 UTC