Files
aws/workspace/validation/B.xsd
Pascal Obry c524ff429c Add XML/SOAP/xsd validation scripts.
TN eng/toolchain/aws#101
2025-10-21 18:18:18 +02:00

26 lines
874 B
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://exemple.com/B"
xmlns:b="http://exemple.com/B"
xmlns:a="http://exemple.com/A"
xmlns:c="http://exemple.com/C">
<!-- Import du schéma A pour pouvoir utiliser ses éléments -->
<xs:import namespace="http://exemple.com/A"
schemaLocation="A.xsd"/>
<xs:import namespace="http://exemple.com/C"
schemaLocation="C.xsd"/>
<xs:element name="commande" type="b:commande"/>
<xs:complexType name="commande">
<xs:sequence>
<!-- Référence à lélément client du namespace A -->
<xs:element ref="a:client"/>
<xs:element name="value" type="xs:int"/>
<xs:element name="code" type="c:go"/>
</xs:sequence>
</xs:complexType>
</xs:schema>