<fault name="genericFault" type="genericFault"> Any error. </fault>
</op>
+ <op name="NotifNew">
+ <input name="notifId" type="xsd:string"/>
+ <input name="conditions" type="queryConditions" list="yes"/>
+ <input name="flags" type="jobFlags" optional="yes"/>
+ <input name="addressOverride" type="xsd:string" optional="yes"/>
+ <input name="valid" type="xsd:dateTime" optional="yes"/>
+ <output name="valid" type="xsd:dateTime"/>
+ <fault name="genericFault" type="genericFault"/>
+ </op>
+
+
<!-- TODO: event queries -->
</operations>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsd:element name="{@name}" type="{$prefix}{@type}" minOccurs="1" maxOccurs="{$max}"/>
+ <xsl:variable name="min">
+ <xsl:choose>
+ <xsl:when test="@optional='yes'">0</xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsd:element name="{@name}" type="{$prefix}{@type}" minOccurs="{$min}" maxOccurs="{$max}"/>
</xsl:for-each>
</xsd:sequence>
</xsd:complexType>