473,890 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

restriction base invalid, error in VS.NET 2003 when loading schema

I started with the following error...
-------------------------------------------------------
An error occured while loading the schema with TargetNamespace
'http://www.w3.org/2001/XMLSchema' referenced in this document.

The value for the 'base' attribute is invalid - 'xsd:string'
is an invalid value for the 'base' attribute.
An error occured at the file:///C:Program Files/Microsoft Visual Studio
.NET 2003
/Common7/Packages/Schemas/XML/xsdschema.xsd.( 516,16).

after trying to load this schema file:
-------------------------------------------------------
(fragment)

<?xml version="1.0" ?>

<!-- Filename: ownership4Docum ent.xsd.xml -->

<!-- Purpose: Defines the elements specific to a 4 Ownership primary
document. -->

<!-- Version: X0202 -->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified"
xmlns:sql="urn: schemas-microsoft-com:mapping-schema"> <!-- Added for
SQLXMLBulkLoad Annotation purposes -->

<xs:include schemaLocation= ".//ownershipDocume ntCommon.xsd.xm l" />

<!-- this schema applies exclusively to a "4" document -->

<xs:simpleTyp e name="DOCUMENT_ TYPE">

<xs:restricti on base="xs:string ">

<xs:pattern value="4" />

</xs:restriction>

</xs:simpleType>
Then I changed the offending line in the VS.NET 2003 xsdschema.xsd from:

<restriction base="xsd:strin g"> ....changed to <restriction
base="string">
--------------------------------------------------------

and now I get this error:

Dataset does not support "union' or 'list' as SimpleType.

=============== =============== =============== ==========

How do I get past this error so that I can load my schema file?

-------------------------------------------------

Here's the entire schema if anyone is interested.

<?xml version="1.0"?>

<!-- Filename: ownership4Docum ent.xsd.xml -->
<!-- Purpose: Defines the elements specific to a 4 Ownership primary
document. -->
<!-- Version: X0202 -->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified"

xmlns:sql="urn: schemas-microsoft-com:mapping-schema"> <!-- Added for
SQLXMLBulkLoad Annotation purposes -->

<xs:include schemaLocation= ".//ownershipDocume ntCommon.xsd.xm l"/>

<!-- this schema applies exclusively to a "4" document -->
<xs:simpleTyp e name="DOCUMENT_ TYPE">
<xs:restricti on base="xs:string ">
<xs:pattern value="4"/>
</xs:restriction>
</xs:simpleType>

<xs:simpleTyp e name="TRANS_FOR M4_TYPE_PICKLIS T">
<xs:annotatio n>
<xs:documentati on>
A "4" document can have security transactions of types 4
and 5.
</xs:documentatio n>
</xs:annotation>
<xs:restricti on base="xs:string ">
<xs:pattern value="4|5"/>
</xs:restriction>
</xs:simpleType>

<xs:complexTy pe name="TRANSACTI ON_CODING_FOR_4 ">
<xs:annotatio n>
<xs:documentati on>
The transactionForm Type can be 4 or 5.
The transactionCode is mandatory.
The equitySwapInvol ved flag is mandatory.
A "4" transaction is assumed on-time.
A "5" transaction is assumed early.
</xs:documentatio n>
</xs:annotation>
<xs:sequence>
<xs:element name="transacti onFormType"
type="TRANS_FOR M4_TYPE_PICKLIS T" minOccurs="1"/>
<xs:element name="transacti onCode"
type="TRANS_COD E_PICKLIST" minOccurs="1"/>
<xs:element name="equitySwa pInvolved" type="xs:boolea n"
minOccurs="1"/>
<xs:element name="footnoteI d" type="FOOTNOTE_ ID"
minOccurs="0" maxOccurs="99"/>
</xs:sequence>
</xs:complexType>

<xs:complexTy pe name="NONDERIVA TIVE_TRANSACTIO N"
sql:relation="o wnershipDocumen t">
<xs:sequence>
<xs:element name="securityT itle"
sql:field="secu rityTitle" type="SECURITY_ TITLE"
minOccurs="1"/>
<xs:element name="transacti onDate"
sql:field="tran sactionDate" type="DATE_WITH _FOOTNOTE"
minOccurs="1"/>
<xs:element name="deemedExe cutionDate"
sql:field="deem edExecutionDate " type="DATE_AND_ OR_FOOTNOTE"
minOccurs="0"/>
<xs:element name="transacti onCoding"
sql:field="tran sactionCoding" type="TRANSACTI ON_CODING_FOR_4 "
minOccurs="0"/>
<xs:element name="transacti onTimeliness"
sql:field="tran sactionTimeline ss" type="TRANSACTI ON_TIMELINESS"
minOccurs="0"/>
<xs:element name="transacti onAmounts"
sql:field="tran sactionAmounts" type="NONDERIV_ TRANSACT_AMOUNT S"
minOccurs="1"/>
<xs:element name="postTrans actionAmounts"
sql:field="post TransactionAmou nts" type="POST_TRAN SACTION_AMOUNTS "
minOccurs="1"/>
<xs:element name="ownership Nature"
sql:field="owne rshipNature" type="OWNERSHIP _NATURE"
minOccurs="1"/>
</xs:sequence>
</xs:complexType>

