XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] xs:complexType node element invalid inside another complexType?

Hi,

The boldness seems to have been lost so it's not clear which is the element 
in question.  Also, what error messages are you getting?

If it's the bit you've commented out, then the correct XML schema for that 
is something like:

<xs:element name="aliasLookUpType">
   <xs:complexType>
                <xs:sequence>
                <xs:element name="name_last_lookup" type="xs:string"/>
                <xs:element name="id_ssn_lookup" type="xs:string"/>
                <xs:element name="arrestee_dob_lookup" type="xs:date"/>
                </xs:sequence>
                </xs:complexType>
</xs:element>

i.e. your defining an element that is a complexType, not a complexType on 
its own.

HTH,

Pete Cordell
Codalogic
Visit http://www.codalogic.com/lmx/ for XML C++ data binding

----- Original Message ----- 
From: "XGuy" <ilangocal@yahoo.com>
To: <xml-dev@lists.xml.org>
Sent: Tuesday, February 05, 2008 5:30 PM
Subject: [xml-dev] xs:complexType node element invalid inside another 
complexType?


>
> Hi
> I have the following schema. Recently I have introduced a new element (the
> one shown in bold) and I am getting errors. I am not sure how or where to
> introduce this element. I am trying to model a "repeat-structure" in an
> XForm that is composed of elements "name_last_lookup" (or "name_list" is
> preferred because it is already there), "id_ssn_lookup" (id_ssn is 
> preferred
> because it is already defined), "arrestee_dob_lookup" (arrestee_dob" is
> preferred because it is already defined).
>
> Why are these errors being generated? How would I design this new element 
> to
> avoid any errors?
>
>
> --------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:fe="http://www.i.com/bpms/workflow/xforms/MyForms/CComplaint";
>
> xmlns:CreateComplaint="http://www.i.com/bpms/workflow/xforms/MyForms/CComplaint";
> targetNamespace="http://www.i.com/bpms/workflow/xforms/MyForms/CComplaint";
> elementFormDefault="qualified">
>
> <xs:element name="output">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="name_last" type="xs:string"/>
> <xs:element name="name_first" type="xs:string"/>
> <xs:element name="name_suffix" type="xs:string"/>
> <xs:element name="name_middle" type="xs:string"/>
> <xs:element name="address_street_2" type="xs:string"/>
> <xs:element name="address_street_1" type="xs:string"/>
> <xs:element name="address_po_box" type="xs:string"/>
> <xs:element name="address_city" type="xs:string"/>
> <xs:element name="address_county" type="xs:string"/>
> <xs:element name="address_state" type="xs:string"/>
> <xs:element name="address_zip" type="xs:string"/>
> <xs:element name="address_country" type="xs:string"/>
> <xs:element name="incident_date_to" type="xs:date"/>
> <xs:element name="sub_incident_date_to" type="xs:date"/>
> <xs:element name="incident_date_from" type="xs:date"/>
> <xs:element name="officer_name" type="xs:string"/>
> <xs:element name="vehicle_state_issued" type="xs:string"/>
> <xs:element name="vehicle_color" type="xs:string"/>
> <xs:element name="vehicle_model" type="xs:string"/>
> <xs:element name="vehicle_make" type="xs:string"/>
> <xs:element name="vehicle_year" type="xs:string"/>
> <xs:element name="vehicle_inspection_sticker" type="xs:string"/>
> <xs:element name="vehicle_VIN" type="xs:string"/>
> <xs:element name="vehicle_license_plate" type="xs:string"/>
> <xs:element name="Vehicle_Information_Text" type="xs:string"/>
> <xs:element name="incident_time" type="xs:string"/>
> <xs:element name="type_complaint" type="xs:string"/>
> <xs:element name="arrest_type" type="xs:string"/>
> <xs:element name="officer_department" type="xs:string"/>
> <xs:element name="id_ccr" type="xs:string"/>
> <xs:element name="id_livescan_no" type="xs:string"/>
> <xs:element name="incident_location" type="xs:string"/>
> <xs:element name="arrest_location" type="xs:string"/>
> <xs:element name="arrestee_dob" type="xs:date"/>
> <xs:element name="id_drivers_license" type="xs:string"/>
> <xs:element name="licensure_state" type="xs:string"/>
> <xs:element name="arrest_classification" type="xs:string"/>
> <xs:element name="id_ssn" type="xs:string"/>
> <xs:element name="phys_desc_build" type="xs:string"/>
> <xs:element name="phys_desc_hair" type="xs:string"/>
> <xs:element name="phys_desc_eyes" type="xs:string"/>
> <xs:element name="phys_desc_sex" type="xs:string"/>
> <xs:element name="phys_desc_race" type="xs:string"/>
> <xs:element name="phys_desc_weight" type="xs:string"/>
> <xs:element name="phys_desc_height" type="xs:string"/>
> <xs:element name="id_center" type="xs:string"/>
> <xs:element name="id_idnum" type="xs:string"/>
>                <xs:element name="arrest_time" type="xs:string"/>
>                <xs:element name="arrest_date" type="xs:date"/>
>                <xs:element name="take_defendant" type="xs:string"/>
> <xs:element name="arrestee_age" type="xs:string"/>
>                <xs:element name="controls_save" type="xs:string"/>
>                <xs:element name="super_review_decision" type="xs:string"/>
>                <xs:element name="Supervisor_Review_Decision_Text"
> type="xs:string"/>
>                <xs:element name="SUPERVISOR_REVIEW_Text" 
> type="xs:string"/>
>                <xs:element name="super_review_comments" type="xs:string"/>
>                <xs:element name="da_review_decision" type="xs:string"/>
>                <xs:element name="DA_Decision_Text" type="xs:string"/>
>                <xs:element name="DA_REVIEW_Text" type="xs:string"/>
>                <xs:element name="da_review_comments" type="xs:string"/>
> <xs:element name="affadavit_magistrate" type="xs:string"/>
>                <xs:element name="affadavit_accuse_unknown"
> type="xs:string"/>
>                <xs:element name="affadavit_narrative" type="xs:string"/>
>                <xs:element name="I_accuse_John_Doe_Text" 
> type="xs:string"/>
>                <xs:element name="I_accuse_name_unknown_Text"
> type="xs:string"/>
>                <xs:element name="I_accuse_the_above_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_accuse_above" 
> type="xs:string"/>
>                <xs:element name="Spell_Check_Aff_Text" type="xs:string"/>
>                <xs:element name="AFFADAVIT_NARRATIVE_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_date_how_both_know"
> type="xs:string"/>
>                <xs:element name="How_both_knows_Text" type="xs:string"/>
>                <xs:element name="affadavit_how_source_knows"
> type="xs:string"/>
>                <xs:element name="How_source_know_Text" type="xs:string"/>
>                <xs:element name="affadavit_how_affiant_knows"
> type="xs:string"/>
>                <xs:element name="How_Affiant_knows_Text" 
> type="xs:string"/>
>                <xs:element name="Same_as_Arrest_Date_Text2"
> type="xs:string"/>
>                <xs:element name="affadavit_date_source_received_info"
> type="xs:date"/>
>                <xs:element name="Date_source_received_info_Text"
> type="xs:string"/>
>                <xs:element name="Same_as_Arrest_Date_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_date_affiant_received_info"
> type="xs:date"/>
>                <xs:element name="Date_Affiant_received_info_Text"
> type="xs:string"/>
>                <xs:element name="WHEN_Text" type="xs:string"/>
>                <xs:element name="HOW_Text" type="xs:string"/>
>                <xs:element name="AFFADAVIT_INFORMATION_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_other_participants"
> type="xs:string"/>
>                <xs:element
> name="Other_Participants_Do_not_include_above_Defendant" 
> type="xs:string"/>
>                <xs:element name="affadavit_accuse_doe" type="xs:string"/>
>                <xs:element name="affadavit_unknown_desc" 
> type="xs:string"/>
>                <xs:element name="COMPLAINT_INFORMATION_Text"
> type="xs:string"/>
>                <xs:element name="Create_Offenses_Text" type="xs:string"/>
>                <xs:element name="ADDVIE_ALIASES_Text" type="xs:string"/>
>                <xs:element name="id_otn" type="xs:string"/>
>                <xs:element name="source_presumed" type="xs:boolean"/>
>                <xs:element name="source_information" type="xs:boolean"/>
>                <xs:element name="defendant_reputation" type="xs:boolean"/>
>                <xs:element name="source_declaration" type="xs:boolean"/>
>                <xs:element name="affiant_corroborates" type="xs:boolean"/>
>                <xs:element name="Arrestee_Info_text" type="xs:string"/>
> <xs:element name="ex_123456789_Text" type="xs:string"/>
>                <xs:element
> name="Affiant_and__or_other_Police_Officers_Text" type="xs:string"/>
>                <xs:element name="This_source_made_declaration_Text"
> type="xs:string"/>
>                <xs:element name="Source_has_given_information_Text"
> type="xs:boolean"/>
>                <xs:element name="Defendants_reputation_Text"
> type="xs:boolean"/>
>                <xs:element name="Source_is_presumed_reliable_Text"
> type="xs:boolean"/>
>                <xs:element name="Please_check_all_that_apply_Text"
> type="xs:string"/>
>                <xs:element name="why_affiant_believes_Text"
> type="xs:string"/>
>                <xs:element name="Refresh_Offenses_Text" type="xs:string"/>
>
>                <xs:element
> name="Add_View_Dialog_Message_ARRESTEE_INFORMATION_70" type="xs:string"/>
>                <xs:element name="Arrestee_Alias_ARRESTEE_INFORMATION_71"
> type="xs:string"/>
>
>                <!--<xs:complexType name="aliasLookUpType">
>                <xs:sequence>
>                <xs:element name="name_last_lookup" type="xs:string"/>
>                <xs:element name="id_ssn_lookup" type="xs:string"/>
>                <xs:element name="arrestee_dob_lookup" type="xs:date"/>
>                </xs:sequence>
>                </xs:complexType>-->
>
> </xs:sequence>
> <xs:attribute name="taskId" type="xs:string"/>
> <xs:attribute name="participantToken" type="xs:string"/>
> <xs:attribute name="user" type="xs:string"/>
> <xs:attribute name="formUrl" type="xs:string"/>
> </xs:complexType>
> </xs:element>
>
> <xs:element name="input">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="name_last" type="xs:string"/>
> <xs:element name="name_first" type="xs:string"/>
> <xs:element name="name_suffix" type="xs:string"/>
> <xs:element name="name_middle" type="xs:string"/>
> <xs:element name="address_street_2" type="xs:string"/>
> <xs:element name="address_street_1" type="xs:string"/>
> <xs:element name="address_po_box" type="xs:string"/>
> <xs:element name="address_city" type="xs:string"/>
> <xs:element name="address_county" type="xs:string"/>
> <xs:element name="address_state" type="xs:string"/>
> <xs:element name="address_zip" type="xs:string"/>
> <xs:element name="address_country" type="xs:string"/>
> <xs:element name="incident_date_to" type="xs:string"/>
> <xs:element name="sub_incident_date_to" type="xs:date"/>
> <xs:element name="incident_date_from" type="xs:string"/>
> <xs:element name="officer_name" type="xs:string"/>
> <xs:element name="vehicle_state_issued" type="xs:string"/>
> <xs:element name="vehicle_color" type="xs:string"/>
> <xs:element name="vehicle_model" type="xs:string"/>
> <xs:element name="vehicle_make" type="xs:string"/>
> <xs:element name="vehicle_year" type="xs:string"/>
> <xs:element name="vehicle_inspection_sticker" type="xs:string"/>
> <xs:element name="vehicle_VIN" type="xs:string"/>
> <xs:element name="vehicle_license_plate" type="xs:string"/>
> <xs:element name="Vehicle_Information_Text" type="xs:string"/>
> <xs:element name="incident_time" type="xs:string"/>
> <xs:element name="type_complaint" type="xs:string"/>
> <xs:element name="arrest_type" type="xs:string"/>
> <xs:element name="officer_department" type="xs:string"/>
> <xs:element name="id_ccr" type="xs:string"/>
> <xs:element name="id_livescan_no" type="xs:string"/>
> <xs:element name="incident_location" type="xs:string"/>
> <xs:element name="arrest_location" type="xs:string"/>
> <xs:element name="arrestee_dob" type="xs:date"/>
> <xs:element name="id_drivers_license" type="xs:string"/>
> <xs:element name="licensure_state" type="xs:string"/>
> <xs:element name="arrest_classification" type="xs:string"/>
> <xs:element name="id_ssn" type="xs:string"/>
> <xs:element name="phys_desc_build" type="xs:string"/>
> <xs:element name="phys_desc_hair" type="xs:string"/>
> <xs:element name="phys_desc_eyes" type="xs:string"/>
> <xs:element name="phys_desc_sex" type="xs:string"/>
> <xs:element name="phys_desc_race" type="xs:string"/>
> <xs:element name="phys_desc_weight" type="xs:string"/>
> <xs:element name="phys_desc_height" type="xs:string"/>
> <xs:element name="id_center" type="xs:string"/>
> <xs:element name="id_idnum" type="xs:string"/>
>                <xs:element name="arrest_time" type="xs:string"/>
>                <xs:element name="arrest_date" type="xs:date"/>
>                <xs:element name="take_defendant" type="xs:string"/>
> <xs:element name="arrestee_age" type="xs:string"/>
>                <xs:element name="controls_save" type="xs:string"/>
>                <xs:element name="super_review_decision" type="xs:string"/>
>                <xs:element name="Supervisor_Review_Decision_Text"
> type="xs:string"/>
>                <xs:element name="SUPERVISOR_REVIEW_Text" 
> type="xs:string"/>
>                <xs:element name="super_review_comments" type="xs:string"/>
>                <xs:element name="da_review_decision" type="xs:string"/>
>                <xs:element name="DA_Decision_Text" type="xs:string"/>
>                <xs:element name="DA_REVIEW_Text" type="xs:string"/>
>                <xs:element name="da_review_comments" type="xs:string"/>
> <xs:element name="affadavit_magistrate" type="xs:string"/>
>                <xs:element name="affadavit_accuse_unknown"
> type="xs:string"/>
>                <xs:element name="affadavit_narrative" type="xs:string"/>
>                <xs:element name="I_accuse_John_Doe_Text" 
> type="xs:string"/>
>                <xs:element name="I_accuse_name_unknown_Text"
> type="xs:string"/>
>                <xs:element name="I_accuse_the_above_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_accuse_above" 
> type="xs:string"/>
>                <xs:element name="Spell_Check_Aff_Text" type="xs:string"/>
>                <xs:element name="AFFADAVIT_NARRATIVE_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_date_how_both_know"
> type="xs:string"/>
>                <xs:element name="How_both_know_Text" type="xs:string"/>
>                <xs:element name="affadavit_how_source_knows"
> type="xs:string"/>
>                <xs:element name="How_source_knows_Text" type="xs:string"/>
>                <xs:element name="affadavit_how_affiant_knows"
> type="xs:string"/>
>                <xs:element name="How_Affiant_knows_Text" 
> type="xs:string"/>
>                <xs:element name="Same_as_Arrest_Date_Text2"
> type="xs:string"/>
>                <xs:element name="affadavit_date_source_received_info"
> type="xs:date"/>
>                <xs:element name="Date_source_received_info_Text"
> type="xs:string"/>
>                <xs:element name="Same_as_Arrest_Date_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_date_affiant_received_info"
> type="xs:date"/>
>                <xs:element name="Date_Affiant_received_info_Text"
> type="xs:string"/>
>                <xs:element name="WHEN_Text" type="xs:string"/>
>                <xs:element name="HOW_Text" type="xs:string"/>
>                <xs:element name="AFFADAVIT_INFORMATION_Text"
> type="xs:string"/>
>                <xs:element name="affadavit_other_participants"
> type="xs:string"/>
>                <xs:element
> name="Other_Participants_Do_not_include_above_Defendant" 
> type="xs:string"/>
>                <xs:element name="affadavit_accuse_doe" type="xs:string"/>
>                <xs:element name="affadavit_unknown_desc" 
> type="xs:string"/>
>                <xs:element name="COMPLAINT_INFORMATION_Text"
> type="xs:string"/>
>                <xs:element name="Create_Offenses_Text" type="xs:string"/>
>                <xs:element name="ADDVIE_ALIASES_Text" type="xs:string"/>
>                <xs:element name="id_otn" type="xs:string"/>
>                <xs:element name="source_presumed" type="xs:boolean"/>
>                <xs:element name="source_information" type="xs:boolean"/>
>                <xs:element name="defendant_reputation" type="xs:boolean"/>
>                <xs:element name="source_declaration" type="xs:boolean"/>
>                <xs:element name="affiant_corroborates" type="xs:boolean"/>
>
> <xs:element name="Arrestee_Info_text" type="xs:string"/>
> <xs:element name="ex_123456789_Text" type="xs:string"/>
>                <xs:element
> name="Affiant_and__or_other_Police_Officers_Text" type="xs:string"/>
>                <xs:element name="This_source_made_declaration_Text"
> type="xs:string"/>
>                <xs:element name="Source_has_given_information_Text"
> type="xs:string"/>
>                <xs:element name="Defendants_reputation_Text"
> type="xs:string"/>
>                <xs:element name="Source_is_presumed_reliable_Text"
> type="xs:string"/>
>                <xs:element name="Please_check_all_that_apply_Text"
> type="xs:string"/>
>                <xs:element name="why_affiant_believes_Text"
> type="xs:string"/>
>                <xs:element name="Refresh_Offenses_Text" type="xs:string"/>
>
>                <xs:element
> name="Add_View_Dialog_Message_ARRESTEE_INFORMATION_70" type="xs:string"/>
>                <xs:element name="Arrestee_Alias_ARRESTEE_INFORMATION_71"
> type="xs:string"/>
>
>               <!--<xs:complexType name="aliasLookUpType">
>                <xs:sequence>
>                <xs:element name="name_last_lookup" type="xs:string"/>
>                <xs:element name="id_ssn_lookup" type="xs:string"/>
>                <xs:element name="arrestee_dob_lookup" type="xs:date"/>
>                </xs:sequence>
>                </xs:complexType>-->
> </xs:sequence>
> </xs:complexType>
>
> </xs:element>
>
> </xs:schema>
> -- 
> View this message in context: 
> http://www.nabble.com/xs%3AcomplexType-node-element-invalid-inside-another-complexType--tp15294072p15294072.html
> Sent from the Xml.org Dev mailing list archive at Nabble.com.
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS