Skip to Content.
Sympa Menu

notify-dpml - r1166 - in trunk/main: . lang lang/library lang/library/etc lang/part lang/part/etc

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1166 - in trunk/main: . lang lang/library lang/library/etc lang/part lang/part/etc
  • Date: Sun, 5 Mar 2006 12:46:37 +0100

Author: mcconnell
Date: 2006-03-05 12:46:36 +0100 (Sun, 05 Mar 2006)
New Revision: 1166

Added:
trunk/main/lang/
trunk/main/lang/library/
trunk/main/lang/library/etc/
trunk/main/lang/library/etc/library.xsd
trunk/main/lang/module.xml
trunk/main/lang/part/
trunk/main/lang/part/build.xml
trunk/main/lang/part/etc/
trunk/main/lang/part/etc/part.xsd
Log:
add schema definitions to trunk

Added: trunk/main/lang/library/etc/library.xsd
===================================================================
--- trunk/main/lang/library/etc/library.xsd 2006-03-03 20:33:07 UTC (rev
1165)
+++ trunk/main/lang/library/etc/library.xsd 2006-03-05 11:46:36 UTC (rev
1166)
@@ -0,0 +1,138 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:depot="@PROJECT-XSD-URI@"
+ targetNamespace="@PROJECT-XSD-URI@"
+ elementFormDefault="qualified">
+
+ <element name="library" type="depot:LibraryType"/>
+
+ <complexType name="LibraryType">
+ <sequence>
+ <element name="imports" type="depot:ImportsType" minOccurs="0"
maxOccurs="1"/>
+ <element name="properties" type="depot:PropertiesType" minOccurs="0"
maxOccurs="1"/>
+ <element name="modules" type="depot:ModulesType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ImportsType">
+ <sequence>
+ <element name="import" type="depot:ImportType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="PropertiesType">
+ <sequence>
+ <element name="property" type="depot:PropertyType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ModulesType">
+ <sequence>
+ <element name="module" type=depot:"ModuleType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ImportType">
+ <simpleContent>
+ <extension base="anyURI"/>
+ </simpleContent>
+ </complexType>
+
+ <complexType name="PropertyType">
+ <attribute name="name" type="string"/>
+ <attribute name="value" type="string"/>
+ </complexType>
+
+ <complexType name="ResourceType">
+ <sequence>
+ <element name="properties" type="depot:PropertiesType" minOccurs="0"
maxOccurs="1"/>
+ <element name="types" type="depot:TypesType" minOccurs="0"
maxOccurs="1"/>
+ <element name="dependencies" type="depot:DependenciesType"
minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ <attribute name="name" type="string"/>
+ <attribute name="version" type="string"/>
+ </complexType>
+
+ <complexType name="ProjectType">
+ <complexContent>
+ <extension base="depot:ResourceType">
+ <attribute name="basedir" type="string"/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="ModuleType">
+ <complexContent>
+ <extension base="depot:ProjectType">
+ <choice maxOccurs="unbounded">
+ <element name="module" type="depot:ModuleType"/>
+ <element name="project" type="depot:ProjectType"/>
+ <element name="resource" type="depot:ResourceType"/>
+ </choice>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="TypesType">
+ <sequence>
+ <any minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="GenericType">
+ <sequence>
+ <element name="property" type="depot:PropertyType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="id" type="string"/>
+ <attribute name="alias" type="boolean" default="false"/>
+ </complexType>
+
+ <complexType name="DependenciesType">
+ <sequence>
+ <element name="build" type="depot:DependencyType" minOccurs="0"
maxOccurs="1"/>
+ <element name="runtime" type="depot:RuntimeDependencyType"
minOccurs="0" maxOccurs="1"/>
+ <element name="test" type="depot:DependencyType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="DependencyType">
+ <sequence>
+ <element name="include" type="depot:IncludeType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="RuntimeDependencyType">
+ <sequence>
+ <element name="include" type="depot:RuntimeIncludeType"
minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+
+ <complexType name="IncludeType">
+ <sequence>
+ <element name="properties" type="depot:PropertiesType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="key" type="string"/>
+ <attribute name="ref" type="string"/>
+ <attribute name="urn" type="string"/>
+ </complexType>
+
+ <complexType name="RuntimeIncludeType">
+ <complexContent>
+ <extension base="depot:IncludeType">
+ <attribute name="tag" type="string"/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <!--
+ <types>
+ <type id="part" alias="true">
+ <component name="fred" type="Widget"/>
+ </type>
+ </types>
+ -->
+
+</schema>
+

