This wiki is a read-only archive. It was frozen on 3 October 2026 and is no longer edited.


Issue 001: semantics of "multiples" logical elements (prerequisite, predicate)

Description: The semantics of markup elements that have occurence 0..N or 1..N, should be made more explicit. How far should we go in specifying the semantics of:

o multiple Predicate elements

o multiple prerequisite elements

oProposal 1: For logical expressions (Predicate , prerequisite), the semantics is by default of a logical AND. However, in some cases some element(s) may be logical duplicates and differing only in their "expression language". In order to allow this, each element should be identified (e.g. attribute "name"), so that we know when two elements are just a rewording of each other (same name, but different expr lge).

Proposal 1b: Developing Proposal 1: looking back at the original markup discussion http://www.oasis-open.org/committees/document.php?document_id=28304&wg_abbrev=tag the structure proposed for a prerequisite could be

<prerequisite>
<prose lang='abc'>...</prose>
<prose lang='xyz'>....</prose>
<expression exprlang='XPath2'>...</expression>
</prerequisite>

where prose is multi-occurance and expression is single occurance.

An improvement might be to wrap multiple-occurance elements in a container (which may help to map the XML to classes, say).

Prerequisite could contain a subcomponent called something like 'prereqpart' which itself would be multiple occurance within the prerequisite. This way a prose part can be tied to a single expression part (for multilingual support when the expression only includes a single language, say) but there can still be multiple expressions, each with an independant expression languages, for just the one prerequisite component of a TA. Maybe almost the same structure would be used within the Predicate but it would be not contain the same multiple occurance subcomponent which is necessary for a prerequisite.

This would give us something like this:

<prerequisite>
 <prreqpart>
  <proselist>
   <prose lang='abc'>...</prose>
   <prose lang='xyz'>....</prose>
  </proselist>
  <expression exprlang='XPath2'>...</expression>
 </prreqpart>
 <prereqpart>
  <proselist>
   <prose lang='abc'>...</prose>
   <prose lang='xyz'>....</prose>
  </proselist>
  <expression exprlang='XPath2'>...</expression>
 </prreqpart>
</prerequisite>
...
<predicate>
 <proselist>
  <prose lang='abc'>...</prose>
  <prose lang='xyz'>....</prose>
 </proselist>
 <expression exprlang='XPath2'>...</expression>
</predicate>

Proposal 2: For logical expressions (i.e. in Predicate , Prerequisite), a single occurrence of the related TA part (Predicate , Prerequisite) is expected. Several occurrences of Prerequisite are tolerated however (but never necessary), with an implicit semantics of logical AND. The Predicate or Prerequisite may contain a prose element that describes its overall logic. This prose element can be duplicated in different languages, but all these prose siblings still describe the same thing. Some html mark-up may be used in the prose element:

<prerequisite id='xyz'>
  <prose lan='en'>
     <p> Description of the prerequisite: </p>
     <ul>
       <li>The expression '123' is verifying the length of the widget</li>
       <li>The expression '234' is verifying the weight.</li>
     </ul>
     <p>The general expression '456' is verifying that either '123' or '234' is satisfied.</p>    
  </prose>
  <prose lan='jp'>...</prose> 
  <expr name='e123' lan='XPath'>...</expr> 
  <expr name='e234' lan='XPath'>...</expr> 
  <expr name='primary' lan='XPath'>($e123 or $e234)</expr> 
</prerequisite>

Several <expr> elements may be found in such a TA part - e.g. as children of the <prerequisite> element above. The implicit semantics is a logical AND of all these expressions, which must all be of boolean nature. However, this semantics can be override as in the above example. In such a case, some of these expressions may be sub-expressions of others (and referred to by their attribute name.) The precise semantics of a sequence of expressions is out of scope of the mark-up definition, and belongs to profiles to be defined on top of this mark-up, as it involves rules on the content of these mark-up elements or attributes. In the above example, the expression named primary conveys all the logic of the prerequisite, and uses other expressions as its sub-expressions.

  <expr name='e345' lan='XPath' primary='true'>($e123 or $e234)</expr> 

but the downside is we need something like a Schemtron schema to say that only one of the 'expr' elements can have the 'primary' attribute set to 'true'. Therefore another way would be to have, in addition to the multi-occurance 'expr' element, a single-occurance element 'primary-expr'.

  <expr name='e123' lan='XPath'>...</expr> 
  <expr name='e234' lan='XPath'>...</expr> 
  <primary-expr name='e345' lan='XPath'>($e123 or $e234)</primary-expr> 

The upside of this is that the name is then free from being overridden so it can have a unique value which can be referenced perhaps in other TAs' prerequisites (if this is allowed).

</steve>

  <subexpr name='e123' lan='XPath'>...</subexpr> 
  <subexpr name='e234' lan='XPath'>...</subexpr> 
  <expr name='e345' lan='XPath'>($e123 or $e234)</expr> 

<set>
<setheader>
...
 <variables>
  <var name='e123' lan='XPath'>...</var> 
  <var name='e234' lan='XPath'>...</var> 
 </variables>
...
</setheader>
...
<ta>
...
<prerequisite>
...
  <expr lan='XPath'>($e123 or $e234)</expr> 
</prerequisite>
...
</ta>
...
</set>

<set>
<setheader>
...
 <variables>
  <var name='e123' lan='XPath'>...</var> 
 </variables>
...
</setheader>
...
<ta>
...
<prerequisite>
...
  <subexpr name='e234' lan='XPath'>...</subexpr> 
  <expr lan='XPath'>($e123 or $e234)</expr> 
</prerequisite>
...
</ta>
...
</set>

Proposal 3: (following suggestion from Stephen)

<testassertion>
<variables>
  <var name='e1' lge='XPath'>...</var> 
  <var name='e222' lge='XPath'>..$e1...</var> 
  <var name='e234' lge='XPath'>..$e1...$e222...</var> 
  <var name='e456' lge='XPath'>.....</var>
</variables>
...
<target>...</target>
...
<prerequisite>
  <prose>...</prose>
  <expr lge='XPath'>($e123 or $e234)</expr>  <!-- $e123 may be defined at TA set level -->
