- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 19 May 2009 09:30:34 +0000
- To: public-ws-resource-access-notifications@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6920
Summary: WS-Enum: xml:lang causes schema validation failure
Product: WS-Resource Access
Version: PR
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Enumeration
AssignedTo: public-ws-resource-access-notifications@w3.org
ReportedBy: katy_warr@uk.ibm.com
QAContact: public-ws-resource-access-notifications@w3.org
The WS-Enumeration spec uses the xml:lang attribute in order to define the
language of the wesn:Reason in the EnumerationEnd message. The definition of
this attribute in the corresponding schema causes my schema editor to fail with
"Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component."
This is the offending part of the schema:
<xs:complexType name="LanguageSpecificStringType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" />
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
I think that the problem may be that xml:lang should be used to define the
"language used in the contents and attribute values of any element in an XML
document". [1] This isn't how it's being used in the WS-Enumeration spec as
it's being used to define the language of the actual message content (i.e. the
wsen:Reason).
Proposal:
--------
Don't use xml:lang to define the Enumeration reason code.
In the schema, replace:
<xs:attribute ref="xml:lang" />
with
<xs:attribute name="lang" type="xs:language" />
and remove the namespace prefix "xml" from the enumeration message.
So
<wsen:Reason xml:lang="language identifier" >
xs:string
</wsen:Reason> ?
becomes:
<wsen:Reason lang="language identifier" >
xs:string
</wsen:Reason> ?
with the same update to the description, i.e.:
[Body]/wsen:EnumerationEnd/wsen:Reason
This optional element contains text, in the language specified by the @lang
attribute, describing the reason for the unexpected enumeration termination.
[1] http://www.w3.org/TR/REC-xml/
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
Received on Tuesday, 19 May 2009 09:30:45 UTC