Added reusability to why contract first
This commit is contained in:
@@ -206,6 +206,23 @@ public class Passenger {
|
||||
exactly what you want.
|
||||
</para>
|
||||
</section>
|
||||
<section>
|
||||
<title>Reusability</title>
|
||||
<para>
|
||||
Defining your schema in a separate file allows you to reuse that file in different scenario's. If you
|
||||
define an <type>AirportCode</type> in a file called <filename>airline.xsd</filename>, like so:
|
||||
</para>
|
||||
<programlisting><![CDATA[
|
||||
<simpleType name="AirportCode">
|
||||
<restriction base="string">
|
||||
<pattern value="[A-Z][A-Z][A-Z]"/>
|
||||
</restriction>
|
||||
</simpleType>]]></programlisting>
|
||||
<para>
|
||||
You can reuse this definition in other schema's, or even WSDL files, using an
|
||||
<literal>import</literal> statement.
|
||||
</para>
|
||||
</section>
|
||||
<section>
|
||||
<title>Versioning</title>
|
||||
<para>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
<item name="FAQ" href="faq.html"/>
|
||||
<item name="Upgrading" href="upgrading.html"/>
|
||||
<item name="Tutorial" href="reference/html/tutorial.html"/>
|
||||
<item name="Why Contract First?" href="reference/html/why-contract-first.html"/>
|
||||
<item name="Resources & Tools" href="resources.html"/>
|
||||
</menu>
|
||||
<menu name="Support">
|
||||
|
||||
Reference in New Issue
Block a user