XProc Unit Test: validxsd001

Inputs

None.

Pipeline

pipeline:

<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/2007/03/xproc">
<p:output port="result"/>

<p:validate-xml-schema>
  <p:input port="source">
    <p:inline> 
      <doc>
        <title>Title</title>
        <p>Some paragraph.</p>
      </doc>
    </p:inline>
  </p:input>
  <p:input port="schema">
    <p:inline> 
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
		 elementFormDefault="qualified">
        <xs:element name="doc">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" ref="title"/>
              <xs:element minOccurs="0" maxOccurs="unbounded" ref="p"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="title" type="xs:string"/>
        <xs:element name="p" type="xs:string"/>
      </xs:schema>
    </p:inline>
  </p:input>
</p:validate-xml-schema>

</p:pipeline>

Outputs

Port=result:

<doc>
        <title>Title</title>
        <p>Some paragraph.</p>
      </doc>