Added: incubator/ofbiz/site/dtds/entitymodel.xsd
URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/entitymodel.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/entitymodel.xsd (added) +++ incubator/ofbiz/site/dtds/entitymodel.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,376 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2001-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + *This is the DTD for the Open For Business Generic Entity Model entity definition XML file. + *This DTD is meant to be as simple as possible, and is modelled from the standard ejb deployment descriptor ejb-jar.xml. +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <!-- ====================== Root Element ======================= --> + <xs:element name="entitymodel"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="title"/> + <xs:element minOccurs="0" ref="description"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="copyright"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="author"/> + <xs:element minOccurs="0" ref="version"/> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <xs:element ref="entity"/> + <xs:element ref="view-entity"/> + </xs:choice> + </xs:sequence> + </xs:complexType> + </xs:element> + <!-- ================= Children of entitymodel =================== --> + <xs:element name="title" type="xs:string"/> + <xs:element name="description" type="xs:string"/> + <xs:element name="copyright" type="xs:string"/> + <xs:element name="author" type="xs:string"/> + <xs:element name="version" type="xs:string"/> + <!-- ================== entity ===================== --> + <xs:element name="entity"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element maxOccurs="unbounded" ref="field"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="prim-key"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="relation"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="index"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.entity"/> + </xs:complexType> + </xs:element> + <!-- see the children of entitymodel section for description, etc. --> + <xs:attributeGroup name="attlist.entity"> + <xs:attribute type="xs:string" name="entity-name" use="required"/> + <xs:attribute type="xs:string" name="table-name"/> + <xs:attribute type="xs:string" name="package-name" use="required"/> + <xs:attribute type="xs:string" name="default-resource-name"/> + <xs:attribute type="xs:string" name="dependent-on"/> + <xs:attribute name="enable-lock" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="no-auto-stamp" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="never-cache" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="auto-clear-cache" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="title"/> + <xs:attribute type="xs:string" name="copyright"/> + <xs:attribute type="xs:string" name="author"/> + <xs:attribute type="xs:string" name="version"/> + </xs:attributeGroup> + <xs:element name="prim-key"> + <xs:complexType> + <xs:attributeGroup ref="attlist.prim-key"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.prim-key"> + <xs:attribute type="xs:string" name="field" use="required"/> + </xs:attributeGroup> + <!-- ==================== field ===================== --> + <xs:element name="field"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="validate"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.field"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.field"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="col-name"/> + <xs:attribute type="xs:string" name="type" use="required"/> + <xs:attribute name="encrypt" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="validate"> + <xs:complexType> + <xs:attributeGroup ref="attlist.validate"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.validate"> + <xs:attribute type="xs:string" name="name" use="required"/> + </xs:attributeGroup> + <!-- ==================== relation ====================== --> + <!-- specifies whether or not the relation is a dependent one; ie if the related entity can exist without the main entity --> + <xs:element name="relation"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element maxOccurs="unbounded" ref="key-map"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.relation"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.relation"> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="one"/> + <xs:enumeration value="many"/> + <xs:enumeration value="one-nofk"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="title"/> + <xs:attribute type="xs:string" name="rel-entity-name" use="required"/> + <xs:attribute type="xs:string" name="fk-name"/> + </xs:attributeGroup> + <xs:element name="key-map"> + <xs:complexType> + <xs:attributeGroup ref="attlist.key-map"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.key-map"> + <xs:attribute type="xs:string" name="field-name" use="required"/> + <xs:attribute type="xs:string" name="rel-field-name"/> + </xs:attributeGroup> + <!-- ==================== index ===================== --> + <xs:element name="index"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element maxOccurs="unbounded" ref="index-field"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.index"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.index"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute name="unique" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="index-field"> + <xs:complexType> + <xs:attributeGroup ref="attlist.index-field"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.index-field"> + <xs:attribute type="xs:string" name="name" use="required"/> + </xs:attributeGroup> + <!-- ================== view-entity ===================== --> + <xs:element name="view-entity"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element maxOccurs="unbounded" ref="member-entity"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="alias-all"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="alias"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="view-link"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="relation"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.view-entity"/> + </xs:complexType> + </xs:element> + <!-- see the children of entitymodel section for description, etc. --> + <xs:attributeGroup name="attlist.view-entity"> + <xs:attribute type="xs:string" name="entity-name" use="required"/> + <xs:attribute type="xs:string" name="package-name" use="required"/> + <xs:attribute type="xs:string" name="dependent-on"/> + <xs:attribute type="xs:string" name="default-resource-name"/> + <xs:attribute name="never-cache" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="auto-clear-cache" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="title"/> + <xs:attribute type="xs:string" name="copyright"/> + <xs:attribute type="xs:string" name="author"/> + <xs:attribute type="xs:string" name="version"/> + </xs:attributeGroup> + <xs:element name="member-entity"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.member-entity"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.member-entity"> + <xs:attribute type="xs:string" name="entity-alias" use="required"/> + <xs:attribute type="xs:string" name="entity-name" use="required"/> + </xs:attributeGroup> + <xs:element name="alias-all"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="exclude"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.alias-all"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.alias-all"> + <xs:attribute type="xs:string" name="entity-alias" use="required"/> + <xs:attribute type="xs:string" name="prefix"/> + </xs:attributeGroup> + <xs:element name="exclude"> + <xs:complexType> + <xs:attributeGroup ref="attlist.exclude"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.exclude"> + <xs:attribute type="xs:string" name="field" use="required"/> + </xs:attributeGroup> + <xs:element name="alias"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element minOccurs="0" ref="complex-alias"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.alias"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.alias"> + <xs:attribute type="xs:string" name="entity-alias" use="required"/> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="field"/> + <xs:attribute type="xs:string" name="col-alias"/> + <xs:attribute type="xs:string" name="prim-key"/> + <xs:attribute name="group-by" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="function"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="min"/> + <xs:enumeration value="max"/> + <xs:enumeration value="sum"/> + <xs:enumeration value="avg"/> + <xs:enumeration value="count"/> + <xs:enumeration value="count-distinct"/> + <xs:enumeration value="upper"/> + <xs:enumeration value="lower"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="complex-alias"> + <xs:complexType> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <xs:element ref="complex-alias"/> + <xs:element ref="complex-alias-field"/> + </xs:choice> + <xs:attributeGroup ref="attlist.complex-alias"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.complex-alias"> + <xs:attribute type="xs:string" name="operator" use="required"/> + </xs:attributeGroup> + <xs:element name="complex-alias-field"> + <xs:complexType> + <xs:attributeGroup ref="attlist.complex-alias-field"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.complex-alias-field"> + <xs:attribute type="xs:string" name="entity-alias" use="required"/> + <xs:attribute type="xs:string" name="field" use="required"/> + <xs:attribute name="function"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="min"/> + <xs:enumeration value="max"/> + <xs:enumeration value="sum"/> + <xs:enumeration value="avg"/> + <xs:enumeration value="count"/> + <xs:enumeration value="count-distinct"/> + <xs:enumeration value="upper"/> + <xs:enumeration value="lower"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="view-link"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" ref="description"/> + <xs:element maxOccurs="unbounded" ref="key-map"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.view-link"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.view-link"> + <xs:attribute type="xs:string" name="entity-alias" use="required"/> + <xs:attribute type="xs:string" name="rel-entity-alias" use="required"/> + <xs:attribute name="rel-optional" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/entitymodel.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/entitymodel.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/entitymodel.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/fieldtypemodel.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/fieldtypemodel.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/fieldtypemodel.xsd (added) +++ incubator/ofbiz/site/dtds/fieldtypemodel.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2001-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + *This is the DTD for the Open For Business Generic Entity Model field type definition XML file. +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <!-- ====================== Root Element ======================= --> + <xs:element name="fieldtypemodel"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="field-type-def"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <!-- ================= Children of fieldtypemodel =================== --> + <xs:element name="field-type-def"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="validate"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.field-type-def"/> + </xs:complexType> + </xs:element> + <!-- ================= Children of field-type-def =================== --> + <xs:attributeGroup name="attlist.field-type-def"> + <xs:attribute type="xs:string" name="type" use="required"/> + <xs:attribute type="xs:string" name="sql-type" use="required"/> + <xs:attribute type="xs:string" name="sql-type-alias"/> + <xs:attribute type="xs:string" name="java-type" use="required"/> + </xs:attributeGroup> + <xs:element name="validate"> + <xs:complexType> + <xs:attributeGroup ref="attlist.validate"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.validate"> + <xs:attribute type="xs:string" name="method" use="required"/> + <xs:attribute type="xs:string" name="class" default="org.ofbiz.base.util.UtilValidate"/> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/fieldtypemodel.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/fieldtypemodel.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/fieldtypemodel.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/jndi-config.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/jndi-config.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/jndi-config.xsd (added) +++ incubator/ofbiz/site/dtds/jndi-config.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2002-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + *This is the DTD for the Open For Business JNDI configuration XML file. +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="jndi-config"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="jndi-server"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="jndi-server"> + <xs:complexType> + <xs:attributeGroup ref="attlist.jndi-server"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.jndi-server"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="context-provider-url"/> + <xs:attribute type="xs:string" name="initial-context-factory"/> + <xs:attribute type="xs:string" name="url-pkg-prefixes"/> + <xs:attribute type="xs:string" name="security-principal"/> + <xs:attribute type="xs:string" name="security-credentials"/> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/jndi-config.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/jndi-config.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/jndi-config.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/ofbiz-component.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/ofbiz-component.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/ofbiz-component.xsd (added) +++ incubator/ofbiz/site/dtds/ofbiz-component.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,198 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2003-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * $Id: ofbiz-component.xsd 7551 2006-05-10 00:08:10Z jonesde $ +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="ofbiz-component"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="depends-on"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="resource-loader"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="classpath"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="entity-resource"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="service-resource"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="test-suite"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="webapp"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.ofbiz-component"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.ofbiz-component"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="enabled" use="optional" default="true"/> + </xs:attributeGroup> + <xs:element name="depends-on"> + <xs:complexType> + <xs:attributeGroup ref="attlist.depends-on"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.depends-on"> + <xs:attribute type="xs:string" name="component-name" use="required"/> + </xs:attributeGroup> + <xs:element name="resource-loader"> + <xs:complexType> + <xs:attributeGroup ref="attlist.resource-loader"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.resource-loader"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute name="type" default="component"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="component"/> + <xs:enumeration value="file"/> + <xs:enumeration value="classpath"/> + <xs:enumeration value="url"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="prepend-env"/> + <xs:attribute type="xs:string" name="prefix"/> + </xs:attributeGroup> + <xs:element name="classpath"> + <xs:complexType> + <xs:attributeGroup ref="attlist.classpath"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.classpath"> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="jar"/> + <xs:enumeration value="dir"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="entity-resource"> + <xs:complexType> + <xs:attributeGroup ref="attlist.entity-resource"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.entity-resource"> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="model"/> + <xs:enumeration value="group"/> + <xs:enumeration value="eca"/> + <xs:enumeration value="data"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="reader-name" use="required"/> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="service-resource"> + <xs:complexType> + <xs:attributeGroup ref="attlist.service-resource"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.service-resource"> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="model"/> + <xs:enumeration value="group"/> + <xs:enumeration value="eca"/> + <xs:enumeration value="mca"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="test-suite"> + <xs:complexType> + <xs:attributeGroup ref="attlist.test-suite"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.test-suite"> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="webapp"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="virtual-host"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="init-param"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.webapp"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.webapp"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="title"/> + <xs:attribute type="xs:string" name="server" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + <xs:attribute type="xs:string" name="mount-point"/> + <xs:attribute type="xs:string" name="base-permission"/> + <xs:attribute name="app-bar-display" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="virtual-host"> + <xs:complexType> + <xs:attributeGroup ref="attlist.virtual-host"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.virtual-host"> + <xs:attribute type="xs:string" name="host-name" use="required"/> + </xs:attributeGroup> + <xs:element name="init-param"> + <xs:complexType> + <xs:attributeGroup ref="attlist.init-param"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.init-param"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="value" use="required"/> + </xs:attributeGroup> +</xs:schema> +<!-- + <ofbiz-component name="core"> + <resource-loader name="maincomponent" type="component"/> + <resource-loader name="mainfile" type="file" prepend-env="ofbiz.home" prefix=""/> + <resource-loader name="maincp" type="classpath"/> + <resource-loader name="mainurl" type="url"/> + + <classpath type="jar" location="lib/product.jar"/> + <classpath type="dir" location="classes"/> + + <entity-resource type="model" reader-name="main" loader="maincomponent" location="entity/entitymodel.xml"/> + <entity-resource type="group" reader-name="main" loader="maincomponent" location="entity/entitygroup.xml"/> + <entity-resource type="eca" reader-name="main" loader="maincomponent" location="entity/eecas.xml"/> + + <service-resource type="model" loader="maincomponent" location="service/services_test.xml"/> + <service-resource type="group" loader="maincomponent" location="service/groups_test.xml"/> + <service-resource type="eca" loader="maincomponent" location="service/secas_test.xml"/> + + <webapp name="webtools" title="WebTools" server="default" location="webtools" mount-point="/webtools"/> + </ofbiz-component> +--> Propchange: incubator/ofbiz/site/dtds/ofbiz-component.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/ofbiz-component.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/ofbiz-component.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/ofbiz-containers.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/ofbiz-containers.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/ofbiz-containers.xsd (added) +++ incubator/ofbiz/site/dtds/ofbiz-containers.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2003-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + * Dynamic OFBiz Containers Definition DTD + * $Id: ofbiz-containers.xsd 5462 2005-08-05 18:35:48Z jonesde $ +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="ofbiz-containers"> + <xs:complexType> + <xs:sequence> + <xs:element maxOccurs="unbounded" ref="container"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="container"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="property"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.container"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.container"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="class" use="required"/> + </xs:attributeGroup> + <xs:element name="property"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="property"/> + <xs:element minOccurs="0" ref="property-value"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.property"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.property"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="value"/> + </xs:attributeGroup> + <xs:element name="property-value" type="any"/> + <xs:complexType name="any" mixed="true"> + <xs:sequence> + <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> + </xs:sequence> + </xs:complexType> +</xs:schema> +<!-- + + Container properties are relative to the implementation class for details + of which properties are available see the docs on the class defined. + + Example: + + <ofbiz-containers> + <container name="jetty-container" class="org.ofbiz.base.container.JettyContainer"> + <property name="default-listener"> + <property name="type" value="default"/> + <property name="host" value="0.0.0.0"/> + <property name="port" value="8080"/> + <property name="min-threads" value="5"/> + <property name="max-threads" value="250"/> + <property name="max-idle-time" value="30000"/> + <property name="max-read-time" value="60000"/> + </property> + </container> + <container name="component-container" class="org.ofbiz.base.container.ComponentContainer"> + <property name="entity" value="${ofbiz.home}/framework/entity/component.xml"/> + <property name="service" value="${ofbiz.home}/framework/service/component.xml"/> + <property name="party" value="${ofbiz.home}/applications/party/component.xml"/> + </container> + </ofbiz-containers> + +--> Propchange: incubator/ofbiz/site/dtds/ofbiz-containers.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/ofbiz-containers.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/ofbiz-containers.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/regions.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/regions.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/regions.xsd (added) +++ incubator/ofbiz/site/dtds/regions.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2001-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Composite View - Region Definition DTD + * $Id: regions.xsd 5462 2005-08-05 18:35:48Z jonesde $ +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="regions"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="define"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="define"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="put"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.define"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.define"> + <xs:attribute name="id" use="required"/> + <xs:attribute name="template"/> + <xs:attribute name="region"/> + </xs:attributeGroup> + <!-- + NOTE: type can be direct (for direct inline content), region (for a nested region), + default (for JSP/Servlet resource), or any ViewHandler defined in the corresponding controller.xml file + --> + <xs:element name="put"> + <xs:complexType mixed="true"> + <xs:attributeGroup ref="attlist.put"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.put"> + <xs:attribute name="section" use="required"/> + <xs:attribute name="info"/> + <xs:attribute name="role"/> + <xs:attribute name="permission"/> + <xs:attribute name="action"/> + <xs:attribute name="content"/> + <xs:attribute name="type" default="default"/> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/regions.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/regions.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/regions.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/security-config.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/security-config.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/security-config.xsd (added) +++ incubator/ofbiz/site/dtds/security-config.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2002-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + * This is the DTD for the Open For Business Security configuration XML file. +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="security-config"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="security"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="security"> + <xs:complexType> + <xs:attributeGroup ref="attlist.security"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.security"> + <xs:attribute name="name" use="required"/> + <xs:attribute name="class"/> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/security-config.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/security-config.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/security-config.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/service-config.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/service-config.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/service-config.xsd (added) +++ incubator/ofbiz/site/dtds/service-config.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,206 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2001-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + *This is the DTD for the Open For Business Service Engine configuration XML file. +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <!-- ====================== Root Element ======================= --> + <xs:element name="service-config"> + <xs:complexType> + <xs:sequence> + <xs:element ref="authorization"/> + <xs:element ref="thread-pool"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="engine"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="service-location"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="startup-service"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="resource-loader"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="global-services"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="service-groups"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="service-ecas"/> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="jms-service"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="authorization"> + <xs:complexType> + <xs:attributeGroup ref="attlist.authorization"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.authorization"> + <xs:attribute type="xs:string" name="service-name" use="required"/> + </xs:attributeGroup> + <xs:element name="thread-pool"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" maxOccurs="unbounded" ref="run-from-pool"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.thread-pool"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.thread-pool"> + <xs:attribute type="xs:string" name="send-to-pool" use="required"/> + <xs:attribute type="xs:nonNegativeInteger" name="purge-job-days" default="30"/> + <xs:attribute type="xs:nonNegativeInteger" name="failed-retry-min" default="30"/> + <xs:attribute type="xs:nonNegativeInteger" name="ttl" use="required"/> + <xs:attribute type="xs:nonNegativeInteger" name="wait-millis" use="required"/> + <xs:attribute type="xs:nonNegativeInteger" name="jobs" use="required"/> + <xs:attribute type="xs:nonNegativeInteger" name="min-threads" use="required"/> + <xs:attribute type="xs:nonNegativeInteger" name="max-threads" use="required"/> + <xs:attribute name="poll-enabled" default="true"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:nonNegativeInteger" name="poll-db-millis" use="required"/> + </xs:attributeGroup> + <xs:element name="run-from-pool"> + <xs:complexType> + <xs:attributeGroup ref="attlist.run-from-pool"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.run-from-pool"> + <xs:attribute type="xs:string" name="name" use="required"/> + </xs:attributeGroup> + <xs:element name="engine"> + <xs:complexType> + <xs:attributeGroup ref="attlist.engine"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.engine"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="class" use="required"/> + </xs:attributeGroup> + <xs:element name="startup-service"> + <xs:complexType> + <xs:attributeGroup ref="attlist.startup-service"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.startup-service"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="runtime-data-id"/> + <xs:attribute type="xs:nonNegativeInteger" name="runtime-delay" default="0"/> + <xs:attribute type="xs:string" name="run-in-pool"/> + </xs:attributeGroup> + <xs:element name="service-location"> + <xs:complexType> + <xs:attributeGroup ref="attlist.service-location"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.service-location"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="resource-loader"> + <xs:complexType> + <xs:attributeGroup ref="attlist.resource-loader"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.resource-loader"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute type="xs:string" name="class" use="required"/> + <xs:attribute type="xs:string" name="prepend-env"/> + <xs:attribute type="xs:string" name="prefix"/> + </xs:attributeGroup> + <xs:element name="global-services"> + <xs:complexType> + <xs:attributeGroup ref="attlist.global-services"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.global-services"> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="service-groups"> + <xs:complexType> + <xs:attributeGroup ref="attlist.service-groups"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.service-groups"> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="service-ecas"> + <xs:complexType> + <xs:attributeGroup ref="attlist.service-ecas"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.service-ecas"> + <xs:attribute type="xs:string" name="loader" use="required"/> + <xs:attribute type="xs:string" name="location" use="required"/> + </xs:attributeGroup> + <xs:element name="jms-service"> + <xs:complexType> + <xs:sequence> + <xs:element maxOccurs="unbounded" ref="server"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.jms-service"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.jms-service"> + <xs:attribute type="xs:string" name="name" use="required"/> + <xs:attribute name="send-mode" default="none"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="none"/> + <xs:enumeration value="all"/> + <xs:enumeration value="first-available"/> + <xs:enumeration value="random"/> + <xs:enumeration value="round-robin"/> + <xs:enumeration value="least-load"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + </xs:attributeGroup> + <xs:element name="server"> + <xs:complexType> + <xs:attributeGroup ref="attlist.server"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.server"> + <xs:attribute type="xs:string" name="jndi-server-name" use="required"/> + <xs:attribute type="xs:string" name="jndi-name" use="required"/> + <xs:attribute type="xs:string" name="topic-queue" use="required"/> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="topic"/> + <xs:enumeration value="queue"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="username"/> + <xs:attribute type="xs:string" name="password"/> + <xs:attribute type="xs:string" name="client-id"/> + <xs:attribute name="listen" default="false"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="true"/> + <xs:enumeration value="false"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute type="xs:string" name="listener-class"/> + </xs:attributeGroup> +</xs:schema> Propchange: incubator/ofbiz/site/dtds/service-config.xsd ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ofbiz/site/dtds/service-config.xsd ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: incubator/ofbiz/site/dtds/service-config.xsd ------------------------------------------------------------------------------ svn:mime-type = text/xsd Added: incubator/ofbiz/site/dtds/service-eca.xsd URL: http://svn.apache.org/viewvc/incubator/ofbiz/site/dtds/service-eca.xsd?rev=418863&view=auto ============================================================================== --- incubator/ofbiz/site/dtds/service-eca.xsd (added) +++ incubator/ofbiz/site/dtds/service-eca.xsd Mon Jul 3 14:59:19 2006 @@ -0,0 +1,234 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2002-2004 The Open For Business Project - www.ofbiz.org + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + * Service Framework - Service ECA Definition DTD + * $Id: service-eca.xsd 7775 2006-06-12 21:17:47Z jonesde $ +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> + <xs:element name="service-eca"> + <xs:complexType> + <xs:sequence> + <xs:element maxOccurs="unbounded" ref="eca"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="eca"> + <xs:complexType> + <xs:sequence> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <xs:element ref="condition"/> + <xs:element ref="condition-field"/> + <xs:element ref="condition-service"/> + </xs:choice> + <xs:element maxOccurs="unbounded" ref="action"/> + </xs:sequence> + <xs:attributeGroup ref="attlist.eca"/> + </xs:complexType> + </xs:element> + <xs:attributeGroup name="attlist.eca"> + <xs:attribute type="xs:string" name="service" use="required"/> + <xs:attribute name="event" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="global-commit"/> + <xs:enumeration value="global-rollback"/> + <xs:enumeration value="auth"/> + <xs:enumeration value="in-validate"/> + <xs:enumeration value="out-validate"/> + |
Free forum by Nabble | Edit this page |