<?xml version="1.0" encoding="UTF-8"?>

<!--                                                                            -->
<!-- Schema defining the additional element used for policy wide server         -->
<!-- This schema extends the OASIS DSS core schema.                             -->
<!--                                                                            -->
<!-- version : wd-01, 19 January. 2005                                          -->
<!-- author  : Paul Madsen, NTT                                                 -->
<!--                                                                            -->

<xs:schema targetNamespace="urn:oasis:names:tc:dss:1.0:profiles:policywiseserver:1.0"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:pws="urn:oasis:names:tc:dss:1.0:profiles:policywiseserver:1.0"
	     xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

	<xs:import 
		namespace="urn:oasis:names:tc:dss:1.0:core:schema"
		schemaLocation="oasis-dss-1.0-core-schema-cd-02.xsd"/>

	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd"/>

	<!-- Additional Optional Input required for Policy Wise Server -->
	<!--
	This profile introduces a new <SignedInput> element within <OptionalInputs>. The <SignedInput> element will carry signed policy statements for signing requests. 
If present, the <SignedInput> element MUST contain one or more <ds:Signature> elements that envelop the policy statements.
	-->

	<xs:element name="SignedInput">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ds:Signature" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

</xs:schema>

