Henner,

Here you go! This file seems to be correct in format. I have been studying up on this 
site:

http://www.w3schools.com/schema/default.asp

This .xsd file does not include the new multiple database stuff yet. There is a bunch 
of stuff that will need to go in this once those features are tested....


----------START dbforms-config.xsd---------------
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
        targetNamespace="http://www.w3schools.com";
        xmlns="http://www.w3schools.com";
        elementFormDefault="qualified">

<xs:element name="dbforms-config">
<xs:complexType>
<xs:all>

        <xs:element name="date-format" type="xs:string" minOccurs="0" maxOccurs="1"/>

        <xs:element name="table" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
        <xs:all>

                <xs:element name="field" type="xs:string" minOccurs="1" 
maxOccurs="unbounded">
                        <xs:attribute name="name" type="xs:string" use="required"/>
                        <xs:attribute name="fieldType" type="xs:string" 
use="required"/>
                        <xs:attribute name="size" type="xs:string" use="optional"/>
                        <xs:attribute name="isKey" type="xs:string" use="optional"/>
                        <xs:attribute name="autoInc" type="xs:string" use="optional"/>
                </xs:element>

                <xs:element name="interceptor" type="xs:string" minOccurs="0" 
maxOccurs="unbounded">
                        <xs:attribute name="className" type="xs:string" 
use="required"/>
                </xs:element>

                <xs:element name="granted-privileges" type="xs:string" minOccurs="0" 
maxOccurs="unbounded">
                        <xs:attribute name="select" type="xs:string" use="optional"/>
                        <xs:attribute name="insert" type="xs:string" use="optional"/>
                        <xs:attribute name="update" type="xs:string" use="optional"/>
                        <xs:attribute name="delete" type="xs:string" use="optional"/>
                </xs:element>

        </xs:all>
        <xs:attribute name="name" type="xs:string" use="required"/>
        </xs:complexType>
        </xs:element>
        <!--END "table" -->

        <xs:element name="dbconnection" type="xs:string" minOccurs="1" 
maxOccurs="unbounded">
                <xs:attribute name="name" type="xs:string" use="required"/>
                <xs:attribute name="isJndi" type="xs:string" use="optional"/>
                <xs:attribute name="conClass" type="xs:string" use="optional"/>
                <xs:attribute name="username" type="xs:string" use="optional"/>
                <xs:attribute name="password" type="xs:string" use="optional"/>
        </xs:element>
        <!--END "dbconnection" -->

</xs:all>
<xs:any minOccurs="0"/><!--allow extending-->
</xs:complexType>
</xs:element>
<!--END "dbforms-config" -->

</xs:schema>

----------END dbforms-config.xsd---------------



-----Original Message-----
From: Henner Kollmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 9:28 AM
To: John Gagon
Cc: [EMAIL PROTECTED]
Subject: RE: [dbforms] DTD for dbforms-config.xml


Could you write one? :-)

Regards,
Henner



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On 
> Behalf Of John Gagon
> Sent: Monday, November 18, 2002 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: [dbforms] DTD for dbforms-config.xml
> 
> 
> 
> 
> How about an XSD file. xsd or "schema" is supposed to replace 
> DTD and is more truly XMLish. If you like, I can create an 
> XSD file...then the definition can be parsed as well by any 
> XML parser and played with for generating etc...anyone else 
> have a preference? 
> 
> 
> 
> 
> 
> Message: 5
> From: "Henner Kollmann" <[EMAIL PROTECTED]>
> To: "dbf" <[EMAIL PROTECTED]>
> Date: Sun, 17 Nov 2002 13:26:21 +0100
> Subject: [dbforms] DTD for dbforms-config.xml
> 
> Hi all,
> 
> Is someone working on a DTD for dbforms-config.xml?
> 
> Regards,
> Henner
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> DbForms Mailing List
> 
http://www.wap-force.net/dbforms



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to