Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > src-resolve: Cannot resolve the name ...

Reply
Thread Tools

src-resolve: Cannot resolve the name ...

 
 
ivanet@gmail.com
Guest
Posts: n/a
 
      03-22-2007
Hello everyone,

I am trying to use the following Schema but I get the error "src-
resolve: Cannot resolve the name 'ValuesList' to a(n) 'element
declaration' component." at line 144.

I have been reading http://www.w3.org/TR/xmlschema-1/#src-resolve, but
I don't get what is wrong. Can anyone give me a hint?

Thanks in advance.


<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlnss="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="StartDate" type="xs:date"/>
<xs:element name="StartTime" type="xs:time"/>
<xs:element name="Duration" type="xs:duration"/>
<xs:element name="UniqueID" type="xs:string"/>
<xs:element name="StudyID" type="xs:string"/>
<xs:element name="SiteID" type="xs:string"/>
<xs:element name="InvestigatorID" type="xs:string"/>
<xs:element name="UniqueSubjectID" type="xs:string"/>
<xs:element name="SubjectID" type="xs:string"/>
<xs:element name="SubjectAge" type="xs:duration"/>
<xs:element name="SubjectRace" type="xs:string"/>
<xs:element name="TreatmentCode" type="xs:string"/>
<xs:element name="TreatmentGroup" type="xs:string"/>
<xs:element name="Country" type="xs:string"/>
<xs:element name="VisitNumber" type="xs:string"/>
<xs:element name="VisitDay" type="xs:string"/>
<xs:element name="VisitName" type="xs:string"/>
<xs:element name="DisplayText" type="xs:string"/>
<xs:element name="Comment" type="xs:string"/>
<xs:element name="TimeSinceSessionStart" type="xs:duration"/>
<xs:element name="TimeDuration" type="xs:duration"/>
<xs:element name="Type" type="xs:string"/>
<xs:element name="Manufacturer" type="xs:string"/>
<xs:element name="Model" type="xs:string"/>
<xs:element name="SerialNumber" type="xs:string"/>
<xs:element name="DeviceID" type="xs:string"/>
<xs:element name="SoftwareVersion" type="xs:string"/>
<xs:element name="XOffset" type="xs:float"/>
<xs:element name="Connected" type="xs:boolean"/>
<xs:element name="AspectRatio" type="xs:float"/>
<xs:element name="BeginningValue" type="xs:float"/>
<xs:element name="EndingValue" type="xs:float"/>
<xs:element name="Unit" type="xs:string"/>
<xs:element name="MinorTickInterval" type="xs:float"/>
<xs:element name="MajorTickInterval" type="xs:float"/>
<xs:element name="LogScale" type="xs:boolean"/>
<xs:element name="RealTime" type="xs:boolean"/>
<xs:element name="Scale" type="xs:float"/>
<xs:element name="Offset" type="xs:float"/>
<xs:element name="InitialValue" type="xs:float"/>
<xs:element name="Increment" type="xs:float"/>
<xs:element name="YValue" type="xs:float"/>
<xs:element name="XValue" type="xs:float"/>
<xs:element name="RecordingSessionPlots">
<xs:complexType>
<xs:sequence>
<xs:element ref="StartDate"/>
<xs:element ref="StartTime"/>
<xs:element ref="Duration" minOccurs="0"/>
<xs:element ref="UniqueID" minOccurs="0"/>
<xs:element name="PlotGroup" type="PlotGroupType"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="TrialIdentifiers"
type="TrialIdentifiersType" minOccurs="0"/>
<xs:element name="RecordingDevice"
type="RecordingDeviceType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="FormatVersion" fixed="1.0"/>
</xs:complexType>
</xs:element>
<xs:complexType name="TrialIdentifiersType">
<xs:sequence>
<xs:element ref="StudyID"/>
<xs:element ref="SiteID" minOccurs="0"/>
<xs:element ref="InvestigatorID" minOccurs="0"/>
<xs:element ref="UniqueSubjectID" minOccurs="0"/>
<xs:element ref="SubjectID" minOccurs="0"/>
<xs:element ref="SubjectAge" minOccurs="0"/>
<xs:element name="SubjectSex" type="SexType" minOccurs="0"/
>

