This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
XQueryX annotations allows expressions as arguments, rather than restricting the arguments to be literals. <xsd:complexType name="annotation"> <xsd:sequence> <xsd:element name="annotationName" type="EQName"/> <xsd:element name="arguments" type="exprList" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
You are quite right. One could say that this is not an error, because we already know that it is possible to write certain XQueryX expressions that cannot be transformed to correct XQuery expressions and that cannot be caught by validating the XQueryX document against the XQueryX schema. However, this problem was not difficult to fix, so I have done so. Henceforward, <xsd:complexType name="annotation"> <xsd:sequence> <xsd:element name="annotationName" type="EQName"/> <xsd:element name="arguments" type="exprList" minOccurs="0"/> </xsd:sequence> </xsd:complexType> is: <xsd:complexType name="annotation"> <xsd:sequence> <xsd:element name="annotationName" type="EQName"/> <xsd:element name="arguments" type="literalList" minOccurs="0"/> </xsd:sequence> </xsd:complexType> and: <xsd:complexType name="literalList"> <xsd:sequence> <xsd:element ref="constantExpr" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> Thanks for observing this problem! I've marked this bug as RESOLVED/FIXED. If you agree, please mark it CLOSED.
Thanks. I'm happy that this resolves the problem.
The author of the original bug report agrees that it has been resolved to his satisfaction. The fact that it was not marked CLOSED at the time was accidental, so I am marking it CLOSED now.