Added: trunk/main/lang/module.xml
===================================================================
--- trunk/main/lang/module.xml 2006-03-03 20:33:07 UTC (rev 1165)
+++ trunk/main/lang/module.xml 2006-03-05 11:46:36 UTC (rev 1166)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE module PUBLIC "-//DPML//DTD Library 1.0//EN"
"http://download.dpml.net/dtds/library_1_0.dtd"; >
+
+<module name="lang">
+
+ <resource name="dpml-part" basedir="part">
+ <types>
+ <type id="xsd"/>
+ </types>
+ </resource>
+
+</module>

Added: trunk/main/lang/part/build.xml
===================================================================
--- trunk/main/lang/part/build.xml 2006-03-03 20:33:07 UTC (rev 1165)
+++ trunk/main/lang/part/build.xml 2006-03-05 11:46:36 UTC (rev 1166)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2004-2005 Stephen J McConnell
+ Copyright 2004 Niclas Hedhman
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied.
+
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project name="dpml-part" default="install" basedir=".">
+
+ <property name="project.group" value="dpml/lang"/>
+ <property name="project.name" value="dpml-part"/>
+ <property file="${basedir}/build.properties"/>
+ <property name="home" value="../.."/>
+ <import file="${home}/bootstrap.xml"/>
+
+ <target name="init" depends="bootstrap.init">
+ <filter token="PROJECT-XSD-URI"
value="artifact:xsd:${project.group}/${project.name}#${project.version}"/>
+ </target>
+
+ <target name="package" depends="bootstrap.package">
+ <property name="targetDir" location="${target.deliverables.dir}/xsds"/>
+ <mkdir dir="${targetDir}"/>
+ <property name="filename"
value="${project.name}-${project.version}.xsd"/>
+ <copy toFile="${targetDir}/${filename}" preservelastmodified="true"
overwrite="true"
+ file="${target.dir}/part.xsd"/>
+ </target>
+
+</project>

Added: trunk/main/lang/part/etc/part.xsd
===================================================================
--- trunk/main/lang/part/etc/part.xsd 2006-03-03 20:33:07 UTC (rev 1165)
+++ trunk/main/lang/part/etc/part.xsd 2006-03-05 11:46:36 UTC (rev 1166)
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:part="@PROJECT-XSD-URI@"
+ targetNamespace="@PROJECT-XSD-URI@"
+ elementFormDefault="qualified">
+
+ <element name="part" type="part:PartType"/>
+
+ <complexType name="PartType">
+ <sequence>
+ <element name="info" type="part:InfoType" minOccurs="0"
maxOccurs="1"/>
+ <element name="strategy" type="part:StrategyType" minOccurs="1"
maxOccurs="1"/>
+ <element name="classpath" type="part:ClassPathType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="StrategyType" abstract="true"/>
+
+ <complexType name="plugin">
+ <complexContent>
+ <extension base="part:StrategyType">
+ <sequence>
+ <element name="param" type="part:ValueType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="class" type="string"/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="resource">
+ <complexContent>
+ <extension base="part:StrategyType">
+ <sequence>
+ <element name="urn" type="part:URNType"/>
+ <element name="path" type="string"/>
+ </sequence>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="ClassPathType">
+ <sequence>
+ <element name="system" type="part:ClassLoaderType" minOccurs="0"
maxOccurs="1"/>
+ <element name="public" type="part:ClassLoaderType" minOccurs="0"
maxOccurs="1"/>
+ <element name="protected" type="part:ClassLoaderType" minOccurs="0"
maxOccurs="1"/>
+ <element name="private" type="part:ClassLoaderType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ClassLoaderType">
+ <sequence>
+ <element name="uri" type="part:URIType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="InfoType">
+ <sequence>
+ <element name="description" type="string" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="title" type="string"/>
+ </complexType>
+
+ <complexType name="URIType">
+ <simpleContent>
+ <extension base="anyURI"/>
+ </simpleContent>
+ </complexType>
+
+ <complexType name="URNType">
+ <simpleContent>
+ <extension base="anyURI"/>
+ </simpleContent>
+ </complexType>
+
+ <complexType name="ValueType">
+ <sequence>
+ <element name="param" type="part:ValueType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="class" type="string"/>
+ <attribute name="value" type="string"/>
+ <attribute name="method" type="string"/>
+ </complexType>
+
+</schema>
+




  • r1166 - in trunk/main: . lang lang/library lang/library/etc lang/part lang/part/etc, mcconnell at BerliOS, 03/05/2006

Archive powered by MHonArc 2.6.24.

Top of Page