[wpkg-users] Error in profiles.xsd

mscdex mscdex at gmail.com
Wed Jun 17 21:31:23 CEST 2009


While finishing up some schema validation stuff for wpkgExpress, I noticed
an error in profiles.xsd:

   22     <xsd:complexType name="profile">
.... snip ....
   26     	<xsd:sequence>
   27     		<xsd:choice minOccurs="0" maxOccurs="unbounded">
   28     			<xsd:element ref="package">
   29     				<xsd:annotation>
   30     					<xsd:documentation>Assigns a package to the
profile.</xsd:documentation>
   31     				</xsd:annotation></xsd:element>
   32     		</xsd:choice>
   33     		<xsd:choice minOccurs="0" maxOccurs="unbounded">
   34     			<xsd:element ref="depends">
   35     				<xsd:annotation>
   36     					<xsd:documentation>Dependency definition. Allows to
refer to another profile which is "included".</xsd:documentation>
   37     				</xsd:annotation></xsd:element>
   38     			<xsd:element ref="variable">
   39     				<xsd:annotation>
   40     					<xsd:documentation>Variable definition.</xsd:documentation>
   41     				</xsd:annotation></xsd:element>
   42     		</xsd:choice>
   43     	</xsd:sequence>
.... snip ....
   50     </xsd:complexType>

should be:

   22     <xsd:complexType name="profile">
.... snip ....
   26     	<xsd:sequence>
   27     		<xsd:choice minOccurs="0" maxOccurs="unbounded">
   28     			<xsd:element ref="package">
   29     				<xsd:annotation>
   30     					<xsd:documentation>Assigns a package to the
profile.</xsd:documentation>
   31     				</xsd:annotation></xsd:element>
   32     			<xsd:element ref="depends">
   33     				<xsd:annotation>
   34     					<xsd:documentation>Dependency definition. Allows to
refer to another profile which is "included".</xsd:documentation>
   35     				</xsd:annotation></xsd:element>
   36     			<xsd:element ref="variable">
   37     				<xsd:annotation>
   38     					<xsd:documentation>Variable definition.</xsd:documentation>
   39     				</xsd:annotation></xsd:element>
   40     		</xsd:choice>
   41     	</xsd:sequence>
.... snip ....
   48     </xsd:complexType>


Without the change, a validation error will always occur.


- Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20090617/18b8d694/attachment-0001.html>


More information about the wpkg-users mailing list