<?xml version="1.0" encoding="utf-8" ?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
  <title>Validations for mapping</title>
  <pattern id="prohibitions">
    <rule context="HumanResource">
      <assert test="empty(@lang)">Element <name/> may not have attribute lang</assert>
      <assert test="empty(ResourceScreening)">Element <name/> may not contain element ResourceScreening</assert>
      <assert test="empty(Preferences)">Element <name/> may not contain element Preferences</assert>
      <assert test="empty(SocialInsurance)">Element <name/> may not contain element SocialInsurance</assert>
    </rule>
    <rule context="HumanResource/HumanResourceId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
    </rule>
    <rule context="HumanResource/HumanResourceId/IdValue">
      <assert test="empty(@name)">Element <name/> may not have attribute name</assert>
    </rule>
    <rule context="HumanResource/HumanResourceStatus">
      <assert test="empty(@statusChangeReason)">Element <name/> may not have attribute statusChangeReason</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation">
      <assert test="empty(IntermediaryId)">Element <name/> may not contain element IntermediaryId</assert>
      <assert test="empty(PositionId)">Element <name/> may not contain element PositionId</assert>
      <assert test="empty(AssignmentId)">Element <name/> may not contain element AssignmentId</assert>
      <assert test="empty(StaffingSupplierOrgUnitId)">Element <name/> may not contain element StaffingSupplierOrgUnitId</assert>
      <assert test="empty(MasterOrderId)">Element <name/> may not contain element MasterOrderId</assert>
      <assert test="empty(TimeCardId)">Element <name/> may not contain element TimeCardId</assert>
      <assert test="empty(InvoiceId)">Element <name/> may not contain element InvoiceId</assert>
      <assert test="empty(BillToEntityId)">Element <name/> may not contain element BillToEntityId</assert>
      <assert test="empty(StaffingOrganizationId)">Element <name/> may not contain element StaffingOrganizationId</assert>
      <assert test="empty(UserArea)">Element <name/> may not contain element UserArea</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingSupplierId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingSupplierId/IdValue">
      <assert test="empty(@name)">Element <name/> may not have attribute name</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerId/IdValue">
      <assert test="empty(@name)">Element <name/> may not have attribute name</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/OrderId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/OrderId/IdValue">
      <assert test="empty(@name)">Element <name/> may not have attribute name</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerOrgUnitId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerOrgUnitId/IdValue">
      <assert test="empty(@name)">Element <name/> may not have attribute name</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation">
      <assert test="empty(ResourceType)">Element <name/> may not contain element ResourceType</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/PersonName">
      <assert test="empty(@script)">Element <name/> may not have attribute script</assert>
      <assert test="empty(LegalName)">Element <name/> may not contain element LegalName</assert>
      <assert test="empty(Affix)">Element <name/> may not contain element Affix</assert>
      <assert test="empty(AlternateScript)">Element <name/> may not contain element AlternateScript</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/EntityContactInfo/PersonName">
      <assert test="empty(@script)">Element <name/> may not have attribute script</assert>
      <assert test="empty(LegalName)">Element <name/> may not contain element LegalName</assert>
      <assert test="empty(PreferredGivenName)">Element <name/> may not contain element PreferredGivenName</assert>
      <assert test="empty(MiddleName)">Element <name/> may not contain element MiddleName</assert>
      <assert test="empty(Affix)">Element <name/> may not contain element Affix</assert>
      <assert test="empty(AlternateScript)">Element <name/> may not contain element AlternateScript</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/EntityContactInfo/PersonName/FamilyName">
      <assert test="empty(@primary)">Element <name/> may not have attribute primary</assert>
      <assert test="empty(@prefix)">Element <name/> may not have attribute prefix</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/EntityContactInfo/ContactMethod">
      <assert test="empty(Use)">Element <name/> may not contain element Use</assert>
      <assert test="empty(Location)">Element <name/> may not contain element Location</assert>
      <assert test="empty(WhenAvailable)">Element <name/> may not contain element WhenAvailable</assert>
      <assert test="empty(Mobile)">Element <name/> may not contain element Mobile</assert>
      <assert test="empty(Fax)">Element <name/> may not contain element Fax</assert>
      <assert test="empty(Pager)">Element <name/> may not contain element Pager</assert>
      <assert test="empty(TTYTDD)">Element <name/> may not contain element TTYTDD</assert>
      <assert test="empty(InternetWebAddress)">Element <name/> may not contain element InternetWebAddress</assert>
      <assert test="empty(PostalAddress)">Element <name/> may not contain element PostalAddress</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/EntityContactInfo/ContactMethod/Telephone">
      <assert test="empty(InternationalCountryCode)">Element <name/> may not contain element InternationalCountryCode</assert>
      <assert test="empty(NationalNumber)">Element <name/> may not contain element NationalNumber</assert>
      <assert test="empty(AreaCityCode)">Element <name/> may not contain element AreaCityCode</assert>
      <assert test="empty(SubscriberNumber)">Element <name/> may not contain element SubscriberNumber</assert>
      <assert test="empty(Extension)">Element <name/> may not contain element Extension</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/PostalAddress">
      <assert test="empty(@type)">Element <name/> may not have attribute type</assert>
      <assert test="empty(Region)">Element <name/> may not contain element Region</assert>
      <assert test="empty(Recipient)">Element <name/> may not contain element Recipient</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/PostalAddress/DeliveryAddress">
      <assert test="empty(AddressLine)">Element <name/> may not contain element AddressLine</assert>
      <assert test="empty(PostOfficeBox)">Element <name/> may not contain element PostOfficeBox</assert>
    </rule>
    <rule context="HumanResource/Rates">
      <assert test="empty(@lang)">Element <name/> may not have attribute lang</assert>
      <assert test="empty(ExternalRateSetId)">Element <name/> may not contain element ExternalRateSetId</assert>
      <assert test="empty(Class)">Element <name/> may not contain element Class</assert>
      <assert test="empty(StaffingShiftId)">Element <name/> may not contain element StaffingShiftId</assert>
      <assert test="empty(Multiplier)">Element <name/> may not contain element Multiplier</assert>
      <assert test="empty(Description)">Element <name/> may not contain element Description</assert>
      <assert test="empty(RatesId)">Element <name/> may not contain element RatesId</assert>
      <assert test="empty(CustomerRateClassification)">Element <name/> may not contain element CustomerRateClassification</assert>
      <assert test="empty(BillingMultiplier)">Element <name/> may not contain element BillingMultiplier</assert>
      <assert test="empty(TimeWorkedRounding)">Element <name/> may not contain element TimeWorkedRounding</assert>
    </rule>
    <rule context="HumanResource/Profile">
      <assert test="empty(Competency)">Element <name/> may not contain element Competency</assert>
      <assert test="empty(PositionHeader)">Element <name/> may not contain element PositionHeader</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume">
      <assert test="empty(@lang)">Element <name/> may not have attribute lang</assert>
      <assert test="empty(ResumeId)">Element <name/> may not contain element ResumeId</assert>
      <assert test="empty(DistributionGuidelines)">Element <name/> may not contain element DistributionGuidelines</assert>
      <assert test="empty(NonXMLResume)">Element <name/> may not contain element NonXMLResume</assert>
      <assert test="empty(UserArea)">Element <name/> may not contain element UserArea</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume">
      <assert test="empty(ContactInfo)">Element <name/> may not contain element ContactInfo</assert>
      <assert test="empty(ExecutiveSummary)">Element <name/> may not contain element ExecutiveSummary</assert>
      <assert test="empty(Objective)">Element <name/> may not contain element Objective</assert>
      <assert test="empty(MilitaryHistory)">Element <name/> may not contain element MilitaryHistory</assert>
      <assert test="empty(PatentHistory)">Element <name/> may not contain element PatentHistory</assert>
      <assert test="empty(PublicationHistory)">Element <name/> may not contain element PublicationHistory</assert>
      <assert test="empty(SpeakingEventsHistory)">Element <name/> may not contain element SpeakingEventsHistory</assert>
      <assert test="empty(Languages)">Element <name/> may not contain element Languages</assert>
      <assert test="empty(Achievements)">Element <name/> may not contain element Achievements</assert>
      <assert test="empty(Associations)">Element <name/> may not contain element Associations</assert>
      <assert test="empty(References)">Element <name/> may not contain element References</assert>
      <assert test="empty(SecurityCredentials)">Element <name/> may not contain element SecurityCredentials</assert>
      <assert test="empty(ResumeAdditionalItems)">Element <name/> may not contain element ResumeAdditionalItems</assert>
      <assert test="empty(SupportingMaterials)">Element <name/> may not contain element SupportingMaterials</assert>
      <assert test="empty(ProfessionalAssociations)">Element <name/> may not contain element ProfessionalAssociations</assert>
      <assert test="empty(Comments)">Element <name/> may not contain element Comments</assert>
      <assert test="empty(RevisionDate)">Element <name/> may not contain element RevisionDate</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EmploymentHistory">
      <assert test="empty(EmployerOrg)">Element <name/> may not contain element EmployerOrg</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution">
      <assert test="empty(@schoolType)">Element <name/> may not have attribute schoolType</assert>
      <assert test="empty(SchoolName)">Element <name/> may not contain element SchoolName</assert>
      <assert test="empty(LocationSummary)">Element <name/> may not contain element LocationSummary</assert>
      <assert test="empty(PostalAddress)">Element <name/> may not contain element PostalAddress</assert>
      <assert test="empty(OrganizationUnit)">Element <name/> may not contain element OrganizationUnit</assert>
      <assert test="empty(Major)">Element <name/> may not contain element Major</assert>
      <assert test="empty(Minor)">Element <name/> may not contain element Minor</assert>
      <assert test="empty(Measure)">Element <name/> may not contain element Measure</assert>
      <assert test="empty(DatesOfAttendance)">Element <name/> may not contain element DatesOfAttendance</assert>
      <assert test="empty(Comments)">Element <name/> may not contain element Comments</assert>
      <assert test="empty(ISCEDInstitutionClassification)">Element <name/> may not contain element ISCEDInstitutionClassification</assert>
      <assert test="empty(UserArea)">Element <name/> may not contain element UserArea</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution/School">
      <assert test="empty(InternetDomainName)">Element <name/> may not contain element InternetDomainName</assert>
      <assert test="empty(SchoolId)">Element <name/> may not contain element SchoolId</assert>
      <assert test="empty(SchoolName)">Element <name/> may not contain element SchoolName</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution/Degree">
      <assert test="empty(@graduatingDegree)">Element <name/> may not have attribute graduatingDegree</assert>
      <assert test="empty(@degreeType)">Element <name/> may not have attribute degreeType</assert>
      <assert test="empty(@examPassed)">Element <name/> may not have attribute examPassed</assert>
      <assert test="empty(DegreeName)">Element <name/> may not contain element DegreeName</assert>
      <assert test="empty(DegreeDate)">Element <name/> may not contain element DegreeDate</assert>
      <assert test="empty(OtherHonors)">Element <name/> may not contain element OtherHonors</assert>
      <assert test="empty(DegreeMajor)">Element <name/> may not contain element DegreeMajor</assert>
      <assert test="empty(DegreeMinor)">Element <name/> may not contain element DegreeMinor</assert>
      <assert test="empty(DegreeMeasure)">Element <name/> may not contain element DegreeMeasure</assert>
      <assert test="empty(DatesOfAttendance)">Element <name/> may not contain element DatesOfAttendance</assert>
      <assert test="empty(Comments)">Element <name/> may not contain element Comments</assert>
      <assert test="empty(DegreeClassification)">Element <name/> may not contain element DegreeClassification</assert>
      <assert test="empty(UserArea)">Element <name/> may not contain element UserArea</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution/LocalInstitutionClassification">
      <assert test="empty(Description)">Element <name/> may not contain element Description</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution/LocalInstitutionClassification/Id">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@idOwner)">Element <name/> may not have attribute idOwner</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
      <assert test="empty(IdValue)">Element <name/> may not contain element IdValue</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/LicensesAndCertifications/LicenseOrCertification/EffectiveDate/ValidFrom">
      <assert test="empty(@dateDescription)">Element <name/> may not have attribute dateDescription</assert>
      <assert test="empty(AnyDate)">Element <name/> may not contain element AnyDate</assert>
      <assert test="empty(YearMonth)">Element <name/> may not contain element YearMonth</assert>
      <assert test="empty(Year)">Element <name/> may not contain element Year</assert>
      <assert test="empty(MonthDay)">Element <name/> may not contain element MonthDay</assert>
      <assert test="empty(StringDate)">Element <name/> may not contain element StringDate</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/LicensesAndCertifications/LicenseOrCertification/EffectiveDate/ValidTo">
      <assert test="empty(@dateDescription)">Element <name/> may not have attribute dateDescription</assert>
      <assert test="empty(AnyDate)">Element <name/> may not contain element AnyDate</assert>
      <assert test="empty(YearMonth)">Element <name/> may not contain element YearMonth</assert>
      <assert test="empty(Year)">Element <name/> may not contain element Year</assert>
      <assert test="empty(MonthDay)">Element <name/> may not contain element MonthDay</assert>
      <assert test="empty(StringDate)">Element <name/> may not contain element StringDate</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/LicensesAndCertifications/LicenseOrCertification/EffectiveDate/FirstIssuedDate">
      <assert test="empty(@dateDescription)">Element <name/> may not have attribute dateDescription</assert>
      <assert test="empty(AnyDate)">Element <name/> may not contain element AnyDate</assert>
      <assert test="empty(YearMonth)">Element <name/> may not contain element YearMonth</assert>
      <assert test="empty(Year)">Element <name/> may not contain element Year</assert>
      <assert test="empty(MonthDay)">Element <name/> may not contain element MonthDay</assert>
      <assert test="empty(StringDate)">Element <name/> may not contain element StringDate</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/Qualifications">
      <assert test="empty(QualificationSummary)">Element <name/> may not contain element QualificationSummary</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/Qualifications/Competency">
      <assert test="empty(@required)">Element <name/> may not have attribute required</assert>
      <assert test="empty(CompetencyId)">Element <name/> may not contain element CompetencyId</assert>
      <assert test="empty(TaxonomyId)">Element <name/> may not contain element TaxonomyId</assert>
      <assert test="empty(CompetencyEvidence)">Element <name/> may not contain element CompetencyEvidence</assert>
      <assert test="empty(CompetencyWeight)">Element <name/> may not contain element CompetencyWeight</assert>
      <assert test="empty(Competency)">Element <name/> may not contain element Competency</assert>
      <assert test="empty(UserArea)">Element <name/> may not contain element UserArea</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL">
      <assert test="empty(SupplierContactInfo)">Element <name/> may not contain element SupplierContactInfo</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL/OfferId">
      <assert test="empty(@validFrom)">Element <name/> may not have attribute validFrom</assert>
      <assert test="empty(@idOwner)">Element <name/> may not have attribute idOwner</assert>
      <assert test="empty(@validTo)">Element <name/> may not have attribute validTo</assert>
      <assert test="empty(IdValue)">Element <name/> may not contain element IdValue</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL/StaffingShift">
      <assert test="empty(@lang)">Element <name/> may not have attribute lang</assert>
      <assert test="empty(@shiftPeriod)">Element <name/> may not have attribute shiftPeriod</assert>
      <assert test="empty(Id)">Element <name/> may not contain element Id</assert>
      <assert test="empty(Name)">Element <name/> may not contain element Name</assert>
      <assert test="empty(Hours)">Element <name/> may not contain element Hours</assert>
      <assert test="empty(StartTime)">Element <name/> may not contain element StartTime</assert>
      <assert test="empty(EndTime)">Element <name/> may not contain element EndTime</assert>
      <assert test="empty(TypeHours)">Element <name/> may not contain element TypeHours</assert>
      <assert test="empty(Comment)">Element <name/> may not contain element Comment</assert>
      <assert test="empty(ExternalStaffingShiftSetId)">Element <name/> may not contain element ExternalStaffingShiftSetId</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL/CustomerReportingRequirements">
      <assert test="empty(ManagerName)">Element <name/> may not contain element ManagerName</assert>
      <assert test="empty(SupervisorName)">Element <name/> may not contain element SupervisorName</assert>
      <assert test="empty(ContactName)">Element <name/> may not contain element ContactName</assert>
      <assert test="empty(DepartmentCode)">Element <name/> may not contain element DepartmentCode</assert>
      <assert test="empty(DepartmentName)">Element <name/> may not contain element DepartmentName</assert>
      <assert test="empty(LocationCode)">Element <name/> may not contain element LocationCode</assert>
      <assert test="empty(LocationName)">Element <name/> may not contain element LocationName</assert>
      <assert test="empty(CostCenterCode)">Element <name/> may not contain element CostCenterCode</assert>
      <assert test="empty(CostCenterName)">Element <name/> may not contain element CostCenterName</assert>
      <assert test="empty(CustomerJobCode)">Element <name/> may not contain element CustomerJobCode</assert>
      <assert test="empty(CustomerJobDescription)">Element <name/> may not contain element CustomerJobDescription</assert>
      <assert test="empty(AccountCode)">Element <name/> may not contain element AccountCode</assert>
      <assert test="empty(ProjectCode)">Element <name/> may not contain element ProjectCode</assert>
      <assert test="empty(ExternalOrderNumber)">Element <name/> may not contain element ExternalOrderNumber</assert>
      <assert test="empty(ExternalReqNumber)">Element <name/> may not contain element ExternalReqNumber</assert>
      <assert test="empty(Entity)">Element <name/> may not contain element Entity</assert>
      <assert test="empty(SubEntity)">Element <name/> may not contain element SubEntity</assert>
      <assert test="empty(Shift)">Element <name/> may not contain element Shift</assert>
      <assert test="empty(CustomerReferenceNumber)">Element <name/> may not contain element CustomerReferenceNumber</assert>
      <assert test="empty(AdditionalRequirement)">Element <name/> may not contain element AdditionalRequirement</assert>
      <assert test="empty(PurchaseOrderLineItem)">Element <name/> may not contain element PurchaseOrderLineItem</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL/IdentificationDocument">
      <assert test="empty(Format)">Element <name/> may not contain element Format</assert>
      <assert test="empty(Id)">Element <name/> may not contain element Id</assert>
      <assert test="empty(EffectiveDate)">Element <name/> may not contain element EffectiveDate</assert>
    </rule>
  </pattern>
  <pattern id="cardinality-redefines">
    <rule context="HumanResource">
      <assert test="count(HumanResourceId) &lt;= 1">Element <name/> may contain HumanResourceId at most 1 time(s)</assert>
      <assert test="count(Rates) &lt;= 2">Element <name/> may contain Rates at most 2 time(s)</assert>
    </rule>
    <rule context="HumanResource/HumanResourceId">
      <assert test="count(IdValue) &lt;= 2">Element <name/> may contain IdValue at most 2 time(s)</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation">
      <assert test="count(StaffingSupplierId) &lt;= 1">Element <name/> may contain StaffingSupplierId at most 1 time(s)</assert>
      <assert test="count(StaffingCustomerId) &lt;= 1">Element <name/> may contain StaffingCustomerId at most 1 time(s)</assert>
      <assert test="count(OrderId) &lt;= 1">Element <name/> may contain OrderId at most 1 time(s)</assert>
      <assert test="count(StaffingCustomerOrgUnitId) &lt;= 1">Element <name/> may contain StaffingCustomerOrgUnitId at most 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingSupplierId">
      <assert test="count(IdValue) &lt;= 1">Element <name/> may contain IdValue at most 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerId">
      <assert test="count(IdValue) &lt;= 1">Element <name/> may contain IdValue at most 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/OrderId">
      <assert test="count(IdValue) &lt;= 2">Element <name/> may contain IdValue at most 2 time(s)</assert>
    </rule>
    <rule context="HumanResource/ReferenceInformation/StaffingCustomerOrgUnitId">
      <assert test="count(IdValue) &lt;= 1">Element <name/> may contain IdValue at most 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/PersonName">
      <assert test="count(GivenName) &lt;= 1">Element <name/> may contain GivenName at most 1 time(s)</assert>
      <assert test="count(FamilyName) &lt;= 2">Element <name/> may contain FamilyName at most 2 time(s)</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/PersonName/FamilyName">
      <assert test="count(@primary) &gt;= 1">Attribute <name/> must contain @primary at least 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/ResourceInformation/EntityContactInfo/PersonName">
      <assert test="count(GivenName) &lt;= 1">Element <name/> may contain GivenName at most 1 time(s)</assert>
      <assert test="count(FamilyName) &lt;= 2">Element <name/> may contain FamilyName at most 2 time(s)</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/EducationHistory/SchoolOrInstitution">
      <assert test="count(Degree) &lt;= 1">Element <name/> may contain Degree at most 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/Profile/Resume/StructuredXMLResume/Qualifications/Competency">
      <assert test="count(@name) &gt;= 1">Attribute <name/> must contain @name at least 1 time(s)</assert>
    </rule>
    <rule context="HumanResource/UserArea/HumanResourceAdditionalNL">
      <assert test="count(OfferId) &gt;= 1">Element <name/> must contain OfferId at least 1 time(s)</assert>
    </rule>
  </pattern>
  <pattern id="type-restrictions">
    <rule context="HumanResource/HumanResourceStatus">
      <assert test="empty(@status) or (@status='New') or (@status='Revised') or (@status='x:Updated') or (@status='x:Confirmed') or (@status='Pending') or (@status='Accepted') or (@status='Withdrawn') or (@status='Rejected') or (@status='x:Assigned')">Attribute @status in <name/> may only have (one of) the following value(s): New, Revised, x:Updated, x:Confirmed, Pending, Accepted, Withdrawn, Rejected, x:Assigned</assert>
    </rule>
    <rule context="HumanResource/Rates">
      <assert test="empty(@rateType) or (@rateType='bill') or (@rateType='pay') or (@rateType='minPayRate') or (@rateType='maxPayRate') or (@rateType='minBillRate') or (@rateType='maxBillRate')">Attribute @rateType in <name/> may only have (one of) the following value(s): bill, pay, minPayRate, maxPayRate, minBillRate, maxBillRate</assert>
      <assert test="empty(@rateStatus) or (@rateStatus='proposed')">Attribute @rateStatus in <name/> may only have (one of) the following value(s): proposed</assert>
    </rule>
    <rule context="HumanResource/Rates/Amount">
      <assert test="empty(@rateAmountPeriod) or (@rateAmountPeriod='hourly') or (@rateAmountPeriod='x:hourlysplit') or (@rateAmountPeriod='x:hourlyconsolidated') or (@rateAmountPeriod='daily') or (@rateAmountPeriod='weekly') or (@rateAmountPeriod='x:4weekly') or (@rateAmountPeriod='monthly') or (@rateAmountPeriod='yearly')">Attribute @rateAmountPeriod in <name/> may only have (one of) the following value(s): hourly, x:hourlysplit, x:hourlyconsolidated, daily, weekly, x:4weekly, monthly, yearly</assert>
    </rule>
  </pattern>
</schema>
