← Prev in month ← Prev in thread
Next in thread → Next in month →

[xliff-comment] xliff-1-1.xsd has invalid attributes minOccurs,maxOccurs in <xs:choice>

From
Doug <>
Date
2002-09-27T13:46:18+00:00
ID
Thread
[xliff-comment] xliff-1-1.xsd has invalid attributes minOccurs,maxOccurs in <xs:choice>
The xliff-1-1.xsd XML schema assigns minOccurs and maxOccurs to the <choice>
element, but they are not allowed in that context.

XPath: xliff-1-1.xsd#/schema[1]/group[position() = 1 and @name =
'ElemGroup_TextContent']/choice[1]

Snippet:
	<!-- Groups -->
	<xsd:group name="ElemGroup_TextContent">
		<xsd:choice minOccurs="0" maxOccurs="unbounded">

Those attributes need to be specified everywhere that ElemGroup_TextContent
is referenced.

Example:	<xsd:group ref="xlf:ElemGroup_TextContent" minOccurs="0"
maxOccurs="unbounded"/>


Reference:
O'Reilly's "XML Schema", "xs:choice (within a group)", p. 250

Error seen with Microsoft's XSD 4.0 parser, but not XML Spy 4.4.

Regards,

Doug D

Ektron, Inc.
+1 603 594-0249
http://www.ektron.com
← Prev in month ← Prev in thread
Next in thread → Next in month →