<xs:complexTy pe name="DERIVATIV E_TRANSACTION">
<xs:sequence>
<xs:element name="securityT itle"
type="SECURITY_ TITLE" minOccurs="1"/>
<xs:element name="conversio nOrExercisePric e"
type="OPT_NUMBE R_WITH_FOOTNOTE " minOccurs="1"/>
<xs:element name="transacti onDate"
type="DATE_WITH _FOOTNOTE" minOccurs="1"/>
<xs:element name="deemedExe cutionDate"
type="DATE_AND_ OR_FOOTNOTE" minOccurs="0"/>
<xs:element name="transacti onCoding"
type="TRANSACTI ON_CODING_FOR_4 " minOccurs="0"/>
<xs:element name="transacti onTimeliness"
type="TRANSACTI ON_TIMELINESS" minOccurs="0"/>
<xs:element name="transacti onAmounts"
type="DERIV_TRA NSACT_AMOUNTS" minOccurs="1"/>
<xs:element name="exerciseD ate"
type="OPT_DATE_ WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="expiratio nDate"
type="OPT_DATE_ WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="underlyin gSecurity"
type="UNDERLYIN G_SECURITY" minOccurs="1"/>
<xs:element name="postTrans actionAmounts"
type="POST_TRAN SACTION_AMOUNTS " minOccurs="1"/>
<xs:element name="ownership Nature"
type="OWNERSHIP _NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>

<xs:complexTy pe name="NONDERIVA TIVE_HOLDING">
<xs:sequence>
<xs:element name="securityT itle"
type="SECURITY_ TITLE" minOccurs="1"/>
<xs:element name="postTrans actionAmounts"
type="POST_TRAN SACTION_AMOUNTS " minOccurs="1"/>
<xs:element name="ownership Nature"
type="OWNERSHIP _NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>

<xs:complexTy pe name="DERIVATIV E_HOLDING">
<xs:sequence>
<xs:element name="securityT itle"
type="SECURITY_ TITLE" minOccurs="1"/>
<xs:element name="conversio nOrExercisePric e"
type="OPT_NUMBE R_WITH_FOOTNOTE " minOccurs="1"/>
<xs:element name="exerciseD ate"
type="OPT_DATE_ WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="expiratio nDate"
type="OPT_DATE_ WITH_FOOTNOTE" minOccurs="1"/>
<xs:element name="underlyin gSecurity"
type="UNDERLYIN G_SECURITY" minOccurs="1"/>
<xs:element name="postTrans actionAmounts"
type="POST_TRAN SACTION_AMOUNTS " minOccurs="1"/>
<xs:element name="ownership Nature"
type="OWNERSHIP _NATURE" minOccurs="1"/>
</xs:sequence>
</xs:complexType>

<xs:complexTy pe name="NONDERIVA TIVE_TABLE">
<xs:annotatio n>
<xs:documentati on>
Can have up to 30 entries in the Non-Derivative Table.
This is Table 1 on the printed form.
Can have any combination of Transactions and Holdings in
any order.
</xs:documentatio n>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="30">
<xs:element name="nonDeriva tiveTransaction "
type="NONDERIVA TIVE_TRANSACTIO N"/>
<xs:element name="nonDeriva tiveHolding"
type="NONDERIVA TIVE_HOLDING"/>
</xs:choice>
</xs:complexType>

<xs:complexTy pe name="DERIVATIV E_TABLE">
<xs:annotatio n>
<xs:documentati on>
Can have up to 30 entries in the Derivative Table. This
is Table 2 on the printed form.
Can have any combination of Transactions and Holdings in
any order.
</xs:documentatio n>
</xs:annotation>
<xs:choice minOccurs="0" maxOccurs="30">
<xs:element name="derivativ eTransaction"
type="DERIVATIV E_TRANSACTION"/>
<xs:element name="derivativ eHolding"
type="DERIVATIV E_HOLDING"/>
</xs:choice>
</xs:complexType>

