⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ecspec.xsd

📁 一个开源的rfid middleware 资料
💻 XSD
📖 第 1 页 / 共 2 页
字号:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:epcglobal:ale:xsd:1" 
    xmlns:ale="urn:epcglobal:ale:xsd:1" 
    xmlns:epcglobal="urn:epcglobal:xsd:1" 
    xmlns:pmlcore="urn:epc:specification:interchange:PMLCore:xml:schema:1" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    elementFormDefault="unqualified" 
    attributeFormDefault="unqualified"
    version="1.0">
    <xsd:annotation>
        <xsd:documentation xml:lang="en">
            <epcglobal:copyright>
             Copyright 脗漏2004 Epcglobal Inc., All Rights Reserved.
            </epcglobal:copyright>
            <epcglobal:disclaimer>
             EPCglobal Inc., its members, officers, directors, employees, or
             agents shall not be liable for any injury, loss, damages, financial
             or otherwise, arising from, related to, or caused by the use of
             this document.  The use of said document shall constitute your
             express consent to the foregoing exculpation.
            </epcglobal:disclaimer>
            <epcglobal:specification>
             Application Level Events (ALE) version 1.0
            </epcglobal:specification>
        </xsd:documentation>
    </xsd:annotation>

    <xsd:import namespace="urn:epc:specification:interchange:PMLCore:xml:schema:1" schemaLocation="./pmlcore.xsd"/>

    <!-- ALE ELEMENTS -->

    <xsd:element name="ECSpec" type="ale:ECSpec"/>
    <xsd:element name="ECReports" type="ale:ECReports"/>

    <!-- ALE TYPES -->

    <!-- items listed alphabetically by name -->

    <!-- Some element types accommodate extensibility in the manner of
         "Versioning XML Vocabularies" by David Orchard (see
         http://www.xml.com/pub/a/2003/12/03/versioning.html).

         In this approach, an optional <extension> element is defined
         for each extensible element type, where an <extension> element
         may contain future elements defined in the target namespace.

         In addition to the optional <extension> element, extensible element
         types are declared with a final xsd:any wildcard to accommodate
         future elements defined by third parties (as denoted by the ##other
         namespace).

         Finally, the xsd:anyAttribute facility is used to allow arbitrary
         attributes to be added to extensible element types. -->


    <xsd:complexType name="ECBoundarySpec">
        <xsd:annotation>
            <xsd:documentation xml:lang="en">
             A ECBoundarySpec specifies how the beginning and end of event cycles
             are to be determined.  The startTrigger and repeatPeriod elements
             are mutually exclusive.  One may, however, specify a ECBoundarySpec
             with neither event cycle start condition (i.e., startTrigger nor
             repeatPeriod) present.  At least one event cycle stopping condition
             (stopTrigger, duration, and/or stableSetInterval) must be present.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="startTrigger" type="ale:ECTrigger" minOccurs="0"/>
            <xsd:element name="repeatPeriod" type="ale:ECTime" minOccurs="0"/>
            <xsd:element name="stopTrigger" type="ale:ECTrigger" minOccurs="0"/>
            <xsd:element name="duration" type="ale:ECTime" minOccurs="0"/>
            <xsd:element name="stableSetInterval" type="ale:ECTime" minOccurs="0"/>
            <xsd:element name="extension" type="ale:ECBoundarySpecExtension" 
                         minOccurs="0"/>
            <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                     namespace="##other"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECBoundarySpecExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>


    <xsd:complexType name="ECExcludePatterns">
        <xsd:sequence>
            <xsd:element name="excludePattern" type="xsd:string" minOccurs="0" 
                         maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECFilterSpec">
        <xsd:annotation>
            <xsd:documentation xml:lang="en">
             A ECFilterSpec specifies what EPCs are to be included in the final
             report. The ECFilterSpec implements a flexible filtering scheme based on
             pattern lists for inclusion and exclusion.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="includePatterns" type="ale:ECIncludePatterns" 
                         minOccurs="0"/>
            <xsd:element name="excludePatterns" type="ale:ECExcludePatterns" 
                         minOccurs="0"/>
            <xsd:element name="extension" type="ale:ECFilterSpecExtension" 
                         minOccurs="0"/>
            <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                     namespace="##other"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECFilterSpecExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECGroupSpec">
       <xsd:sequence>
          <xsd:element name="pattern" type="xsd:string"
                       minOccurs="0" maxOccurs="unbounded"/>
       </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECIncludePatterns">
        <xsd:sequence>
            <xsd:element name="includePattern" type="xsd:string" minOccurs="0" 
                         maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECLogicalReaders">
        <xsd:sequence>
            <xsd:element name="logicalReader" type="xsd:string" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECReport">
        <xsd:sequence>
           <xsd:element name="group" type="ale:ECReportGroup" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="extension" type="ale:ECReportExtension" 
                       minOccurs="0"/>
          <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                   namespace="##other"/>
        </xsd:sequence>
        <xsd:attribute name="reportName" type="xsd:string" use="required"/>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportList">
       <xsd:sequence>
          <xsd:element name="report" type="ale:ECReport" minOccurs="0" maxOccurs="unbounded"/>
       </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroup">
       <xsd:sequence>
          <xsd:element name="groupList" type="ale:ECReportGroupList" minOccurs="0"/>
          <xsd:element name="groupCount" type="ale:ECReportGroupCount" minOccurs="0"/>
          <xsd:element name="extension" type="ale:ECReportGroupExtension" 
                       minOccurs="0"/>
          <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                   namespace="##other"/>
       </xsd:sequence>
       <!-- The groupName attribute SHALL be omitted to indicate the default group. -->
       <xsd:attribute name="groupName" type="xsd:string" use="optional"/>
       <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupList">
       <xsd:sequence>
          <xsd:element name="member" type="ale:ECReportGroupListMember"
                       minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="extension" type="ale:ECReportGroupListExtension" 
                       minOccurs="0"/>
          <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                   namespace="##other"/>
       </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupListExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupListMember">
       <xsd:sequence>
          <!-- Each of the following four elements SHALL be omitted if null. -->
          <xsd:element name="epc" type="pmlcore:DataType" minOccurs="0"/>
          <xsd:element name="tag" type="pmlcore:DataType" minOccurs="0"/>
          <xsd:element name="rawHex" type="pmlcore:DataType" minOccurs="0"/>
          <xsd:element name="rawDecimal" type="pmlcore:DataType" minOccurs="0"/>
          <xsd:element name="extension" type="ale:ECReportGroupListMemberExtension" 
                       minOccurs="0"/>
          <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"
                   namespace="##other"/>
       </xsd:sequence>
       <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupListMemberExtension">
        <xsd:sequence>
            <xsd:any processContents="lax" minOccurs="1" maxOccurs="unbounded"
                     namespace="##targetNamespace"/>
        </xsd:sequence>
        <xsd:anyAttribute processContents="lax"/>
    </xsd:complexType>

    <xsd:complexType name="ECReportGroupCount">
        <xsd:sequence>
            <xsd:element name="count" type="xsd:int"/>
            <xsd:element name="extension" type="ale:ECReportGroupCountExtension" 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -