|
| I have a problem.
The W3C indicate that the xsd attribute "id" is a NMToken and accept a
following value:
Names and Tokens
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
CombiningChar | Extender
Name ::= (Letter | '_' | ':') ( NameChar)*
Names ::= Name (#x20 Name)* /* [E62] */
Nmtoken ::= (NameChar)+
Nmtokens ::= Nmtoken (#x20 Nmtoken)*
But Visual Studio .NET indicate the following error at Validate
Schema:
Invalid 'id' attribute value: The '1' character, hexadecimal value
0x31, cannot begin with a name.. An error occurred at C:/Visual Studio
Projects/Store/Store.xsd, (90, 10).
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="Autogrill.AIL.Schema.BusinessObject.Store"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="Autogrill.AIL.Schema.BusinessObject.Store"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Store">
<xs:complexType>
<xs:sequence>
<xs:element id="1" name="Store_x0020_ID" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo notes="identificativo codice Store" />
</xs:appinfo>
</xs:annotation>
</xs:element>
...............
But it don't indicate errors by <xs:element id="_1" name="Sto......
Why?
|
|