</prerequisite>
...
<predicate>
  <prose>...</prose>
  <expr lge='XPath'>$e222 and ($e456 or $e123) and ...</expr> 
</predicate>
...
</testassertion>

In the above, Prerequisite and Predicates are complex conditions that make use of variables holding some sub-expressions (in this case, XPath expressions). These variables are to be separately evaluated, prior to evaluating the main expression. This variable evaluation assumes some order is respected, as the subexpressions assigned to a var may refer to other vars.

Status:


Issue 002: semantics of "multiples" target elements

Description: some test assertions actually relate to more than one target, e.g. a "primary" target plus some related target(s). The prerequisite or the predicate or both, may be expressed over such a combination of targets.

Proposal 1: In a way similar to Proposal 1 in issue 001, introduce a simple markup, but that allows for a multi-expression target. Each subexpression is named (attribute @name) so that one can refer to the other.

<target>
<prose>...</prose>
<expression name="primary" exprlang='XPath2'>...</expression>
<expression name="my-cotarget1" exprlang='XPath2'>... (refer to the $primary target) ..</expression>
<expression name="my-cotarget2" exprlang='XPath2'>..(refer to $primary as well as to $my-cotarget1)...</expression>
</target>
<steve> See my comment above on use of name to denote primary. It adds a semantic complexity which is a bit weak for implementation interoperability and it ties the name up so it can't be used for a unique name for the primary target which might be used elsewhere. </steve>

The rationale for this naming, is that it helps compose these subexpressions in more various ways than just the implicit boolean AND. For example, when using XPath, a subexpression can be referred from another one using this name as variable ($name):

<target> 
<expr  name="author">/whoswho/arts[@section="literature"]/biographies/author</expr>
<expr  name="books">document(..mybooklist..)/book[@author = $author/name]</expr>
<expr  name="publishers">document(..publishing houses ..) /publishersdirectory/publisher[fn:index-of( fn:distinct-values("for $bk  in $books return $bk/@publisher"), @name) gt 0 ]</expr>
</target>

The above complex target is a combination of { author + books written + publishers }, and these expressions may refer to each other using their "names", in a way that can be defined by an XPath profile here out of scope of this specification, but relying on the markup schema (e.g. using this name as an XPath variable notation: $name):

  • "books" refers to "author" using the variable $author.
  • "publishers" refers to "books" using the variable $books.

All of this target expressions combination could be subject to a predicate, e.g. assessing the qualification of this author for competing for a "beginner" prize. E.g. The author is qualified if:

  • young author ($author/@age < 30)

  • published less than 3 books (count($books) <= 3)

  • excluding major publishers (a condition on $publishers)

