While finishing up some schema validation stuff for wpkgExpress, I noticed an error in profiles.xsd:<br><br><pre><span class="hl line"> 22 </span> <xsd:complexType name="profile"><br><span class="hl line"></span>.... snip ....<br>
<span class="hl line"> 26 </span> <xsd:sequence><br><span class="hl line"> 27 </span> <xsd:choice minOccurs="0" maxOccurs="unbounded"><br><span class="hl line"> 28 </span> <xsd:element ref="package"><br>
<span class="hl line"> 29 </span> <xsd:annotation><br><span class="hl line"> 30 </span> <xsd:documentation>Assigns a package to the profile.</xsd:documentation><br><span class="hl line"> 31 </span> </xsd:annotation></xsd:element><br>
<span class="hl line"> 32 </span> </xsd:choice><br><span class="hl line"> 33 </span> <xsd:choice minOccurs="0" maxOccurs="unbounded"><br><span class="hl line"> 34 </span> <xsd:element ref="depends"><br>
<span class="hl line"> 35 </span> <xsd:annotation><br><span class="hl line"> 36 </span> <xsd:documentation>Dependency definition. Allows to refer to another profile which is "included".</xsd:documentation><br>
<span class="hl line"> 37 </span> </xsd:annotation></xsd:element><br><span class="hl line"> 38 </span> <xsd:element ref="variable"><br><span class="hl line"> 39 </span> <xsd:annotation><br>
<span class="hl line"> 40 </span> <xsd:documentation>Variable definition.</xsd:documentation><br><span class="hl line"> 41 </span> </xsd:annotation></xsd:element><br><span class="hl line"> 42 </span> </xsd:choice><br>
<span class="hl line"> 43 </span> </xsd:sequence><br>.... snip ....<br><span class="hl line"></span><span class="hl line"> 50 </span> </xsd:complexType><br><br></pre>should be:<br><br><pre><span class="hl line"> 22 </span> <xsd:complexType name="profile"><br>
<span class="hl line"></span>.... snip ....<br><span class="hl line"> 26 </span> <xsd:sequence><br><span class="hl line"></span><span class="hl line"> 27 </span> <xsd:choice minOccurs="0" maxOccurs="unbounded"><br>
<span class="hl line"> 28 </span> <xsd:element ref="package"><br><span class="hl line"> 29 </span> <xsd:annotation><br><span class="hl line"> 30 </span> <xsd:documentation>Assigns a package to the profile.</xsd:documentation><br>
<span class="hl line"> 31 </span> </xsd:annotation></xsd:element><br><span class="hl line"> 32 </span> <xsd:element ref="depends"><br><span class="hl line"> 33 </span> <xsd:annotation><br>
<span class="hl line"> 34 </span> <xsd:documentation>Dependency definition. Allows to refer to another profile which is "included".</xsd:documentation><br><span class="hl line"> 35 </span> </xsd:annotation></xsd:element><br>
<span class="hl line"> 36 </span> <xsd:element ref="variable"><br><span class="hl line"> 37 </span> <xsd:annotation><br><span class="hl line"> 38 </span> <xsd:documentation>Variable definition.</xsd:documentation><br>
<span class="hl line"> 39 </span> </xsd:annotation></xsd:element><br><span class="hl line"> 40 </span> </xsd:choice><br><span class="hl line"> 41 </span> </xsd:sequence><br>.... snip ....<br>
<span class="hl line"></span><span class="hl line"> 48 </span> </xsd:complexType></pre>
<br>Without the change, a validation error will always occur.<br><br><br>- Brian<br>