Is this possible to write xsds for the following xml:
<list add:type="single" view:type="multi"/>
where add and view point to different schemas? I will then use schema name to filter required attribute value.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will use three schema documents to do this.
Basically, any time you want elements or attributes from other namespaces, you have another schema document with a targetNamespace of that namespace. There, the elements or attributes for that namespace are declared globally. Then, when you wish to use these attributes or elements in some other schema document you 1) import the namespace (xs:import) 2) declare a ns prefix for the namespace and 3) use ref=”nsprefix:attr_or_elem_name” to refer to the attribute or element.