Similar need to identify target sub-expressions (or "co-targets" in WS-I markup) made it possible to break-down the complexity of some Test Assertions. Example below from WS-I :

 <target>/wsil:testLog/wsil:messageLog/wsil:message[@type = 'response'][some $resp1 in . satisfies
        some $req1 in ./preceding::wsil:message[@type = 'request' and (@conversation = $resp1/@conversation or .//*:Header/wsa:MessageID = $resp1//wsa:RelatesTo)] satisfies (
        $req1/wsil:messageContents/*:Envelope[not(*:Body/wsmc:MakeConnection) and fn:starts-with(xsd:string(./*:Header/wsa:ReplyTo/wsa:Address), 'http://docs.oasis-open.org/ws-rx/wsmc/200702/anonymous?id=') ]        and
        //wsil:descriptionFile/wsdl:definitions/wsdl:binding[.//*[@style = 'rpc']]/wsdl:operation[wsdl:input and wsdl:output][@name =  fn:local-name-from-QName(node-name($req1//*:Body/*[1]))])
        ]
 </target>
 <cotarget name="myRequestMsg">/wsil:testLog/wsil:messageLog/wsil:message[@type = 'request' and (@conversation = $target/@conversation or .//*:Header/wsa:MessageID = $target//wsa:RelatesTo) and not (./wsil:messageContents/*:Envelope/*:Body/wsmc:MakeConnection )]
 </cotarget>
 <cotarget name="myOpBinding">//wsil:descriptionFile/wsdl:definitions/wsdl:binding[.//*[@style = 'rpc']]/wsdl:operation[wsdl:input and wsdl:output][@name =  fn:local-name-from-QName(node-name($myRequestMsg//*:Body/*[1]))]
 </cotarget>
</target>

note how each target (or cotarget) sub-expression refers to the previous ones using a variable notation:

  • cotarget "myRequestMsg" refers to the main target expression using $target var.
  • cotarget "myOpBinding" refers to the cotarget myRequestMsg using $myRequestMsg var.

Proposal 2: There are no multiple targets. There is still a single target, with possible related (or collateral) artifacts that will be identified using variables. These variables can be used in Prerequisite and Predicate expressions. The mark-up is then very close to the actual TA model as described in the guidelines. Each subexpression is named (attribute @name) so that one can refer to the other.

<testassertion>
<variables>
  <var name="myexpr1" lge='XPath2'>....($target).....</var>
  <var name="myexpr2" lge='XPath2'>....($target).....</var>
</variables>
...
<target>
  <prose>...</prose>
  <expr lge='XPath2'>...</expr>
</target>
...
<predicate>...($target)...($myexpr1)...($myexpr2)...</predicate>
...
</testassertion>

These variables contain an evaluable expression, not an actual value. Should we make that explicit using a @type attribute? Or is the @lge attribute content (here XPath) sufficient to indicate this?

Example: In the previous example the target is author, yet we need related artifacts books and publishers in order to express the predicate. The markup is listed below. Note how:

  • the books variable refers to the target object using $target,

  • the publishers variable refers to the books variable ($books)

<testassertion>
<variables>
  <var name="books" lge="XPath2">document('mybooklist')/book[@author = $author/name]</var>
  <var name="publishers" lge="XPath2">document('publishing_houses')/publishersdirectory/publisher[fn:index-of( fn:distinct-values("for $bk  in $books return $bk/@publisher"), @name) gt 0 ]</var>
</variables>

...
<target>
  <prose>any literary author</prose> 
  <expr name="author" lge="XPath2">/whoswho/arts[@section="literature"]/biographies/author</expr>
</target>
...
<predicate>...($target)...($myexpr1)...($myexpr2)...</predicate>
...

Status:


Issue 003: semantics of "multiples" TestAssertionParts

Description: The schema for TA set allows for multiple TestAssertionParts elements in a TA set header.

Proposal 1: close with no action (multiples TestAssertionParts was a mistake)

Status: closed


Issue 004: Normative sources element(s) need be revised

Description: The current schema for TA allows for multiple NormativeSource elements, given the requirement that there could be several normative statements addressed by the TA, or that the resulting addressed statement is a composition of several actual sources. However the question of "derived" source is not addressed: it could be that the TA is addressing a derived form of the original source(s) (see guideline CD1 section 3.5 ). How do we represent and distinguish this derived source from the sources it is derived from?

Proposal 1: Use a single NormativeSource element, that has possibly several SourceItem elements of different types but a single optional Interpretation element. The Interpretation element - if present - states how to interpret the combination of previous SourceItems elements, as this combination may not be obvious. ( the Prose element is a more general description, more like a comment.) When present, the Interpretation element is the actual statement addressed by the TA Predicate. If not present, it means that the conjunction of all SourceItems is straightforward enough to not require an interpretation statement.

The types of source items are:

  • Reference: content is pointing at some portion of the specification.

  • Text: content is the actual normative text (e.g. duplication of some portion of the specification)

  • Derived: content is itself a statement (text) derived from some portion of the specification, referred using an @reference attribute of same content type as the Reference source item. This is used for non-textual normative sources, e.g. a table. In such case, the element tells how to interpret this material. (to contrast with the Interpretation element the role of which is to explain a combination of source items.)

Example:

<NormativeSource>
  <prose>...</prose>
  <SourceItem type="Reference" name="..." >text</SourceItem>
  <SourceItem type="Text" name="..." extension="false">text</SourceItem>
  <SourceItem type="Derived" reference="(srcitem name)">text</SourceItem>
  <Interpretation>text</Interpretation>
</NormativeSource>

The pseudo-schema would be something like:

<NormativeSource>
  <prose>...</prose>?
  <SourceItem type="{Reference|Text|Derived}" name="..." >text</SourceItem>+
  <Interpretation>...</Interpretation>?
</NormativeSource>
  • <steve>

the following seems easier to define in XML (avoiding multiple elements with the same name but differing content)

also, 'prose' may risk just duplicating textSourceItem or interpretation so could replace it with 'comment'

and make the SourceItem elements multi-occurrence (not 'interpretation' unless that needs multi-occurrence for multi-lingual support - seems excessive)

(note 'lg' attribute which can appear almost everywhere to denote language - human or expression)

    <normativeSource>
        <comment lg="en" >text</comment>
        <refSourceItem name="a" >text</refSourceItem>
        <refSourceItem name="a" >text</refSourceItem>
        <textSourceItem name="b" extension="false">text</textSourceItem>
        <textSourceItem name="b" extension="false">text</textSourceItem>
        <derivedSourceItem reference="(srcitem name)">text</derivedSourceItem>
        <derivedSourceItem reference="(srcitem name)">text</derivedSourceItem>
        <interpretation>text</interpretation>
    </normativeSource>

Status: open


Issue 005: property-defining Test Assertions

Description: <steve> Is a TA which exists to define the determination of the value of a property semantically the same as other TAs? How should it be distinguished from other TAs? Does there need to be care to avoid confusion with usual TAs?

Proposal 1: <steve> Treat a standard TA semantically as a special case of property TA. It defines a standard, default 'property' "PassOutcome" whose default list of possible values can be "True" or "False" or "NotRelevant". Could maybe call the Test Assertion Part "Property with a structure consisting of a "Name" and a "Value". The "Value" could have a substructure allowing the following: "Range", "Enumeration", "Value", "Pattern", similar to XML Schema datatype value restrictions. Maybe there is room too for a substructure part called "Datatype" too. This means the default value of Property/Name could be "PassOutcome" but otherwise (for a property TA) it would be the name of a property being defined by the TA. When Property = "PassOutcome" ("PassOutcome" could be a reserved, special word/value) then there could be a default for "enumeration" of True|False|NotRelevant.

default:

<ta>
...
  <property name="PassOutcome" >
    <enumeration>True</enumeration>
    <enumeration>False</enumeration>
    <enumeration>NotRelevant</enumeration>
  </property>
...
</ta>

or

<ta>
...
  <property name="xyz" ><value datatype="xsd:string">abc</value></property>
...
</ta>

or

<ta>
...
  <property name="xyz" ><pattern>a.c</pattern></property>
...
</ta>

or

<ta>
...
  <property name="xyz" ><range datatype="xsd:number"><minValue>1</minValue><maxValue>3</maxValue></range></property>
...
</ta>

or

<ta>
...
  <property name="xyz" >
    <enumeration>a</enumeration>
    <enumeration>b</enumeration>
    <enumeration>c</enumeration>
  </property>
...
</ta>

Maybe just reuse W3C XML Schema restriction structure within this 'property'?

<steve>

The latest agreed TA committee draft revises the model for property TAs. The new model uses a specialised tag to represent whether the TA is a property TA and the value of the property.

How about this for something more in line with the latest model

    <testAssertion id="[taid]" lg="[language]" definesNormativeProperty="true">
...
        <predicate>[predicate]</predicate>
        <normativePropertyTag>[name of normative property defined by this TA]</normativePropertyTag>
        <tag name="[name5]">[tagValue]</tag>
        <tag name="[name6]">[tagValue]</tag>
    </testAssertion>

The attribute definesNormativeProperty="false" or definesNormativeProperty="true" makes it clearer whether a TA is a property TA. (The absence of a "normativePropertyTag" element may not be the best way to indicate the purpose of the TA.) Making the default value 'false' means a TA without this attribute is not a property TA (but see below - can this be overridden at TA Set level?).

A sub-issue is whether a TA Set can have the purpose of defining a property. If so, then does it mean that every TA within the set must be a property TA? Does this include referenced TAs which might be members of more than one TA Set? If a TA is a member of a set which is a property TA set (a set whose TAs together define a property) can it also be a member (by reference, say) of a TA which does not define a property? If this be the case even if it is not a property TA - can its purpose be overridden in a TA set to say that although it is not a property TA, when part of a property TA Set is is acting as a property TA?

</steve>

Status: open


Issue 006: possible Test Assertion structure

Proposal:

<steve>

A possible TA structure based on our propopsals and examples might be

    <testAssertion id="[taid]" lg="[language]" definesNormativeProperty="false">
        <var name="name1">[varValue]</var> <!-- optional, multiple -->
        <var name="name2">[varValue]</var>
        <normativeSource> <!-- optional (in case defined in TA Set header) -->
            <comment lg="en" >text</comment> <!-- optional -->
            <refSourceItem name="[name3]">[refSourceItem]</refSourceItem> <!-- optional, multiple -->
            <textSourceItem extension="false" name="[name4]">[textSourceItem]</textSourceItem> <!-- optional, multiple -->
            <derivedSourceItem reference="[reference]">[derivedSourceItem]</derivedSourceItem> <!-- optional, multiple -->
            <interpretation>[interpretation]</interpretation> <!-- optional -->
        </normativeSource>
        <target>[target]</target> <!-- optional (in case defined in TA Set header) -->
        <prerequisite>prerequisite0</prerequisite> <!-- optional (in case defined in TA Set header) -->
        <predicate>[predicate]</predicate> <!-- optional (in case defined in TA Set header) -->
        <prescriptionLevel>[mandatory|permitted|preferred]</prescriptionLevel> 
        <tag name="[name5]">[tagValue]</tag> <!-- optional, multiple -->
        <tag name="[name6]">[tagValue]</tag>
    </testAssertion>

A possible property TA structure:

    <testAssertion id="[taid]" lg="[language]" definesNormativeProperty="true">
        <var name="name1">[varValue]</var> <!-- optional, multiple -->
        <var name="name2">[varValue]</var>
        <normativeSource> <!-- optional (in case defined in TA Set header) -->
            <comment lg="en" >text</comment> <!-- optional -->
            <refSourceItem name="[name3]">[refSourceItem]</refSourceItem> <!-- optional, multiple -->
            <textSourceItem extension="false" name="[name4]">[textSourceItem]</textSourceItem> <!-- optional, multiple -->
            <derivedSourceItem reference="[reference]">[derivedSourceItem]</derivedSourceItem> <!-- optional, multiple -->
            <interpretation>[interpretation]</interpretation> <!-- optional -->
        </normativeSource>
        <prerequisite>prerequisite0</prerequisite> <!-- optional (in case defined in TA Set header) -->
        <predicate>[predicate]</predicate> <!-- optional (in case defined in TA Set header) -->
        <prescriptionLevel>[mandatory|permitted|preferred]</prescriptionLevel> 
        <normativePropertyTag>[name of normative property defined by this TA]</normativePropertyTag> <!-- optional -->
        <tag name="[name5]">[tagValue]</tag> <!-- optional, multiple -->
        <tag name="[name6]">[tagValue]</tag>
    </testAssertion>


Issue 007: possible Test Assertion Set structure

Proposal:

<steve>

A possible TA Set structure based on our propopsals and examples might be

<testAssertionSet lg="lg0">
    <header> <!-- optional -->
        <var name="name0">var0</var> <!-- optional -->
        <var name="name1">var1</var>
        <normativeSource> <!-- optional -->
            <comment lg="en" >text</comment> <!-- optional -->
            <refSourceItem name="name2">refSourceItem0</refSourceItem>
            <refSourceItem name="name2">refSourceItem0</refSourceItem>
            <textSourceItem extension="false" name="name3">textSourceItem0</textSourceItem>
            <textSourceItem extension="false" name="name3">textSourceItem0</textSourceItem>
            <derivedSourceItem reference="reference0">derivedSourceItem0</derivedSourceItem>
            <derivedSourceItem reference="reference0">derivedSourceItem0</derivedSourceItem>
            <interpretation>interpretation0</interpretation>
        </normativeSource>
        <target type="type0">target0</target> <!-- optional -->
        <prerequisite>prerequisite0</prerequisite> <!-- optional -->
        <predicate>predicate0</predicate> <!-- optional -->
        <normativePropertyTag>normativePropertyTag0</normativePropertyTag> <!-- optional -->
        <tag name="name4">tag0</tag> <!-- optional -->
        <tag name="name5">tag1</tag>
    </header>
    <testAssertion id="id0" lg="lg1"> <!-- optional, multiple -->
        ...
    </testAssertion>
    <testAssertion id="id1" lg="lg2">
        ...
    </testAssertion>
    <testAssertionRef>testAssertionRef0</testAssertionRef> <!-- optional, multiple -->
    <testAssertionRef>testAssertionRef1</testAssertionRef>
    <testAssertionSet id="[optional ta set id]" lg="[optional ta set language]" definesNormativeProperty="true">
        <header>
            ...
        </header>
        <testAssertion id="id2" lg="lg4" definesNormativeProperty="true">
            ...
        </testAssertion>
        <testAssertion id="id3" lg="lg5" definesNormativeProperty="true">
            ...
        </testAssertion>
        <testAssertionRef>testAssertionRef2</testAssertionRef>
        <testAssertionRef>testAssertionRef3</testAssertionRef>
    </testAssertionSet>
    <testAssertionSet id="id0" lg="lg0" definesNormativeProperty="false">
        <testAssertion id="id4" lg="lg7">
        <normativeSource> 
            <comment lg="en" >text</comment> 
            <refSourceItem name="name2">refSourceItem0</refSourceItem>
            <refSourceItem name="name2">refSourceItem0</refSourceItem>
            <textSourceItem extension="false" name="name3">textSourceItem0</textSourceItem>
            <textSourceItem extension="false" name="name3">textSourceItem0</textSourceItem>
            <derivedSourceItem reference="reference0">derivedSourceItem0</derivedSourceItem>
            <derivedSourceItem reference="reference0">derivedSourceItem0</derivedSourceItem>
            <interpretation>interpretation0</interpretation>
        </normativeSource>
        <target>[target]</target>
        <predicate>[predicate]</predicate>
        <normativePropertyTag>[name of normative property defined by this TA]</normativePropertyTag>
        <tag name="[name5]">[tagValue]</tag>
        <tag name="[name6]">[tagValue]</tag></testAssertion>
        <testAssertion id="id5" lg="lg8" definesNormativeProperty="false">
            ...
        </testAssertion>
        <testAssertionRef>testAssertionRef4</testAssertionRef>
        <testAssertionRef>testAssertionRef5</testAssertionRef>
    </testAssertionSet>
</testAssertionSet>

Also each of the text/string-type elements might need a separate 'lg' attribute (language).

(Following artfects for this proposed structure posted here http://www.oasis-open.org/committees/download.php/33058/TestAssertionMarkup-0-4.zip - Note: version 0.3 needs minor correction to widget example to show two of the TAs as property TAs - see below)

[Proposed DTD removed - too many issues with datatypes]

W3C XML Schema proposal

Key naming and design points in this schema proposal

  • for datatypes noramlizedString is used in most cases except where string or boolean needed
  • all elements and their types are globally defined (for reuse and extension/restriction)
  • all attributes are locally defined
  • lower Camel Case is used for all names
  • abbreviations are allowed in element and attribute names (e.g. 'var' for 'variable', 'lg' for 'language', 'ref' for 'reference', 'id' for 'identifier')
  • as yet no namespace is included
  • some content has default values (e.g. boolean attribute 'definesNormativeProperty' has default value 'false')

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  <!-- start document root elements -->
  <xs:element name="testAssertionSet" type="testAssertionSet_type"> </xs:element>
  <xs:element name="testAssertion" type="testAssertion_type"> </xs:element>
  <!-- end document root elements -->
  <xs:element name="comment" type="comment_type"/>
  <xs:element name="derivedSourceItem" type="derivedSourceItem_type"> </xs:element>
  <xs:element name="header" type="header_type"> </xs:element>
  <xs:element name="interpretation" type="interpretation_type"/>
  <xs:element name="normativePropertyTag" type="xs:normalizedString"/>
  <xs:element name="normativeSource" type="normativeSource_type"> </xs:element>
  <xs:element name="predicate" type="predicate_type"/>
  <xs:element name="prerequisite" type="prerequisite_type"/>
  <xs:element name="prescriptionLevel" type="prescriptionLevel_type"/>
  <xs:element name="refSourceItem" type="refSourceItem_type"> </xs:element>
  <xs:element name="tag" type="tag_type"> </xs:element>
  <xs:element name="target" type="target_type"> </xs:element>
  <xs:element name="testAssertionRef" type="testAssertionRef_type"> </xs:element>
  <xs:element name="textSourceItem" type="textSourceItem_type"> </xs:element>
  <xs:element name="var" type="var_type"> </xs:element>
  <xs:complexType name="comment_type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="derivedSourceItem_type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="reference"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="header_type">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="var"/>
      <xs:element minOccurs="0" ref="normativeSource"/>
      <xs:element minOccurs="0" ref="target"/>
      <xs:element minOccurs="0" ref="prerequisite"/>
      <xs:element minOccurs="0" ref="predicate"/>
      <xs:element minOccurs="0" ref="normativePropertyTag"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="tag"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="interpretation_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="normativeSource_type">
    <xs:sequence>
      <xs:element minOccurs="0" ref="comment"/>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="refSourceItem"/>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="textSourceItem"/>
      <xs:element maxOccurs="unbounded" minOccurs="0" ref="derivedSourceItem"/>
      <xs:element minOccurs="0" ref="interpretation"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="predicate_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="prerequisite_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="prescriptionLevel_type">
      <xs:restriction base="xs:normalizedString">
        <xs:enumeration value="mandatory"/>
        <xs:enumeration value="permitted"/>
        <xs:enumeration value="preferred"/>
      </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="refSourceItem_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="name" type="xs:normalizedString"/>
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="tag_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="name" type="xs:normalizedString"/>
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="target_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="type" type="xs:normalizedString"/>
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="testAssertionRef_type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="testAssertionSet_type">
    <xs:sequence>
      <xs:element minOccurs="0" ref="header"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="testAssertion"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="testAssertionRef"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="testAssertionSet"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:normalizedString"/>
    <xs:attribute name="lg" type="xs:normalizedString"/>
    <xs:attribute name="definesNormativeProperty" type="xs:boolean" default="false"/>
  </xs:complexType>
  <xs:complexType name="testAssertion_type">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="var"/>
      <xs:element minOccurs="0" ref="normativeSource"/>
      <xs:element minOccurs="0" ref="target"/>
      <xs:element minOccurs="0" ref="prerequisite"/>
      <xs:element minOccurs="0" ref="predicate"/>
      <xs:element ref="prescriptionLevel"/>
      <xs:element minOccurs="0" ref="normativePropertyTag"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="tag"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:normalizedString"/>
    <xs:attribute name="lg" type="xs:normalizedString"/>
    <xs:attribute name="definesNormativeProperty" type="xs:boolean" default="false"/>
  </xs:complexType>
  <xs:complexType name="textSourceItem_type">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="extension" type="xs:boolean"/>
        <xs:attribute name="name" type="xs:normalizedString"/>
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="var_type">
    <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
        <xs:attribute name="name" type="xs:normalizedString"/>
        <xs:attribute name="lg" type="xs:normalizedString"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:schema>

More complete example (generated content - not meaningful):

<?xml version="1.0" encoding="UTF-8"?>
<testAssertionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="testAssertion-0-4.xsd" id="id0" lg="lg0" definesNormativeProperty="false">
    <header>
        <var name="name0" lg="lg1">var0</var>
        <var name="name1" lg="lg2">var1</var>
        <normativeSource>
            <comment lg="lg3">comment0</comment>
            <refSourceItem name="name2" lg="lg4">refSourceItem0</refSourceItem>
            <refSourceItem name="name3" lg="lg5">refSourceItem1</refSourceItem>
            <textSourceItem extension="false" name="name4" lg="lg6">textSourceItem0</textSourceItem>
            <textSourceItem extension="false" name="name5" lg="lg7">textSourceItem1</textSourceItem>
            <derivedSourceItem reference="reference0">derivedSourceItem0</derivedSourceItem>
            <derivedSourceItem reference="reference1">derivedSourceItem1</derivedSourceItem>
            <interpretation lg="lg8">interpretation0</interpretation>
        </normativeSource>
        <target type="type0" lg="lg9">target0</target>
        <prerequisite lg="lg10">prerequisite0</prerequisite>
        <predicate lg="lg11">predicate0</predicate>
        <normativePropertyTag>normativePropertyTag0</normativePropertyTag>
        <tag name="name6" lg="lg12">tag0</tag>
        <tag name="name7" lg="lg13">tag1</tag>
    </header>
    <testAssertion id="id1" lg="lg14" definesNormativeProperty="false">
        <var name="name8" lg="lg15">var2</var>
        <var name="name9" lg="lg16">var3</var>
        <normativeSource>
            <comment lg="lg17">comment1</comment>
            <refSourceItem name="name10" lg="lg18">refSourceItem2</refSourceItem>
            <refSourceItem name="name11" lg="lg19">refSourceItem3</refSourceItem>
            <textSourceItem extension="false" name="name12" lg="lg20">textSourceItem2</textSourceItem>
            <textSourceItem extension="false" name="name13" lg="lg21">textSourceItem3</textSourceItem>
            <derivedSourceItem reference="reference2">derivedSourceItem2</derivedSourceItem>
            <derivedSourceItem reference="reference3">derivedSourceItem3</derivedSourceItem>
            <interpretation lg="lg22">interpretation1</interpretation>
        </normativeSource>
        <target type="type1" lg="lg23">target1</target>
        <prerequisite lg="lg24">prerequisite1</prerequisite>
        <predicate lg="lg25">predicate1</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
        <normativePropertyTag>normativePropertyTag1</normativePropertyTag>
        <tag name="name14" lg="lg26">tag2</tag>
        <tag name="name15" lg="lg27">tag3</tag>
    </testAssertion>
    <testAssertion id="id2" lg="lg28" definesNormativeProperty="false">
        <var name="name16" lg="lg29">var4</var>
        <var name="name17" lg="lg30">var5</var>
        <normativeSource>
            <comment lg="lg31">comment2</comment>
            <refSourceItem name="name18" lg="lg32">refSourceItem4</refSourceItem>
            <refSourceItem name="name19" lg="lg33">refSourceItem5</refSourceItem>
            <textSourceItem extension="false" name="name20" lg="lg34">textSourceItem4</textSourceItem>
            <textSourceItem extension="false" name="name21" lg="lg35">textSourceItem5</textSourceItem>
            <derivedSourceItem reference="reference4">derivedSourceItem4</derivedSourceItem>
            <derivedSourceItem reference="reference5">derivedSourceItem5</derivedSourceItem>
            <interpretation lg="lg36">interpretation2</interpretation>
        </normativeSource>
        <target type="type2" lg="lg37">target2</target>
        <prerequisite lg="lg38">prerequisite2</prerequisite>
        <predicate lg="lg39">predicate2</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
        <normativePropertyTag>normativePropertyTag2</normativePropertyTag>
        <tag name="name22" lg="lg40">tag4</tag>
        <tag name="name23" lg="lg41">tag5</tag>
    </testAssertion>
    <testAssertionRef lg="lg42">testAssertionRef0</testAssertionRef>
    <testAssertionRef lg="lg43">testAssertionRef1</testAssertionRef>
    <testAssertionSet id="id3" lg="lg44" definesNormativeProperty="false">
        <header>
            <var name="name24" lg="lg45">var6</var>
            <var name="name25" lg="lg46">var7</var>
            <normativeSource>
                <comment lg="lg47">comment3</comment>
                <refSourceItem name="name26" lg="lg48">refSourceItem6</refSourceItem>
                <refSourceItem name="name27" lg="lg49">refSourceItem7</refSourceItem>
                <textSourceItem extension="false" name="name28" lg="lg50">textSourceItem6</textSourceItem>
                <textSourceItem extension="false" name="name29" lg="lg51">textSourceItem7</textSourceItem>
                <derivedSourceItem reference="reference6">derivedSourceItem6</derivedSourceItem>
                <derivedSourceItem reference="reference7">derivedSourceItem7</derivedSourceItem>
                <interpretation lg="lg52">interpretation3</interpretation>
            </normativeSource>
            <target type="type3" lg="lg53">target3</target>
            <prerequisite lg="lg54">prerequisite3</prerequisite>
            <predicate lg="lg55">predicate3</predicate>
            <normativePropertyTag>normativePropertyTag3</normativePropertyTag>
            <tag name="name30" lg="lg56">tag6</tag>
            <tag name="name31" lg="lg57">tag7</tag>
        </header>
        <testAssertion id="id4" lg="lg58" definesNormativeProperty="false">
            <var name="name32" lg="lg59">var8</var>
            <var name="name33" lg="lg60">var9</var>
            <normativeSource>
                <comment lg="lg61">comment4</comment>
                <refSourceItem name="name34" lg="lg62">refSourceItem8</refSourceItem>
                <refSourceItem name="name35" lg="lg63">refSourceItem9</refSourceItem>
                <textSourceItem extension="false" name="name36" lg="lg64">textSourceItem8</textSourceItem>
                <textSourceItem extension="false" name="name37" lg="lg65">textSourceItem9</textSourceItem>
                <derivedSourceItem reference="reference8">derivedSourceItem8</derivedSourceItem>
                <derivedSourceItem reference="reference9">derivedSourceItem9</derivedSourceItem>
                <interpretation lg="lg66">interpretation4</interpretation>
            </normativeSource>
            <target type="type4" lg="lg67">target4</target>
            <prerequisite lg="lg68">prerequisite4</prerequisite>
            <predicate lg="lg69">predicate4</predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>normativePropertyTag4</normativePropertyTag>
            <tag name="name38" lg="lg70">tag8</tag>
            <tag name="name39" lg="lg71">tag9</tag>
        </testAssertion>
        <testAssertion id="id5" lg="lg72" definesNormativeProperty="false">
            <var name="name40" lg="lg73">var10</var>
            <var name="name41" lg="lg74">var11</var>
            <normativeSource>
                <comment lg="lg75">comment5</comment>
                <refSourceItem name="name42" lg="lg76">refSourceItem10</refSourceItem>
                <refSourceItem name="name43" lg="lg77">refSourceItem11</refSourceItem>
                <textSourceItem extension="false" name="name44" lg="lg78">textSourceItem10</textSourceItem>
                <textSourceItem extension="false" name="name45" lg="lg79">textSourceItem11</textSourceItem>
                <derivedSourceItem reference="reference10">derivedSourceItem10</derivedSourceItem>
                <derivedSourceItem reference="reference11">derivedSourceItem11</derivedSourceItem>
                <interpretation lg="lg80">interpretation5</interpretation>
            </normativeSource>
            <target type="type5" lg="lg81">target5</target>
            <prerequisite lg="lg82">prerequisite5</prerequisite>
            <predicate lg="lg83">predicate5</predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>normativePropertyTag5</normativePropertyTag>
            <tag name="name46" lg="lg84">tag10</tag>
            <tag name="name47" lg="lg85">tag11</tag>
        </testAssertion>
        <testAssertionRef lg="lg86">testAssertionRef2</testAssertionRef>
        <testAssertionRef lg="lg87">testAssertionRef3</testAssertionRef>
    </testAssertionSet>
    <testAssertionSet id="id6" lg="lg88" definesNormativeProperty="false">
        <header>
            <var name="name48" lg="lg89">var12</var>
            <var name="name49" lg="lg90">var13</var>
            <normativeSource>
                <comment lg="lg91">comment6</comment>
                <refSourceItem name="name50" lg="lg92">refSourceItem12</refSourceItem>
                <refSourceItem name="name51" lg="lg93">refSourceItem13</refSourceItem>
                <textSourceItem extension="false" name="name52" lg="lg94">textSourceItem12</textSourceItem>
                <textSourceItem extension="false" name="name53" lg="lg95">textSourceItem13</textSourceItem>
                <derivedSourceItem reference="reference12">derivedSourceItem12</derivedSourceItem>
                <derivedSourceItem reference="reference13">derivedSourceItem13</derivedSourceItem>
                <interpretation lg="lg96">interpretation6</interpretation>
            </normativeSource>
            <target type="type6" lg="lg97">target6</target>
            <prerequisite lg="lg98">prerequisite6</prerequisite>
            <predicate lg="lg99">predicate6</predicate>
            <normativePropertyTag>normativePropertyTag6</normativePropertyTag>
            <tag name="name54" lg="lg100">tag12</tag>
            <tag name="name55" lg="lg101">tag13</tag>
        </header>
        <testAssertion id="id7" lg="lg102" definesNormativeProperty="false">
            <var name="name56" lg="lg103">var14</var>
            <var name="name57" lg="lg104">var15</var>
            <normativeSource>
                <comment lg="lg105">comment7</comment>
                <refSourceItem name="name58" lg="lg106">refSourceItem14</refSourceItem>
                <refSourceItem name="name59" lg="lg107">refSourceItem15</refSourceItem>
                <textSourceItem extension="false" name="name60" lg="lg108">textSourceItem14</textSourceItem>
                <textSourceItem extension="false" name="name61" lg="lg109">textSourceItem15</textSourceItem>
                <derivedSourceItem reference="reference14">derivedSourceItem14</derivedSourceItem>
                <derivedSourceItem reference="reference15">derivedSourceItem15</derivedSourceItem>
                <interpretation lg="lg110">interpretation7</interpretation>
            </normativeSource>
            <target type="type7" lg="lg111">target7</target>
            <prerequisite lg="lg112">prerequisite7</prerequisite>
            <predicate lg="lg113">predicate7</predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>normativePropertyTag7</normativePropertyTag>
            <tag name="name62" lg="lg114">tag14</tag>
            <tag name="name63" lg="lg115">tag15</tag>
        </testAssertion>
        <testAssertion id="id8" lg="lg116" definesNormativeProperty="false">
            <var name="name64" lg="lg117">var16</var>
            <var name="name65" lg="lg118">var17</var>
            <normativeSource>
                <comment lg="lg119">comment8</comment>
                <refSourceItem name="name66" lg="lg120">refSourceItem16</refSourceItem>
                <refSourceItem name="name67" lg="lg121">refSourceItem17</refSourceItem>
                <textSourceItem extension="false" name="name68" lg="lg122">textSourceItem16</textSourceItem>
                <textSourceItem extension="false" name="name69" lg="lg123">textSourceItem17</textSourceItem>
                <derivedSourceItem reference="reference16">derivedSourceItem16</derivedSourceItem>
                <derivedSourceItem reference="reference17">derivedSourceItem17</derivedSourceItem>
                <interpretation lg="lg124">interpretation8</interpretation>
            </normativeSource>
            <target type="type8" lg="lg125">target8</target>
            <prerequisite lg="lg126">prerequisite8</prerequisite>
            <predicate lg="lg127">predicate8</predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>normativePropertyTag8</normativePropertyTag>
            <tag name="name70" lg="lg128">tag16</tag>
            <tag name="name71" lg="lg129">tag17</tag>
        </testAssertion>
        <testAssertionRef lg="lg130">testAssertionRef4</testAssertionRef>
        <testAssertionRef lg="lg131">testAssertionRef5</testAssertionRef>
    </testAssertionSet>
</testAssertionSet>

Example with meaningful content (representing widget examples included in the guidelines)

<?xml version="1.0" encoding="utf-8"?>
<testAssertionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="testAssertion-0-4.xsd"
    id="Test Assertions for Dummy Widget Specification 1.1 Sections 100 to 104" lg="en-us">
    <header>
        <normativeSource>
            <refSourceItem>Dummy Widget Specification 1.1 Sections 100 to 104</refSourceItem>
        </normativeSource>
    </header>
    <testAssertion id="widget-TA100-1">
        <normativeSource>
            <refSourceItem>specification requirement 100</refSourceItem>
        </normativeSource>
        <target>widget</target>
        <predicate>[the widget] is of rectangular shape</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA101-1a">
        <normativeSource>
            <refSourceItem>specification requirement 101, part 1</refSourceItem>
        </normativeSource>
        <target>medium-size widget</target>
        <predicate>[the widget] uses exactly one AA battery.</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA101-1b">
        <normativeSource>
            <refSourceItem>specification requirement 101, part 2</refSourceItem>
        </normativeSource>
        <target>medium-size widget</target>
        <predicate>[the widget] has a red button on top.</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA102-1">
        <normativeSource>
            <refSourceItem>specification statement 102, part 1</refSourceItem>
        </normativeSource>
        <target>widget</target>
        <predicate>[the widget] is waterproof.</predicate>
        <prescriptionLevel>preferred</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA102-2">
        <normativeSource>
            <refSourceItem>specification statement 102, part 2</refSourceItem>
        </normativeSource>
        <target>widget</target>
        <prerequisite>(widget-TA102-1 = false)</prerequisite>
        <predicate> [the widget] has a label warning that it is not waterproof. </predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA103-1">
        <normativeSource>
            <refSourceItem>specification statement 103, part 1</refSourceItem>
        </normativeSource>
        <target>widget</target>
        <predicate>[the widget] has a metallic casing.</predicate>
        <prescriptionLevel>permitted</prescriptionLevel>
    </testAssertion>
    <testAssertion id="widget-TA103-2">
        <normativeSource>
            <refSourceItem>specification statement 103, part 2</refSourceItem>
        </normativeSource>
        <target>widget</target>
        <prerequisite>widget-TA103-1</prerequisite>
        <predicate> [the widget] has a waterproof coating over its metallic casing. </predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertionSet definesNormativeProperty="true">
        <header>
            <var name="GEOPOLITICAL-LOCATION"> the geopolitical location of use of the widget,
                allowed values being strings enumerated in country code list ...</var>
            <var name="WEIGHT-A"> a weight and its units. If GEOPOLITICAL-LOCATION is 'US' then
                WEIGHT-A is 4oz. If GEOPOLITICAL-LOCATION is 'EU' then WEIGHT-A is 100g.</var>
            <var name="WEIGHT-B">a weight and its units. If GEOPOLITICAL-LOCATION is 'US' then
                WEIGHT-B is 12oz. If GEOPOLITICAL-LOCATION is 'EU' then WEIGHT-B is 300g.</var>
            <var name="LENGTH-A">a length and its units. If GEOPOLITICAL-LOCATION is 'US' then
                LENGTH-A is 2 inches. If GEOPOLITICAL-LOCATION is 'EU' then LENGTH-B is 5cm.</var>
            <var name="LENGTH-B">a length and its units. If GEOPOLITICAL-LOCATION is 'US' then
                LENGTH-B is 6 inches. If GEOPOLITICAL-LOCATION is 'EU' then LENGTH-B is 15cm.</var>
            <normativePropertyTag>medium-sized</normativePropertyTag>
        </header>
        <testAssertion id="widget-TA104-1" definesNormativeProperty="true">
            <normativeSource>
                <refSourceItem>specification requirement 104</refSourceItem>
            </normativeSource>
            <target>widget</target>
            <predicate> [the widget] weighs between WEIGHT-A and WEIGHT-B. </predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>medium-sized</normativePropertyTag>
        </testAssertion>
        <testAssertion id="widget-TA104-2" definesNormativeProperty="true">
            <normativeSource>
                <refSourceItem>specification requirement 104</refSourceItem>
            </normativeSource>
            <target>widget</target>
            <predicate> [the widget] is from LENGTH-A to LENGTH-B long in its longer </predicate>
            <prescriptionLevel>mandatory</prescriptionLevel>
            <normativePropertyTag>medium-sized</normativePropertyTag>
        </testAssertion>
    </testAssertionSet>
</testAssertionSet>

This works too with XPath profiling for executability (using some of Jacques' examples)

<?xml version="1.0" encoding="UTF-8"?>
<testAssertionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="testAssertion-0-4.xsd">
    <testAssertion id="BP2703" lg="xpath20" >
        <normativeSource><refSourceItem>...</refSourceItem></normativeSource>
        <target type="">//wsil:descriptionFile[fn:prefix-from-QName(fn:node-name(*:definitions)) 
            eq 'wsdl' or wsdl:definitions]</target>
        <predicate>$target instance of schema-element($wsdlschema)</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="BP2017" lg="xpath20" >
        <normativeSource><refSourceItem>...</refSourceItem></normativeSource>
        <target type="">//wsil:descriptionFile/wsdl:definitions/wsdl:binding[wsoap12:binding]</target>
        <prerequisite>tag:BP2404($target) eq 'pass'</prerequisite>
        <predicate>not(.//wsoap12:body/@use != 'literal') and (count(.//wsoap12:body) = count(.//wsoap12:body/@use)) and 
            ((not(.//wsoap12:*/@style != 'rpc') and not(.//wsoap12:operation[not(@style) and not(../../wsoap12:binding/@style)])) or 
            (not(.//wsoap12:*/@style != 'document')))</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="BP-rpc-bindings" lg="xpath20" >
        <normativeSource><refSourceItem>...</refSourceItem></normativeSource>
        <target type="">//wsil:descriptionFile/*:definitions/wsdl:binding [.//wsoap12:*[@style = 'rpc']]</target>
        <prerequisite>tag:BP2017($target) eq 'pass'</prerequisite>
        <predicate>(tag:BP2404($target) eq 'pass') and (tag:BP2406($target) eq 'pass') and (tag:BP2020($target) eq 'pass') and 
            (tag:BP2120b($target) eq 'pass') and (tag:BP2117($target) eq 'pass') and (tag:BP2118($target) eq 'pass')</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
    <testAssertion id="BP1214">
        <var name="myOpBinding"> ...</var>
        <normativeSource><refSourceItem>...</refSourceItem></normativeSource>
        <target type="message:SOAPmessage" >/wsil:testLog/wsil:messageLog/wsil:message[...]</target>
        <prerequisite>tag:BP-rpc-bindings($myOpBinding/..) eq 'pass'</prerequisite>
        <predicate>...</predicate>
        <prescriptionLevel>mandatory</prescriptionLevel>
    </testAssertion>
</testAssertionSet>


<steve>

Issue 008: It is sometimes convenient to have multiple occurrance elements following the single occurrance ones

  • (may help with auto-generating classes for serialization of the XML)

Proposal: Possibly move 'var' to end of TA and TA Set element sequence