Skip to Content.
Sympa Menu

notify-dpml - r1415 - in trunk/main/lang: . process process/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: r1415 - in trunk/main/lang: . process process/etc
  • Date: Thu, 27 Apr 2006 20:05:22 +0200

Author: mcconnell
Date: 2006-04-27 20:05:19 +0200 (Thu, 27 Apr 2006)
New Revision: 1415

Added:
trunk/main/lang/process/
trunk/main/lang/process/build.xml
trunk/main/lang/process/etc/
trunk/main/lang/process/etc/process.xsd
Modified:
trunk/main/lang/module.xml
Log:
add process xsd definition

Modified: trunk/main/lang/module.xml
===================================================================
--- trunk/main/lang/module.xml 2006-04-27 17:59:05 UTC (rev 1414)
+++ trunk/main/lang/module.xml 2006-04-27 18:05:19 UTC (rev 1415)
@@ -10,6 +10,12 @@
</types>
</resource>

+ <resource name="dpml-process" version="1.0">
+ <types>
+ <type id="xsd"/>
+ </types>
+ </resource>
+
<resource name="dpml-part" version="1.0">
<types>
<type id="xsd"/>


Property changes on: trunk/main/lang/process
___________________________________________________________________
Name: svn:ignore
+ target


Added: trunk/main/lang/process/build.xml
===================================================================
--- trunk/main/lang/process/build.xml 2006-04-27 17:59:05 UTC (rev 1414)
+++ trunk/main/lang/process/build.xml 2006-04-27 18:05:19 UTC (rev 1415)
@@ -0,0 +1,44 @@
+<?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-process" default="install" basedir=".">
+
+ <property name="project.group" value="dpml/lang"/>
+ <property name="project.name" value="dpml-process"/>
+ <property name="resource.name" value="process"/>
+
+ <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}/${resource.name}.xsd"/>
+ <checksum fileext=".md5" file="${targetDir}/${filename}"/>
+ </target>
+
+</project>

Added: trunk/main/lang/process/etc/process.xsd
===================================================================
--- trunk/main/lang/process/etc/process.xsd 2006-04-27 17:59:05 UTC (rev
1414)
+++ trunk/main/lang/process/etc/process.xsd 2006-04-27 18:05:19 UTC (rev
1415)
@@ -0,0 +1,103 @@
+<?xml version="1.0"?>
+
+<schema xmlns="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:this="@PROJECT-XSD-URI@"
+ targetNamespace="@PROJECT-XSD-URI@"
+ elementFormDefault="qualified"
+ >
+
+ <element name="configuration" type="this:ConfigurationType"/>
+ <element name="process" type="this:ProcessType"/>
+ <element name="product" type="this:ProductType"/>
+
+ <element name="dir" type="this:DirectoryType"
substitutionGroup="this:product"/>
+ <element name="file" type="this:FileType"
substitutionGroup="this:product"/>
+
+ <!-- top-level configuration definitions -->
+
+ <complexType name="ConfigurationType">
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="this:product"/>
+ <element ref="this:process"/>
+ </choice>
+ </complexType>
+
+ <!-- product definitions -->
+
+ <complexType name="ProductType">
+ <sequence>
+ <element name="description" type="this:DescriptionType"
minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ <attribute name="name" type="string" use="required"/>
+ </complexType>
+
+ <complexType name="DescriptionType">
+ <simpleContent>
+ <extension base="string">
+ <attribute name="title" type="string"/>
+ </extension>
+ </simpleContent>
+ </complexType>
+
+ <complexType name="DirectoryType">
+ <complexContent>
+ <extension base="this:ProductType">
+ <attribute name="path" type="string" use="required"/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="FileType">
+ <complexContent>
+ <extension base="this:ProductType">
+ <sequence>
+ <element ref="CriteriaType" minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ <attribute name="type" type="string" use="required"/>
+ </extension>
+ </complexContent>
+ </complexType>
+
+ <complexType name="CriteriaType">
+ <complexContent>
+ <extension base="anyType"/>
+ </complexContent>
+ </complextType>
+
+ <!-- process definitions -->
+
+ <complexType name="ProcessType">
+ <sequence>
+ <element name="consumes" type="this:ConsumesType" minOccurs="0"
maxOccurs="1"/>
+ <element name="produces" type="this:ProducesType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="name" type="string" use="required"/>
+ <attribute name="class" type="string" use="required"/>
+ </complexType>
+
+ <complexType name="ConsumesType">
+ <sequence>
+ <element ref="this:product" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="policy" type="this:PolicyType"/>
+ </complexType>
+
+ <complexType name="ProducesType">
+ <sequence>
+ <element name="output" type="this:OutputType"/>
+ </sequence>
+ <attribute name="policy" type="this:PolicyType"/>
+ </complexType>
+
+ <complexType name="InputType">
+ <attribute name="id" type="string"/>
+ <attribute name="policy" type="this:PolicyType"/>
+ </complexType>
+
+ <complexType name="OutputType">
+ <attribute name="id" type="string"/>
+ </complexType>
+
+</schema>
+




  • r1415 - in trunk/main/lang: . process process/etc, mcconnell at BerliOS, 04/27/2006

Archive powered by MHonArc 2.6.24.

Top of Page