Project

Profile

Help

Bug #1493

closed

XSD Error message for invalid Name refers to NCName instead

Added by Priscilla Walmsley about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2012-04-24
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

When an invalid value is supplied for an element of type xs:Name, the error message says "not a valid xs:NCName" instead of "not a valid xs:Name".

Schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="root" type="xs:Name"/>

</xs:schema>

Instance:

<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="newsch3.xsd">-myelement

Error Message:

Validation error at /root[1] on line 2 column 63 of EX83a_1.xml:

The content "-myelement" of element does not match the required simple type. The

value '-myelement' is not a valid xs:NCName (See

http://www.w3.org/TR/xmlschema11-2/#cvc-datatype-valid clause 1)

Please register to edit this issue

Also available in: Atom PDF