<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  <xs:include schemaLocation="http://stepmom.wicourts.gov/xsd/ccap_common0_11.xsd"/>
  <xs:include schemaLocation="http://stepmom.wicourts.gov/xsd/doc_common0_02.xsd" />
  <xs:element name="docJoc">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="docSource" type="docSourceT" minOccurs="0" />
        <xs:element name="countyNumber" type="countyNoT" minOccurs="0" />
        <xs:element name="caseNumber" type="caseNoT" minOccurs="0"/>
        <xs:element name="branchId" type="string2T" minOccurs="0" />
        <xs:element name="prosAttyId" type="int10EmptyT" minOccurs="0"/>
        <xs:element name="prosAttyName" type="combinedNameT" minOccurs="0"/>
        <xs:element name="jocFormType" type="docFormTypeT" minOccurs="0"/>
        <xs:element name="clerkOfCourtName" type="combinedNameT" minOccurs="0"/>
        <xs:element name="signingCtofcNo" type="ctofcNoT" minOccurs="0" />
        <xs:element name="signingCtofcName" type="combinedNameT" minOccurs="0"/>
        <xs:element name="signatureDate" type="moDayYearDateT" minOccurs="0"/>
        <xs:element name="party" type="docPartyT" minOccurs="1" maxOccurs="1"/>
        <xs:element name="charge" type="docChargeT" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element name="attachment" type="attachmentT" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="docPartyT">
    <xs:sequence>
      <xs:element name="lastName" type="lastNameT" minOccurs="1"/>
      <xs:element name="firstName" type="firstNameT" minOccurs="0"/>
      <xs:element name="middleName" type="middleNameT" minOccurs="0"/>
      <xs:element name="nameSuffix" type="nameSuffixT" minOccurs="0"/>
      <xs:element name="dateOfBirth" type="moDayYearDateT" minOccurs="0"/>
      <xs:element name="stateId" type="stateIdT" minOccurs="0"/>
      <xs:element name="alias" type="docAliasT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="attorney" type="docAttorneyT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="docAliasT">
    <xs:sequence>
      <xs:element name="aliasType" type="aliasCodeT" minOccurs="1"/>
      <xs:element name="aliasLastName" type="lastNameT" minOccurs="1"/>
      <xs:element name="aliasFirstName" type="firstNameT" minOccurs="0"/>
      <xs:element name="aliasMiddleName" type="middleNameT" minOccurs="0"/>
      <xs:element name="aliasSuffix" type="nameSuffixT" minOccurs="0"/>
      <xs:element name="aliasEffDate" type="moDayYearDateT" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docAttorneyT">
    <xs:sequence>
      <xs:element name="attyNumber" type="int10T" minOccurs="1"/>
      <xs:element name="attyName" type="combinedNameT" minOccurs="1"/>
    </xs:sequence>
  </xs:complexType>  
  <xs:complexType name="docChargeT">
    <xs:sequence>
      <xs:element name="chargeSeqNo" type="int5T" minOccurs="1"/>
      <xs:element name="chargeNo" type="int5T" minOccurs="1"/>
      <xs:element name="statuteDesc" type="string100T" minOccurs="0"/>
      <xs:element name="statuteSevClsCode" type="string5T" minOccurs="0"/>
      <xs:element name="statuteCite" type="statuteCiteT" minOccurs="1"/>
      <xs:element name="pleaCode" type="string4T" minOccurs="0"/>
      <xs:element name="severityClsCode" type="string2T" minOccurs="0"/>
      <xs:element name="offenseDate" type="moDayYearDateT" minOccurs="0"/>
      <xs:element name="offenseDateRange" type="string100T" minOccurs="0"/>
      <xs:element name="bifurcatedYears" type="int3EmptyT" minOccurs="0"/>
      <xs:element name="bifurcatedMonths" type="int3EmptyT" minOccurs="0"/>
      <xs:element name="bifurcatedDays" type="int3EmptyT" minOccurs="0"/>
      <xs:element name="chargeModifier" type="docChargeModifierT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="chargeDispo" type="docDispoT" minOccurs="1" maxOccurs="1"/>
      <xs:element name="sentOrProbObligation" type="moneyObligationT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="extSupvObligation" type="moneyObligationT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="isEligibleCIP" type="eligibilityT" minOccurs="0"/>
      <xs:element name="isEligibleERP" type="eligibilityT" minOccurs="0"/>
      <xs:element name="isRestitutionJointServ" type="trueOrFalseT" minOccurs="0"/>
      <xs:element name="riskReductionCounts" type="string100T" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docChargeModifierT">
    <xs:sequence>
      <xs:element name="modifierSeqNo" type="int10T" minOccurs="1"/>
      <xs:element name="statuteCite" type="statuteCiteT" minOccurs="1"/>
      <xs:element name="modifierSevClsCode" type="string2T" minOccurs="0"/>
      <xs:element name="modifierSevDescr" type="string100T" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docDispoT">
    <xs:sequence>
      <xs:element name="jdgmtSeqNo" type="int5T" minOccurs="1"/>
      <xs:element name="dispoCode" type="string5T" minOccurs="1"/>
      <xs:element name="dispoDate" type="moDayYearDateT" minOccurs="0"/>
      <xs:element name="dispoCtofc" type="ctofcNoT" minOccurs="0"/>
      <xs:element name="dispoCtofcName" type="combinedNameT" minOccurs="0"/>
      <xs:element name="sentence" type="docSentenceT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docSentenceT">
    <xs:sequence>
      <xs:element name="sentSeqNo" type="int5T"  minOccurs="1"/>
      <xs:element name="sentCode" type="string4T"  minOccurs="1"/>
      <xs:element name="sentDate" type="moDayYearDateT" minOccurs="1"/>
      <xs:element name="beginDate" type="moDayYearDateT" minOccurs="0"/>
      <xs:element name="beginTime" type="shortTimeT" minOccurs="0"/>
      <xs:element name="timeServed" type="supDurationT" minOccurs="0"/>
      <xs:element name="length1" type="supDurationT" minOccurs="0"/>
      <xs:element name="length1Pd" type="pdCodeT" minOccurs="0"/>
      <xs:element name="length2" type="supDurationT" minOccurs="0"/>
      <xs:element name="length2Pd" type="pdCodeT" minOccurs="0"/>
      <xs:element name="supervAgcy" type="superAgencyNoT" minOccurs="0"/>
      <xs:element name="sentText" type="textT" minOccurs="0"/>
      <xs:element name="isProbByJdgmt" type="trueOrFalseT" minOccurs="0"/>
      <xs:element name="concurConsecInfo" type="docConcurConsecT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="miscCond" type="docMiscCondT" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element name="timeCond" type="docTimeCondT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docConcurConsecT">
    <xs:sequence>
      <xs:element name="ccSeqNo" type="int10T" minOccurs="0" />
      <xs:element name="ccCode" type="docConcurConsecCodeT" minOccurs="0"/>
      <xs:element name="ccComment" type="textT" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docMiscCondT">
    <xs:sequence>
      <xs:element name="condSeqNo" type="condSeqNoT" minOccurs="1"/>
      <xs:element name="condCode" type="miscCondCodeT" minOccurs="1"/>
      <xs:element name="supervAgcy" type="superAgencyNoT" minOccurs="0"/>
      <xs:element name="condText" type="textT" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="docTimeCondT">
    <xs:sequence>
      <xs:element name="condSeqNo" type="condSeqNoT" minOccurs="1"/>
      <xs:element name="condCode" type="timeCondCodeT" minOccurs="1"/>
      <xs:element name="condLength1" type="supDurationT" minOccurs="0"/>
      <xs:element name="condLength1Pd" type="pdCodeT" minOccurs="0"/>
      <xs:element name="condLength2" type="supDurationT" minOccurs="0"/>
      <xs:element name="condLength2Pd" type="pdCodeT" minOccurs="0"/>
      <xs:element name="supervAgcy" type="superAgencyNoT" minOccurs="0"/>
      <xs:element name="timeCondText" type="textT" minOccurs="0"/>
      <xs:element name="condBeginDate" type="moDayYearDateT" minOccurs="0"/>
      <xs:element name="condBeginTime" type="shortTimeT" minOccurs="0"/>
      <xs:element name="timeServed" type="supDurationT" minOccurs="0"/>
      <xs:element name="concurConsecInfo" type="docConcurConsecT" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="moneyObligationT">
    <xs:sequence>
      <xs:element name="fine" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="ctCosts" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="atty" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="rest" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="other" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="vicWit" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="restSur" type="moneyEmptyT" minOccurs="0"/>
      <xs:element name="dnaAnal" type="moneyEmptyT" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="attachmentT">
    <xs:sequence>
      <xs:element name="attachmentDescription" type="xs:string"/>
      <xs:element name="contentType" type="xs:string"/>
      <xs:element name="docDOCType" type="docDOCTypeT" minOccurs="1" maxOccurs="1" /><!-- see: doc_common0_0n.xsd -->
      <xs:element name="origin" type="originT" minOccurs="0" maxOccurs="1" /><!-- see: doc_common0_0n.xsd -->
      <xs:element name="notes" type="string100T" minOccurs="0" maxOccurs="1" />
      <xs:element name="data" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>  
  <xs:simpleType name="docFormTypeT">
    <xs:restriction base="xs:string">
      <xs:enumeration value="J" id="Joc"/>
      <xs:enumeration value="JA" id="JocAmended"/>
      <xs:enumeration value="JC" id="JocCorrected"/>
      <xs:enumeration value="R" id="Revocation"/>
      <xs:enumeration value="RA" id="RevocationAmended"/>
      <xs:enumeration value="RC" id="RevocationCorrected"/>
      <xs:enumeration value=""/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="docSourceT">
    <xs:restriction base="xs:string">
      <xs:enumeration value="SCANNED" id="SCANNED"/>
      <xs:enumeration value="ELECTRONIC" id="ELECTRONIC"/>
    </xs:restriction>
  </xs:simpleType>    
  <xs:simpleType name="docConcurConsecCodeT">
    <xs:restriction base="xs:string">
      <xs:enumeration value="C" id="Concurrent"/>
      <xs:enumeration value="S" id="Consecutive"/>
      <xs:enumeration value="N" id="None"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="eligibilityT">
    <xs:restriction base="xs:string">
      <xs:enumeration value="E" id="Eligible"/>
      <xs:enumeration value="I" id="Ineligible"/>
      <xs:enumeration value="N" id="NotApplicable"/>
    </xs:restriction>
  </xs:simpleType>  
</xs:schema>