<xs:element ref="SubjectRace" minOccurs="0"/>
<xs:element ref="TreatmentCode" minOccurs="0"/>
<xs:element ref="TreatmentGroup" minOccurs="0"/>
<xs:element ref="Country" minOccurs="0"/>
<xs:element ref="VisitNumber" minOccurs="0"/>
<xs:element ref="VisitDay" minOccurs="0"/>
<xs:element ref="VisitName" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="RecordingDeviceType">
<xs:sequence>
<xs:element name="Type" minOccurs="0"/>
<xs:element name="Manufacturer" minOccurs="0"/>
<xs:element name="Model" minOccurs="0"/>
<xs:element name="SerialNumber" minOccurs="0"/>
<xs:element name="DeviceID" minOccurs="0"/>
<xs:element name="SoftwareVersion" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PlotGroupType">
<xs:sequence>
<xs:element name="Label" type="PlotGroupLabelType"/>
<xs:element ref="Comment" minOccurs="0"/>
<xs:element ref="TimeSinceSessionStart"/>
<!-- default="P0Y"/> -->
<xs:element ref="TimeDuration" minOccurs="0"/>
<xs:element name="XAxisDomain" type="XAxisDomainType"/>
<xs:element name="XYPlot" type="XYPlotType" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="XAxisNotation" type="AxisNotationType"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PointNotationType">
<xs:sequence>
<xs:element ref="XValue"/>
<xs:element ref="YValue"/>
<xs:element name="Label" type="PointNotationLabelType"/>
<xs:element ref="Comment" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="XAxisDomainType">
<xs:sequence>
<xs:element ref="Unit"/>
<xs:element name="Label" type="XAxisDomainLabelType"/>
<xs:element ref="MinorTickInterval" minOccurs="0"/>
<xs:element ref="MajorTickInterval" minOccurs="0"/>
<xs:element ref="LogScale"/>
<!-- default="false"/> -->
<xs:element ref="RealTime"/>
<!-- default="false"/> -->
</xs:sequence>
</xs:complexType>
<xs:complexType name="AxisNotationType">
<xs:sequence>
<xs:element ref="BeginningValue"/>
<xs:element ref="EndingValue" minOccurs="0"/>
<xs:element name="Label" type="AxisNotationLabelType"/>
<xs:element ref="Comment" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ValuesList">
<xs:list itemType="xs:float"/>
</xs:simpleType>
<xs:complexType name="ValuesType">
<xs:sequence>
<xs:element ref="Scale"/>
<!-- default="1"/> -->
<xs:element ref="Offset"/>
<!-- default="0"/> -->
<xs:choice minOccurs="0">
<xs:sequence minOccurs="0">
<xs:element ref="InitialValue" minOccurs="0"/>
<xs:element ref="Increment" minOccurs="0"/>
</xs:sequence>
<xs:element ref="ValuesList" minOccurs="0"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="XYPlotType">
<xs:sequence>
<xs:element name="Label" type="XYPlotLabelType"/>
<xs:element ref="Comment" minOccurs="0"/>
<xs:element ref="XOffset"/>
<!-- </xs:element>default="0"/> -->
<xs:element ref="Connected"/>
<!-- default="true"/> -->
<xs:element ref="AspectRatio"/>
<!-- default="1"/> -->
<xs:element name="YAxisDomain" type="YAxisDomainType"/>
<xs:element name="XValues" type="ValuesType"/>
<xs:element name="YValues" type="ValuesType"/>
<xs:element name="PointNotation" type="PointNotationType"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="XAxisNotation" type="AxisNotationType"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="YAxisNotation" type="AxisNotationType"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="YAxisDomainType">
<xs:sequence>
<xs:element ref="Unit"/>
<xs:element name="Label" type="YAxisDomainLabelType"/>
<xs:element ref="MinorTickInterval" minOccurs="0"/>
<xs:element ref="MajorTickInterval" minOccurs="0"/>
<xs:element ref="LogScale"/>
<!-- default="false"/> -->
</xs:sequence>
</xs:complexType>
<xs:simpleType name="SexType">
<xs:restriction base="xs:string">
<xs:enumeration value="M">
<xs:annotation>
<xs:documentation>Male</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="F">
<xs:annotation>
<xs:documentation>Female</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="PlotGroupLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="PlotGroupLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PlotGroupLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="AxisNotationLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="AxisNotationLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="AxisNotationLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="PointNotationLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="PointNotationLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="PointNotationLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="XAxisDomainLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="XAxisDomainLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="XAxisDomainLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="YAxisDomainLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="YAxisDomainLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="YAxisDomainLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="XYPlotLabelType">
<xs:sequence>
<xs:element ref="DisplayText"/>
<xs:element name="Code" type="XYPlotLabelCodeType"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="XYPlotLabelCodeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>

 
Reply With Quote
 
 
 
 
dick.deneer@donkeydevelopment.com
Guest
Posts: n/a
 
      03-23-2007
> <xs:simpleType name="ValuesList">
> <xs:list itemType="xs:float"/>
> </xs:simpleType>


You are referring to a type and not and element.
Change:

<xs:element name="ValuesList" type="ValuesListType"/>
<xs:simpleType name="ValuesListType">
<xs:list itemType="xs:float"/>
</xs:simpleType>

Regards
DickD

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resolve java.awt.AWTException: cannot open XIM problem in Java? Arun Java 0 05-18-2004 11:18 AM
Cannot resolve symbol Jo Java 3 04-10-2004 06:12 PM
cannot resolve memory leak . Shlomi Java 5 11-17-2003 04:31 PM
Re: Cannot resolve Symbol (class) but why? (JSP) @lex-kid Java 2 07-07-2003 07:26 AM
Re: Cannot resolve Symbol (class) but why? (JSP) sufia Java 1 07-06-2003 07:06 PM



Advertisments