sebb 2005/04/10 14:22:27
Added: bin/testfiles XMLSchematest.xml XMLSchema-fail.xsd
XMLSchema-pass.xsd
Log:
Test files for XML Schema Assertion
Revision Changes Path
1.1 jakarta-jmeter/bin/testfiles/XMLSchematest.xml
Index: XMLSchematest.xml
===================================================================
<recipe name="Black Pepper Shrimp" description="Black Pepper shrimp dishes is
very tasty.">
<ingredients>
<ingredient index="1" amount="3 pounds"
description="fresh shrimp, unpeeled" />
<ingredient index="2" amount="8 tablespoons"
description="butter" />
<ingredient index="3" amount="4 tablespoons"
description="freshly ground pepper" />
</ingredients>
<steps>
<step index="1"
description="Wash and drain shrimp, and place
in a shallow baking pan." />
<step index="1"
description="In a saucepan, melt the butter,
add the garlic, and saute for 3 to 4 minutes." />
<step index="1"
description="Pour the butter mixture over the
shrimp and toss to coat." />
<step index="1"
description="Bake until pink, approximately 5
minutes, turn, bake a few minutes longer, and pepper again." />
</steps>
</recipe>
1.1 jakarta-jmeter/bin/testfiles/XMLSchema-fail.xsd
Index: XMLSchema-fail.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="recipe" type="RecipeType"/>
<xsd:complexType name="RecipeType">
<xsd:sequence>
<xsd:element name="steps" type="StepsType" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="description" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="IngredientsType">
<xsd:sequence>
<xsd:element name="ingredient" type="IngredientType"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StepsType">
<xsd:sequence>
<xsd:element name="step" type="StepType"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="IngredientType">
<xsd:attribute name="index" type="xsd:positiveInteger"/>
<xsd:attribute name="description" type="xsd:string"/>
<xsd:attribute name="amount" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="StepType">
<xsd:attribute name="index" type="xsd:positiveInteger"/>
<xsd:attribute name="description" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
1.1 jakarta-jmeter/bin/testfiles/XMLSchema-pass.xsd
Index: XMLSchema-pass.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="recipe" type="RecipeType"/>
<xsd:complexType name="RecipeType">
<xsd:sequence>
<xsd:element name="ingredients" type="IngredientsType"/>
<xsd:element name="steps" type="StepsType" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="description" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="IngredientsType">
<xsd:sequence>
<xsd:element name="ingredient" type="IngredientType"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StepsType">
<xsd:sequence>
<xsd:element name="step" type="StepType"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="IngredientType">
<xsd:attribute name="index" type="xsd:positiveInteger"/>
<xsd:attribute name="description" type="xsd:string"/>
<xsd:attribute name="amount" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="StepType">
<xsd:attribute name="index" type="xsd:positiveInteger"/>
<xsd:attribute name="description" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]