I can't seem to validate content (It says the .xsd file does not exist). Here is some test code:
let $xsd := <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="root"> <xs:complexType mixed="false"> <xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:element name="leaf">xs:complexType<xs:attribute name="value" type="xs:string"></xs:attribute></xs:complexType></xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
let $xml := <root><leaf value="test"></leaf></root>
let $xsd-path := 'xsd-test.xsd' let $xsd-file := file:write($xsd-path, $xsd)
return validate:xsd-info($xml, $xsd-path)