<?xml version="1.0" encoding="UTF-8"?>
<!--
The GGF takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the GGF Secretariat.

The GGF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to practice this recommendation. Please address the information to the GGF Executive Director.

Copyright (C) Global Grid Forum (2003-2005). All Rights Reserved.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the GGF or other organizations, except as needed for the purpose of developing Grid Recommendations in which case the procedures for copyrights defined in the GGF Document process must be followed, or as required to translate it into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by the GGF or its successors or assigns.
This document and the information contained herein is provided on an "AS IS" basis and THE GLOBAL GRID FORUM DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE."

-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl" xmlns:hpcs2008-soa="http://schemas.microsoft.com/HPCS2008/hpcbp/soa" xmlns:jsdl-hpcpa="http://schemas.ggf.org/jsdl/2006/07/jsdl-hpcpa" targetNamespace="http://schemas.ggf.org/jsdl/2005/11/jsdl" elementFormDefault="qualified">
	<xsd:import namespace="http://schemas.microsoft.com/HPCS2008/hpcbp/soa" schemaLocation="./hpcs2008-soa.xsd" />
	<xsd:import namespace="http://schemas.ggf.org/jsdl/2006/07/jsdl-hpcpa" schemaLocation="./hpc-profile-application.xsd" />
	<!--========================================================================-->
	<!-- SIMPLE TYPES -->
	<xsd:simpleType name="ProcessorArchitectureEnumeration">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="sparc"/>
			<xsd:enumeration value="powerpc"/>
			<xsd:enumeration value="x86"/>
			<xsd:enumeration value="x86_32"/>
			<xsd:enumeration value="x86_64"/>
			<xsd:enumeration value="parisc"/>
			<xsd:enumeration value="mips"/>
			<xsd:enumeration value="ia64"/>
			<xsd:enumeration value="arm"/>
			<xsd:enumeration value="other"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!--========================================================================-->
	   <xsd:simpleType name="OperatingSystemTypeEnumeration">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="Unknown"/>
			<xsd:enumeration value="MACOS"/>
			<xsd:enumeration value="ATTUNIX"/>
			<xsd:enumeration value="DGUX"/>
			<xsd:enumeration value="DECNT"/>
			<xsd:enumeration value="Tru64_UNIX"/>
			<xsd:enumeration value="OpenVMS"/>
			<xsd:enumeration value="HPUX"/>
			<xsd:enumeration value="AIX"/>
			<xsd:enumeration value="MVS"/>
			<xsd:enumeration value="OS400"/>
			<xsd:enumeration value="OS_2"/>
			<xsd:enumeration value="JavaVM"/>
			<xsd:enumeration value="MSDOS"/>
			<xsd:enumeration value="WIN3x"/>
			<xsd:enumeration value="WIN95"/>
			<xsd:enumeration value="WIN98"/>
			<xsd:enumeration value="WINNT"/>
			<xsd:enumeration value="WINCE"/>
			<xsd:enumeration value="NCR3000"/>
			<xsd:enumeration value="NetWare"/>
			<xsd:enumeration value="OSF"/>
			<xsd:enumeration value="DC_OS"/>
			<xsd:enumeration value="Reliant_UNIX"/>
			<xsd:enumeration value="SCO_UnixWare"/>
			<xsd:enumeration value="SCO_OpenServer"/>
			<xsd:enumeration value="Sequent"/>
			<xsd:enumeration value="IRIX"/>
			<xsd:enumeration value="Solaris"/>
			<xsd:enumeration value="SunOS"/>
			<xsd:enumeration value="U6000"/>
			<xsd:enumeration value="ASERIES"/>
			<xsd:enumeration value="TandemNSK"/>
			<xsd:enumeration value="TandemNT"/>
			<xsd:enumeration value="BS2000"/>
			<xsd:enumeration value="LINUX"/>
			<xsd:enumeration value="Lynx"/>
			<xsd:enumeration value="XENIX"/>
			<xsd:enumeration value="VM"/>
			<xsd:enumeration value="Interactive_UNIX"/>
			<xsd:enumeration value="BSDUNIX"/>
			<xsd:enumeration value="FreeBSD"/>
			<xsd:enumeration value="NetBSD"/>
			<xsd:enumeration value="GNU_Hurd"/>
			<xsd:enumeration value="OS9"/>
			<xsd:enumeration value="MACH_Kernel"/>
			<xsd:enumeration value="Inferno"/>
			<xsd:enumeration value="QNX"/>
			<xsd:enumeration value="EPOC"/>
			<xsd:enumeration value="IxWorks"/>
			<xsd:enumeration value="VxWorks"/>
			<xsd:enumeration value="MiNT"/>
			<xsd:enumeration value="BeOS"/>
			<xsd:enumeration value="HP_MPE"/>
			<xsd:enumeration value="NextStep"/>
			<xsd:enumeration value="PalmPilot"/>
			<xsd:enumeration value="Rhapsody"/>
			<xsd:enumeration value="Windows_2000"/>
			<xsd:enumeration value="Dedicated"/>
			<xsd:enumeration value="OS_390"/>
			<xsd:enumeration value="VSE"/>
			<xsd:enumeration value="TPF"/>
			<xsd:enumeration value="Windows_R_Me"/>
			<xsd:enumeration value="Caldera_Open_UNIX"/>
			<xsd:enumeration value="OpenBSD"/>
			<xsd:enumeration value="Not_Applicable"/>
			<xsd:enumeration value="Windows_XP"/>
			<xsd:enumeration value="z_OS"/>
			<xsd:enumeration value="other"/>
		</xsd:restriction>
	</xsd:simpleType>
	
	<!--========================================================================-->
	<xsd:simpleType name="FileSystemTypeEnumeration">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="swap"/>
			<xsd:enumeration value="temporary"/>
			<xsd:enumeration value="spool"/>
			<xsd:enumeration value="normal"/>
		</xsd:restriction>
	</xsd:simpleType>
	  
	<!--========================================================================-->
	
	<xsd:simpleType name="CreationFlagEnumeration">
		<xsd:restriction base="xsd:string">
			<xsd:enumeration value="overwrite"/>
			<xsd:enumeration value="append"/>
			<xsd:enumeration value="dontOverwrite"/>
		</xsd:restriction>
	</xsd:simpleType>
	
	<!--========================================================================-->
	<xsd:simpleType name="Description_Type">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<!--========================================================================-->
	<!-- COMPLEX TYPES: Definitions for the RangeValueType -->
	<xsd:complexType name="Boundary_Type">
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="exclusiveBound" type="xsd:boolean" use="optional"/>
				<xsd:anyAttribute namespace="##other" processContents="lax"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="Exact_Type">
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="epsilon" type="xsd:double" use="optional"/>
				<xsd:anyAttribute namespace="##other" processContents="lax"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:complexType name="Range_Type">
		<xsd:sequence>
			<xsd:element name="LowerBound" type="jsdl:Boundary_Type"/>
			<xsd:element name="UpperBound" type="jsdl:Boundary_Type"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<xsd:complexType name="RangeValue_Type">
		<xsd:sequence>
			<xsd:element name="UpperBoundedRange" type="jsdl:Boundary_Type" minOccurs="0"/>
			<xsd:element name="LowerBoundedRange" type="jsdl:Boundary_Type" minOccurs="0"/>
			<xsd:element name="Exact" type="jsdl:Exact_Type" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Range" type="jsdl:Range_Type" minOccurs="0" maxOccurs="unbounded"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--=====================================================================-->
	<xsd:complexType name="JobDefinition_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:JobDescription"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="id" type="xsd:ID" use="optional"/>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="JobDescription_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:JobIdentification" minOccurs="0"/>
			<xsd:element ref="jsdl:Application" minOccurs="0"/>
			<xsd:element ref="jsdl:Resources" minOccurs="0"/>
			<xsd:element ref="jsdl:DataStaging" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="JobIdentification_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:JobName" minOccurs="0"/>
			<xsd:element ref="jsdl:Description" minOccurs="0"/>
			<xsd:element ref="jsdl:JobAnnotation" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="jsdl:JobProject" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="Application_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:ApplicationName" minOccurs="0"/>
			<xsd:element ref="jsdl:ApplicationVersion" minOccurs="0"/>
			<xsd:element ref="jsdl:Description" minOccurs="0"/>
			<xsd:element ref="jsdl-hpcpa:HPCProfileApplication" minOccurs="0" />
			<xsd:element ref="hpcs2008-soa:HPCS2008SOAJob" minOccurs="0" />
			<!-- <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> -->
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<!-- COMPLEX TYPES : Resource related types -->
	<xsd:complexType name="Resources_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:CandidateHosts" minOccurs="0"/>
			<xsd:element ref="jsdl:FileSystem" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="jsdl:ExclusiveExecution" minOccurs="0"/>
			<xsd:element ref="jsdl:OperatingSystem" minOccurs="0"/>
			<xsd:element ref="jsdl:CPUArchitecture" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualCPUSpeed" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualCPUTime" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualCPUCount" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualNetworkBandwidth" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualPhysicalMemory" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualVirtualMemory" minOccurs="0"/>
			<xsd:element ref="jsdl:IndividualDiskSpace" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalCPUTime" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalCPUCount" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalPhysicalMemory" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalVirtualMemory" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalDiskSpace" minOccurs="0"/>
			<xsd:element ref="jsdl:TotalResourceCount" minOccurs="0"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="CandidateHosts_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:HostName" maxOccurs="unbounded"/>
      <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
  </xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="CPUArchitecture_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:CPUArchitectureName"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="FileSystem_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:FileSystemType" minOccurs="0"/>
			<xsd:element ref="jsdl:Description" minOccurs="0"/>
			<xsd:element ref="jsdl:MountPoint" minOccurs="0"/>
			<xsd:element ref="jsdl:DiskSpace" minOccurs="0"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="name" type="xsd:NCName" use="required"/>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="OperatingSystem_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:OperatingSystemType" minOccurs="0"/>
			<xsd:element ref="jsdl:OperatingSystemVersion" minOccurs="0"/>
			<xsd:element ref="jsdl:Description" minOccurs="0"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<xsd:complexType name="OperatingSystemType_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:OperatingSystemName"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<!-- Complex types: Data staging -->
	<xsd:complexType name="DataStaging_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:FileName"/>
			<xsd:element ref="jsdl:FilesystemName" minOccurs="0"/>
			<xsd:element ref="jsdl:CreationFlag"/>
			<xsd:element ref="jsdl:DeleteOnTermination" minOccurs="0"/>
			<xsd:element ref="jsdl:Source" minOccurs="0"/>
			<xsd:element ref="jsdl:Target" minOccurs="0"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="name" type="xsd:NCName" use="optional"/>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--========================================================================-->
	<xsd:complexType name="SourceTarget_Type">
		<xsd:sequence>
			<xsd:element ref="jsdl:URI" minOccurs="0"/>
			<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:anyAttribute namespace="##other" processContents="lax"/>
	</xsd:complexType>
	<!--=====================================================================-->
	<xsd:element name="JobDefinition" type="jsdl:JobDefinition_Type"/>
	<xsd:element name="JobDescription" type="jsdl:JobDescription_Type"/>
	<xsd:element name="JobIdentification" type="jsdl:JobIdentification_Type"/>
	<xsd:element name="JobName" type="xsd:string"/>
	<xsd:element name="Description" type="jsdl:Description_Type"/>
	<xsd:element name="JobAnnotation" type="xsd:string"/>
	<xsd:element name="JobProject" type="xsd:string"/>
	<xsd:element name="Application" type="jsdl:Application_Type"/>
	<xsd:element name="ApplicationName" type="xsd:string"/>
	<xsd:element name="ApplicationVersion" type="xsd:string"/>
	<xsd:element name="Resources" type="jsdl:Resources_Type"/>
	<xsd:element name="CandidateHosts" type="jsdl:CandidateHosts_Type"/>
	<xsd:element name="HostName" type="xsd:string"/>
	<xsd:element name="OperatingSystem" type="jsdl:OperatingSystem_Type"/>
	<xsd:element name="OperatingSystemType" type="jsdl:OperatingSystemType_Type"/>
	<xsd:element name="OperatingSystemVersion" type="xsd:string"/>
	<xsd:element name="OperatingSystemName" type="jsdl:OperatingSystemTypeEnumeration"/>
	<xsd:element name="ExclusiveExecution" type="xsd:boolean"/>
	<xsd:element name="CPUArchitecture" type="jsdl:CPUArchitecture_Type"/>
	<xsd:element name="CPUArchitectureName" type="jsdl:ProcessorArchitectureEnumeration"/>
	<xsd:element name="FileSystem" type="jsdl:FileSystem_Type"/>
	<xsd:element name="FileSystemType" type="jsdl:FileSystemTypeEnumeration"/>
	<xsd:element name="MountPoint" type="xsd:string"/>
	<xsd:element name="DiskSpace" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualCPUTime" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualCPUSpeed" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualCPUCount" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualPhysicalMemory" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualVirtualMemory" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualNetworkBandwidth" type="jsdl:RangeValue_Type"/>
	<xsd:element name="IndividualDiskSpace" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalCPUTime" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalCPUCount" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalPhysicalMemory" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalVirtualMemory" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalDiskSpace" type="jsdl:RangeValue_Type"/>
	<xsd:element name="TotalResourceCount" type="jsdl:RangeValue_Type"/>
	<xsd:element name="DataStaging" type="jsdl:DataStaging_Type"/>
	<xsd:element name="FileName" type="xsd:string"/>
	<xsd:element name="FilesystemName" type="xsd:NCName"/>
	<xsd:element name="CreationFlag" type="jsdl:CreationFlagEnumeration"/>
	<xsd:element name="DeleteOnTermination" type="xsd:boolean"/>
	<xsd:element name="Source" type="jsdl:SourceTarget_Type"/>
	<xsd:element name="Target" type="jsdl:SourceTarget_Type"/>
	<xsd:element name="URI" type="xsd:anyURI"/>
</xsd:schema>