<xs:element name="ownership Document"
sql:relation="o wnershipDocumen t">
<xs:complexType >
<xs:sequence>
<xs:element name="schemaVer sion"
sql:field="sche maVersion" type="SCHEMA_VE RSION" minOccurs="0"
maxOccurs="1"/>
<xs:element name="documentT ype"
sql:field="docu mentType" type="DOCUMENT_ TYPE" minOccurs="1"
maxOccurs="1"/>
<xs:element name="periodOfR eport"
sql:field="peri odOfReport" type="xs:date" minOccurs="1"
maxOccurs="1"/>
<xs:element
name="notSubjec tToSection16"sq l:field="notSub jectToSection16 "
type="xs:boolea n" minOccurs="0" maxOccurs="1"/>
<xs:element name="issuer"
sql:field="issu er" type="ISSUER" minOccurs="1"
maxOccurs="1"/>
<xs:element name="reporting Owner"
sql:field="repo rtingOwner" type="REPORTING _OWNER" minOccurs="1"
maxOccurs="10"/>
<xs:element name="nonDeriva tiveTable"
sql:field="nonD erivativeTable" type="NONDERIVA TIVE_TABLE"
minOccurs="0" maxOccurs="1"/>
<xs:element name="derivativ eTable"
sql:field="deri vativeTable" type="DERIVATIV E_TABLE" minOccurs="0"
maxOccurs="1"/>
<xs:element name="footnotes "
sql:field="foot notes" type="FOOTNOTE_ GROUP" minOccurs="0"
maxOccurs="1"/>
<xs:element name="remarks"
sql:field="rema rks" type="STRING_20 00" minOccurs="0"
maxOccurs="1"/>
<xs:element name="ownerSign ature"
sql:field="owne rSignature" type="SIGNATURE " minOccurs="1"
maxOccurs="10"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

*** Sent via Developersdex http://www.developersdex.com ***
Nov 12 '05 #1
0 1581

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3827
by: Cat | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm having trouble getting my head around the reason the that following file won't validate with the following error output in Xerces version 2.6.0 and XSLTC version 2.5.2 ( from the standard jdk1.5.0 beta ). Is there something I'm missing from the spec? ============ OUTPUT (wrapped) =================
4
2298
by: Lars Geldner | last post by:
Hello, I'm searching for a possibility to define a complex type using xml schema that can only be derived by restriction. The sub-complex type should have a content model that only contains elements which have types that are subsets of the element types in the super-complex type. For example: <xs:element name="A" type="A_Type" abstract="true"/> <xs:element name="B" type="B_Type" abstract="true"/>
1
505
by: hre1 | last post by:
hello stan, thank you very much for your fast replay! your solution will help to solve my problem. but i try to understand !why! sqc and xmlspy produce this messages: SQC means:TYPE REFINEMENT ERROR (content type incompatible with the content type of the basetype) and
1
1168
by: mahanatti_net | last post by:
Greetings. Below is the schema snippet I am trying to explore attributegroups and attribute's use property. However I am getting a validation error saying "undefined value for base encountered", pointing to <xs:restriction>. Please help. <?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:attributeGroup name="grp">...
5
1676
by: bclark76 | last post by:
I am getting a strange error, maybe someone knows why it is occurring.. I get the following error when I try to validate Untitled8.xml in Altova XMLSPY: Validation error in another file: Untitled3.xsd The message in XMLSPY in Untitled3.xsd is: The file is not valid: The content model of complex type { no name } is not a valid restriction of the content model of complex type 'Condiment_Type'
1
3636
by: Mac | last post by:
I'm trying to validate input from an xml source to a dataset in dotnet2.0. As far as I can see, type errors correctly cause an exception, but values that are the correct type but do not satisify xsd:restriction conditions are ingested without a murmur. Is this a bug or a feature? Very frustrating. Evidence: 1) XML data <?xml version="1.0" encoding="utf-8"?>
1
1949
by: brucepickford001 | last post by:
Hi, I have a not simple problem. I want the following XML to be schema valid <PopulationDemographic> <PersonName>Joe Blogs</PersonName> <Age>2</Age> <Category>baby</Category> </PopulationDemographic>
6
4288
by: burkley | last post by:
In XML Schema, is it possible to derive a complex type via restriction and have the new derived type be in a different namespace than the original base type? I've banged on this for 2 days now and I'm starting to think the answer is no. I've searched this group and have not seen anything discussing this. the base type. All values of the restricted type are also valid according to the base type".
3
3857
by: Kai Schlamp | last post by:
Hello! In my schema I have the following: <xs:complexType name="textareaType"> <xs:simpleContent> <xs:restriction base="xs:string"> <xs:attribute ref="label" use="required" /> </xs:restriction> </xs:simpleContent>
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9822
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7169
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5851
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4676
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4271
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.