BizTalk Server General - XSD invalid 'id'

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2005 > XSD invalid 'id'





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XSD invalid 'id'
Peter

2005-02-11, 7:58 am

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?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com