Network Working Group                                    D. Eastlake 3rd
Request for Comments: 4112                         Motorola Laboratories
Updates: 3106                                                  June 2005
Category: Standards Track
        
Network Working Group                                    D. Eastlake 3rd
Request for Comments: 4112                         Motorola Laboratories
Updates: 3106                                                  June 2005
Category: Standards Track
        

Electronic Commerce Modeling Language (ECML) Version 2 Specification

电子商务建模语言(ECML)第2版规范

Status of This Memo

关于下段备忘

This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.

本文件规定了互联网社区的互联网标准跟踪协议,并要求进行讨论和提出改进建议。有关本协议的标准化状态和状态,请参考当前版本的“互联网官方协议标准”(STD 1)。本备忘录的分发不受限制。

Copyright Notice

版权公告

Copyright (C) The Internet Society (2005).

版权所有(C)互联网协会(2005年)。

Abstract

摘要

Electronic commerce frequently requires a substantial exchange of information in order to complete a purchase or other transaction, especially the first time the parties communicate. A standard set of hierarchically-organized payment-related information field names in an XML syntax is defined so that this task can be more easily automated. This is the second version of an Electronic Commerce Modeling Language (ECML) and is intended to meet the requirements of RFC 3505.

电子商务经常需要大量的信息交换,以完成购买或其他交易,尤其是当事方第一次通信时。在XML语法中定义了一组标准的分层组织的支付相关信息字段名称,以便更容易地自动化此任务。这是电子商务建模语言(ECML)的第二个版本,旨在满足RFC 3505的要求。

Table of Contents

目录

   1. Introduction ....................................................2
   2. Field Definitions, DTD, and Schema ..............................3
      2.1. Field List and Descriptions ................................3
           2.1.1. The Field List ......................................4
           2.1.2. Field Footnotes .....................................7
      2.2. Exemplar XML Syntax .......................................12
           2.2.1. ECML v2 XML DTD ....................................13
           2.2.2. ECML v2 XML Schema .................................18
   3. Usage Notes for ECML v2 ........................................26
      3.1. Presentation of the Fields ................................26
      3.2. Methods and Flow of Setting the Fields ....................27
   4. Security and Privacy Considerations ............................28
   5. IANA Considerations ............................................29
      5.1. ECML v2 Schema Template ...................................29
      5.2. ECML v2 URN Template ......................................29
           5.2.1. Sub-registration of v2.0 ...........................30
      5.3. IANA Registries ...........................................30
   6. Acknowledgements ...............................................30
   A. Appendix: Changes from v1.1 to v2 ..............................31
   Normative References ..............................................31
   Informative References ............................................32
        
   1. Introduction ....................................................2
   2. Field Definitions, DTD, and Schema ..............................3
      2.1. Field List and Descriptions ................................3
           2.1.1. The Field List ......................................4
           2.1.2. Field Footnotes .....................................7
      2.2. Exemplar XML Syntax .......................................12
           2.2.1. ECML v2 XML DTD ....................................13
           2.2.2. ECML v2 XML Schema .................................18
   3. Usage Notes for ECML v2 ........................................26
      3.1. Presentation of the Fields ................................26
      3.2. Methods and Flow of Setting the Fields ....................27
   4. Security and Privacy Considerations ............................28
   5. IANA Considerations ............................................29
      5.1. ECML v2 Schema Template ...................................29
      5.2. ECML v2 URN Template ......................................29
           5.2.1. Sub-registration of v2.0 ...........................30
      5.3. IANA Registries ...........................................30
   6. Acknowledgements ...............................................30
   A. Appendix: Changes from v1.1 to v2 ..............................31
   Normative References ..............................................31
   Informative References ............................................32
        
1. Introduction
1. 介绍

Numerous parties are conducting business on the Internet using ad hoc fields and forms. The data formats and structure can vary considerably from one party to another. Where forms are filled out manually, some users find the diversity confusing, and the process of manually filling in these forms can be tedious and error prone.

许多参与方正在互联网上使用特殊字段和表格开展业务。数据格式和结构可能因缔约方的不同而有很大差异。在手动填写表单的情况下,一些用户会发现多样性令人困惑,而手动填写这些表单的过程可能会很繁琐且容易出错。

Software tools, including electronic wallets, can help this situation. Such tools can assist in conducting online transactions by storing billing, shipping, payment, preference, and similar information and using this information to complete the data sets required by interactions automatically. For example, software that fills out forms has been successfully built into browsers, as proxy servers, as helper applications to browsers, as stand-alone applications, as browser plug-ins, and as server-based applications. But the proliferation of more automated transaction software has been hampered by the lack of standards.

软件工具,包括电子钱包,可以帮助这种情况。这些工具可以通过存储账单、发货、付款、偏好和类似信息,并使用这些信息自动完成交互所需的数据集,来帮助进行在线交易。例如,填写表单的软件已成功地内置到浏览器中,如代理服务器、浏览器的辅助应用程序、独立应用程序、浏览器插件和基于服务器的应用程序。但由于缺乏标准,更多自动化交易软件的普及受到了阻碍。

ECML (Electronic Commerce Modeling Language) provides a set of hierarchical payment-oriented data structures that will enable automated software, including electronic wallets from multiple vendors, to supply and query for needed data in a more uniform manner.

ECML(Electronic Commerce Modeling Language,电子商务建模语言)提供了一套面向支付的分层数据结构,使自动化软件(包括来自多个供应商的电子钱包)能够以更统一的方式提供和查询所需的数据。

Version 2.0 extends ECML Versions 1.0 [RFC2706] and 1.1 [RFC3106] as described in the appendix to this document. These enhancements include support for additional payment mechanisms and transaction information and use of XML as the exemplar syntax.

版本2.0扩展了ECML版本1.0[RFC2706]和1.1[RFC3106],如本文件附录所述。这些增强包括支持额外的支付机制和交易信息,以及使用XML作为示例语法。

ECML is designed to provide a simple baseline useful in a variety of contexts. Likely uses for ECML v2 are consumer payment information input and business-to-business transactions. At this time, the first is still likely to occur through HTML forms. The second is more likely to use XML documents.

ECML旨在提供一个在各种上下文中都有用的简单基线。ECML v2的可能用途是消费者支付信息输入和企业对企业交易。此时,第一种仍然可能通过HTML表单出现。第二种更可能使用XML文档。

1.2. History and Relationship to Other Standards
1.2. 历史和与其他标准的关系

The ECML fields were initially derived from the W3C P3P base data schema [P3P.BASE] by the ECML Alliance as described in [RFC2706, RFC3106]. Technical development and change control of ECML was then transferred to the IETF. In version 2, ECML is extended by the fields in a W3C P3P Note related to eCommerce [P3P.ECOM], by [ISO8583], and other sources. Its primary exemplar form is now an XML syntax.

ECML字段最初由ECML联盟从W3C P3P基础数据模式[P3P.base]派生,如[RFC2706,RFC3106]所述。ECML的技术开发和变更控制随后转移到IETF。在版本2中,ECML通过W3C P3P注释中与电子商务相关的字段[P3P.ECOM]、[ISO8583]和其他来源进行扩展。它的主要示例形式现在是XML语法。

2. Field Definitions, DTD, and Schema
2. 字段定义、DTD和模式

ECML v2 is the definition and naming of a hierarchically structured set of fields and the provision of an optional XML syntax for their transmission. These fields can be encoded in other syntaxes. Regardless of the encoding used, the fields can be transmitted via a variety of protocols.

ECMLv2是一组分层结构字段的定义和命名,并为其传输提供可选的XML语法。这些字段可以用其他语法编码。无论使用何种编码,字段都可以通过各种协议传输。

Section 2.1 below lists and describes the fields, Section 2.2.1 provides an XML DTD for use with the fields, and Section 2.2.2 provides an XML schema.

下面的第2.1节列出并描述了字段,第2.2.1节提供了用于字段的XML DTD,第2.2.2节提供了XML模式。

To conform to this document, field names must be named and hierarchically structured as closely to the structure and naming listed below as is practical given the syntax and transaction protocol in use. (NOTE: This does not impose any restriction on human visible labeling of fields, just on their name or names and structure as used in on-the-wire communication.)

为了符合本文档的要求,字段名的命名和层次结构必须与下面列出的结构和命名尽可能接近,并考虑到使用的语法和事务协议。(注意:这不会对字段的人类可见标签施加任何限制,仅对其名称或有线通信中使用的名称和结构施加限制。)

2.1. Field List and Descriptions
2.1. 字段列表和说明

The fields are listed below, along with the minimum data entry size allowed. Implementations may accept larger data sizes, if doing so makes sense, and, for some applications, they will need to allow for larger data sizes.

下面列出了字段以及允许的最小数据输入大小。如果这样做有意义的话,实现可能会接受更大的数据大小,并且对于某些应用程序,它们需要允许更大的数据大小。

Note that these fields are hierarchically organized as indicated in this table by the embedded underscore ("_") characters. Appropriate data transmission mechanisms may use this to request and send aggregates, such as Ecom_Payment_Card_ExpDate (to encompass all of a set of card expiry date components) or Ecom_ShipTo (to encompass all the ship-to address components that a consumer is willing to provide). The labeling, marshalling, and unmarshalling of the components of such aggregates depend on the data transfer protocol used. The suggested syntax is XML as specified in Section 2.2.

请注意,这些字段是按层次结构组织的,如本表中所示,由嵌入的下划线(“\”)字符表示。适当的数据传输机制可以使用此来请求和发送聚合,例如Ecom_Payment_Card_ExpDate(包含所有一组卡到期日组件)或Ecom_ShipTo(包含消费者愿意提供的所有ship to address组件)。此类聚合组件的标记、编组和解编取决于所使用的数据传输协议。建议的语法是第2.2节中指定的XML。

2.1.1. The Field List
2.1.1. 字段列表

The table below is the ECML v2 field list.

下表是ECML v2字段列表。

The NAME column gives the structured string name of each field as explained above. The MIN column below is the minimum data size that MUST be allowed for on data entry. It is NOT the minimum size for valid contents of the field, and merchant software should, in many cases, be prepared to receive a longer or shorter value. Merchants dealing with areas where, for example, the state/province name or phone number is longer than the MIN given below obviously must permit longer data entry. In some cases, however, there is a maximum size that makes sense, and where this is the case, it is usually documented in a Note for the field.

名称列给出了每个字段的结构化字符串名称,如上所述。下面的MIN列是数据输入时必须允许的最小数据大小。它不是字段有效内容的最小大小,在许多情况下,商户软件应准备接收更长或更短的值。例如,与州/省名称或电话号码长于下面给出的最小值的地区打交道的商户显然必须允许更长的数据输入。但是,在某些情况下,有一个最大大小是有意义的,在这种情况下,通常会记录在字段的注释中。

The following fields are typically used to communicate from the customer to the merchant:

以下字段通常用于客户与商户之间的通信:

FIELD NAME MIN Notes

字段名MIN Notes

ship to title Ecom_ShipTo_Postal_Name_Prefix 4 ( 1) ship to first name Ecom_ShipTo_Postal_Name_First 15 (54) ship to middle name Ecom_ShipTo_Postal_Name_Middle 15 ( 2) ship to last name Ecom_ShipTo_Postal_Name_Last 15 (54) ship to name suffix Ecom_ShipTo_Postal_Name_Suffix 4 ( 3) ship to company name Ecom_ShipTo_Postal_Company 20 ship to street line1 Ecom_ShipTo_Postal_Street_Line1 20 ( 4) ship to street line2 Ecom_ShipTo_Postal_Street_Line2 20 ( 4) ship to street line3 Ecom_ShipTo_Postal_Street_Line3 20 ( 4) ship to city Ecom_ShipTo_Postal_City 22 ship to state/province Ecom_ShipTo_Postal_StateProv 2 ( 5) ship to zip/postal code Ecom_ShipTo_Postal_PostalCode 14 ( 6) ship to country Ecom_ShipTo_Postal_CountryCode 2 ( 7) ship to phone Ecom_ShipTo_Telecom_Phone_Number 10 ( 8) ship to email Ecom_ShipTo_Online_Email 40 ( 9)

发货至名称Ecom_ShipTo_Postal_Name_前缀4(1)发货至名Ecom_ShipTo_Postal_Name_first 15(54)发货至中名Ecom_ShipTo_Postal_Name_middle 15(2)发货至姓Ecom_ShipTo_Postal_Name_last 15(54)发货至名后缀Ecom_ShipTo_Postal_Name_后缀4(3)船到公司名称Ecom_船到邮政_公司20船到街道1号线Ecom_船到邮政_街道1号线20(4)船到街道2号线Ecom_船到邮政_街道2号线20(4)船到街道3号线Ecom_船到邮政_街道3号线20(4)船到城市Ecom_船到邮政_城市22船到州/省Ecom_船到邮政_州2(5)发货至邮政编码Ecom\u发货至\u邮政编码14(6)发货至国家Ecom\u发货至\u邮政编码2(7)发货至电话Ecom\u发货至\u电信\u电话号码10(8)发货至电子邮件Ecom\u发货至\u在线\u电子邮件40(9)

bill to title Ecom_BillTo_Postal_Name_Prefix 4 ( 1) bill to first name Ecom_BillTo_Postal_Name_First 15 (54) bill to middle name Ecom_BillTo_Postal_Name_Middle 15 ( 2) bill to last name Ecom_BillTo_Postal_Name_Last 15 (54) bill to name suffix Ecom_BillTo_Postal_Name_Suffix 4 ( 3) bill to company name Ecom_BillTo_Postal_Company 20 bill to street line1 Ecom_BillTo_Postal_Street_Line1 20 ( 4) bill to street line2 Ecom_BillTo_Postal_Street_Line2 20 ( 4) bill to street line3 Ecom_BillTo_Postal_Street_Line3 20 ( 4) bill to city Ecom_BillTo_Postal_City 22 bill to state/province Ecom_BillTo_Postal_StateProv 2 ( 5) bill to zip/postal code Ecom_BillTo_Postal_PostalCode 14 ( 6) bill to country Ecom_BillTo_Postal_CountryCode 2 ( 7) bill to phone Ecom_BillTo_Telecom_Phone_Number 10 ( 8) bill to email Ecom_BillTo_Online_Email 40 ( 9)

汇票名称:Ecom_bill邮政名称:前缀4(1)汇票名称:Ecom_bill邮政名称:前缀15(54)汇票名称:Ecom_bill邮政名称:前缀15(2)汇票名称:Ecom_bill邮政名称:前缀15(54)汇票名称:后缀:Ecom_bill邮政名称:后缀4(3)账单到公司名称Ecom_bill到邮政公司20账单到街道行1 Ecom_bill到邮政街行20(4)账单到街道行2 Ecom_bill到邮政街行20(4)账单到街道行3 Ecom_bill到邮政街行3 20(4)账单到城市Ecom_bill到邮政市22账单到州/省Ecom_bill到邮政州2(5)账单至邮政编码Ecom_bill至邮政编码14(6)账单至国家Ecom_bill至邮政编码2(7)账单至电话Ecom_bill至电信电话号码10(8)账单至电子邮件Ecom_bill至在线电子邮件40(9)

receipt to (32) receipt to title Ecom_ReceiptTo_Postal_Name_Prefix 4 ( 1) receipt to first name Ecom_ReceiptTo_Postal_Name_First 15 (54) receipt to middle name Ecom_ReceiptTo_Postal_Name_Middle 15 ( 2) receipt to last name Ecom_ReceiptTo_Postal_Name_Last 15 (54) receipt to name suffix Ecom_ReceiptTo_Postal_Name_Suffix 4 ( 3) receipt to company name Ecom_ReceiptTo_Postal_Company 20 receipt to street line1 Ecom_ReceiptTo_Postal_Street_Line1 20 ( 4)

回执至(32)回执至标题Ecom_ReceiptTo_Postal_Name_前缀4(1)回执至姓名Ecom_ReceiptTo_Postal_Name_前15(54)回执至中名Ecom_ReceiptTo_Postal_Name_middle 15(2)回执至姓氏Ecom_ReceiptTo_Postal_Name_姓氏最后15(54)回执至姓名后缀Ecom_ReceiptTo_Postal_Name_后缀4(3)收据至公司名称Ecom_收据至邮政_公司20收据至街道1号线Ecom_收据至邮政_街道1号线20(4)

receipt to street line2 Ecom_ReceiptTo_Postal_Street_Line2 20 ( 4) receipt to street line3 Ecom_ReceiptTo_Postal_Street_Line3 20 ( 4) receipt to city Ecom_ReceiptTo_Postal_City 22 receipt to state/province Ecom_ReceiptTo_Postal_StateProv 2 ( 5) receipt to postal code Ecom_ReceiptTo_Postal_PostalCode 14 ( 6) receipt to country Ecom_ReceiptTo_Postal_CountryCode 2 ( 7) receipt to phone Ecom_ReceiptTo_Telecom_Phone_Number 10 ( 8) receipt to email Ecom_ReceiptTo_Online_Email 40 ( 9)

收货至街道2号线Ecom_收货至邮政街2号线20(4)收货至街道3号线Ecom_收货至邮政街3号线20(4)收货至城市Ecom_收货至邮政城市22收货至州/省Ecom_收货至邮政州2(5)收货至邮政编码Ecom_收货至邮政编码14(6)收货至国家/地区收货至国家/地区邮政编码2(7)收货至电话收货至电信收货至电话号码10(8)收货至电子邮件收货至在线收货至电子邮件40(9)

name on card Ecom_Payment_Card_Name 30 (10)

卡上姓名Ecom_支付_卡上姓名30(10)

card type Ecom_Payment_Card_Type 4 (11) card number Ecom_Payment_Card_Number 19 (12) card verification value Ecom_Payment_Card_Verification 4 (13) card issuer number Ecom_Payment_Card_IssueNumber 2 (53)

卡类型Ecom_支付卡类型4(11)卡号Ecom_支付卡编号19(12)卡验证值Ecom_支付卡验证4(13)卡发行人编号Ecom_支付卡发行人编号2(53)

card expire date day Ecom_Payment_Card_ExpDate_Day 2 (14) card expire date month Ecom_Payment_Card_ExpDate_Month 2 (15) card expire date year Ecom_Payment_Card_ExpDate_Year 4 (16) card valid date day Ecom_Payment_Card_ValidFrom_Day 2 (14) card valid date month Ecom_Payment_Card_ValidFrom_Month 2 (15) card valid date year Ecom_Payment_Card_ValidFrom_Year 4 (16)

信用卡到期日电子商务支付卡到期日电子商务支付卡到期日第2天信用卡到期日月电子商务支付卡到期日第2个月信用卡到期日年电子商务支付卡到期日第4年信用卡有效日电子商务支付卡有效期第2天起信用卡有效期月电子商务支付卡有效期第2个月起(15)卡有效日期年份Ecom\u付款\u卡有效期从第4(16)年开始

card protocols Ecom_Payment_Card_Protocol 20 (17)

卡协议Ecom_支付卡协议20(17)

loyalty card name Ecom_Loyalty_Card_Name 30 (10) loyalty card type Ecom_Loyalty_Card_Type 20 (52) loyalty card number Ecom_Loyalty_Card_Number 40 (34) loyalty card verification Ecom_Loyalty_Card_Verification 4 (13) loyalty card expire day Ecom_Loyalty_Card_ExpDate_Day 2 (14) loyalty card expire month Ecom_Loyalty_Card_ExpDate_Month 2 (15) loyalty card expire year Ecom_Loyalty_Card_ExpDate_Year 2 (16) loyalty card valid day Ecom_Loyalty_Card_ValidFrom_Day 2 (14) loyalty card valid month Ecom_Loyalty_Card_ValidFrom_Month 2 (15) loyalty card valid year Ecom_Loyalty_Card_ValidFrom_Year 4 (16)

忠诚度卡名称Ecom_忠诚度卡名称30(10)忠诚度卡类型Ecom_忠诚度卡类型20(52)忠诚度卡号码Ecom_忠诚度卡号码40(34)忠诚度卡验证Ecom_忠诚度卡验证4(13)忠诚度卡到期日Ecom_忠诚度卡到期日2(14)忠诚度卡到期月Ecom_忠诚度卡到期日2(15)信用卡到期年份信用卡到期日期第二年(16)信用卡有效日期信用卡有效日期第二天(14)信用卡有效月份信用卡有效月份第二个月(15)信用卡有效年份信用卡有效日期第四年(16)

consumer order ID Ecom_ConsumerOrderID 20 (18)

消费者订单ID Ecom_ConsumerOrderID 20(18)

user ID Ecom_User_ID 40 (19) user password Ecom_User_Password 20 (19) user certificate Ecom_User_Certificate_URL 128 (55) user data country Ecom_UserData_Country 2 ( 7) user data language Ecom_UserData_Language 30 (33) user data gender Ecom_UserData_Gender 1 (36) user data birth day Ecom_UserData_BirthDate_Day 2 (14) user data birth month Ecom_UserData_BirthDate_Month 2 (15) user data birth year Ecom_UserData_BirthDate_Year 4 (16) user data preferences Ecom_UserData_Preferences 60 (34)

用户ID Ecom_用户ID 40(19)用户密码Ecom_用户密码20(19)用户证书Ecom_用户证书URL 128(55)用户数据国家Ecom_用户数据国家2(7)用户数据语言Ecom_用户数据语言30(33)用户数据性别Ecom_用户数据性别1(36)用户数据出生日期Ecom_用户数据出生日期2(14)用户数据出生月份Ecom_用户数据_出生日期_第2个月(15)用户数据出生年份Ecom_用户数据_出生日期_第4年(16)用户数据首选项Ecom_用户数据_首选项60(34)

schema version Ecom_SchemaVersion 30 (20)

模式版本Ecom_SchemaVersion 30(20)

wallet id Ecom_WalletID 40 (21) wallet URL Ecom_Wallet_Location 128 (35)

钱包id Ecom_WalletID 40(21)钱包URL Ecom_wallet_位置128(35)

customer device ID Ecom_Device_ID 20 (37) customer device type Ecom_Device_Type 20 (38)

客户设备ID Ecom_设备ID 20(37)客户设备类型Ecom_设备类型20(38)

end transaction flag Ecom_TransactionComplete - (22)

结束事务标志Ecom_TransactionComplete-(22)

The following fields are typically used to communicate from the merchant to the consumer:

以下字段通常用于商户与消费者之间的通信:

FIELD NAME Min Notes

字段名Min Notes

merchant home domain Ecom_Merchant 128 (23) processor home domain Ecom_Processor 128 (24) transaction identifier Ecom_Transaction_ID 128 (25) transaction URL inquiry Ecom_Transaction_Inquiry 500 (26) transaction amount Ecom_Transaction_Amount 128 (27) transaction currency Ecom_Transaction_CurrencyCode 3 (28) transaction date Ecom_Transaction_Date 80 (29)

商户主域Ecom_商户128(23)处理器主域Ecom_处理器128(24)交易标识符Ecom_交易ID 128(25)交易URL查询Ecom_交易查询500(26)交易金额Ecom_交易金额128(27)交易货币Ecom_交易代码3(28)交易日期Ecom_交易日期80(29)

transaction type Ecom_Transaction_Type 24 (30) transaction signature Ecom_Transaction_Signature 160 (31)

交易类型Ecom_交易类型24(30)交易签名Ecom_交易签名160(31)

end transaction flag Ecom_TransactionComplete - (22)

结束事务标志Ecom_TransactionComplete-(22)

The following fields are used to communicate between the merchant and a processor acting for the merchant (such a processor is commonly called an acquirer and is frequently a bank):

以下字段用于商户与代理商户的处理机构之间的通信(此类处理机构通常称为收单机构,通常为银行):

FIELD NAME Min Notes

字段名Min Notes

merchant identifier Ecom_Merchant_ID 8 merchant terminal Ecom_Merchant_Terminal_ID 8 (39) merchant terminal data Ecom_Merchant_Terminal_Data 128 transaction process code Ecom_Transaction_ProcessingCode 6 (40) transaction reference Ecom_Transaction_Reference_ID 12 transaction acquirer Ecom_Transaction_Acquire_ID 13 (41) transaction forward Ecom_Transaction_Forward_ID 13 (42) transaction trace Ecom_Transaction_Trace_Audit 6 (43) transaction effective date Ecom_Transaction_Effective_Date 4 (44) transaction CID Ecom_Transaction_CID 8 transaction POS Ecom_Transaction_POSCode 12 (45) transaction private use Ecom_Transaction_PrivateUseData 166 transaction response Ecom_Transaction_ResponseData 27 transaction approval code Ecom_Transaction_ApprovalCode 12 (46) transaction retrieval code Ecom_Transaction_RetrievalCode 128 transaction response action Ecom_Transaction_ActionCode 13 (47)

商户识别码Ecom_商户识别码8商户终端Ecom_商户识别码8(39)商户终端数据Ecom_商户识别码128交易处理码6(40)交易参考Ecom_交易参考识别码12交易收单机构Ecom_交易获取识别码13(41)交易转发Ecom\U交易转发\U ID 13(42)交易跟踪Ecom\U交易跟踪\U审计6(43)交易生效日期Ecom\U交易生效日期4(44)交易CID Ecom\U交易CID 8交易POS Ecom\U交易POSCode 12(45)交易私人使用Ecom_交易私人使用数据166交易响应Ecom_交易响应数据27交易批准代码Ecom_交易批准代码12(46)交易检索代码Ecom_交易检索代码128交易响应操作Ecom_交易操作代码13(47)

transaction reason Ecom_Transaction_ReasonCode 4 transaction AAV Ecom_Transaction_AAV 3 transaction settlement date Ecom_Transaction_Settle_Date 4 (48) transaction capture date Ecom_Transaction_Capture_Date 4 (49) transaction Track 1 Ecom_Transaction_Track1 39 (50) transaction Track 2 Ecom_Transaction_Track2 39 (51)

交易原因Ecom_交易原因代码4交易AAV Ecom_交易AAV 3交易结算日期Ecom_交易结算日期4(48)交易捕获日期Ecom_交易捕获日期4(49)交易跟踪1 Ecom_交易跟踪1 39(50)交易跟踪2 Ecom_交易跟踪2 39(51)

2.1.2. Field Footnotes
2.1.2. 现场脚注

(1) For example: Mr., Mrs., Ms., Dr. This field is commonly omitted.

(1) 例如:先生、太太、女士、博士。此字段通常省略。

(2) May also be used for middle initial.

(2) 也可用于中间首字母。

(3) For example: Ph.D., Jr. (Junior), 3rd, Esq. (Esquire). This field is commonly omitted.

(3) 例如:小博士(初级),第三,绅士(绅士)。此字段通常被省略。

(4) Address lines must be filled in the order line1, then line2, and last line3. Thus, for example, it is an error for line1 to be null if line2 or line3 is not.

(4) 必须在订单行1、第2行和最后一行3中填写地址行。因此,例如,如果line2或line3不为空,则line1为空是错误的。

(5) 2 characters are the minimum for the US and Canada; other countries may require longer fields. For the US, use 2- character US postal state abbreviation.

(5) 美国和加拿大的最低字符数为2个;其他国家可能需要更长的油田。对于美国,使用2个字符的美国邮政州缩写。

(6) Minimum field lengths for Postal Code will vary according to the international market served. Use 5-character postal code or 5+4 ZIP for the US and 6-character postal code for Canada. The size given, 14, is believed to be the maximum required anywhere in the world.

(6) 邮政编码的最小字段长度将根据所服务的国际市场而有所不同。美国使用5个字符的邮政编码或5+4邮政编码,加拿大使用6个字符的邮政编码。给出的尺寸为14,据信是世界上任何地方所需的最大尺寸。

(7) Use [ISO3166] standard two letter country codes.

(7) 使用[ISO3166]标准双字母国家代码。

(8) 10 digits are the minimum for numbers within the North American Numbering Plan (<http://www.nanpa.com>: It includes the US, Canada and a number of Caribbean and smaller Pacific nations, but not Cuba). Other countries may require longer fields. Telephone numbers are complicated by differing international access codes, variant punctuation of area/city codes within countries, etc. Although it is desirable for telephone numbers to be in standard international format [E.164], it may be necessary to use heuristics or human examination based on the telephone number and addresses given to figure out how to call a customer, since people may enter local formatted numbers without area/access codes. It is recommend that an "x" be placed before extension numbers and that the "x" and extension number appear after all other parts of the number.

(8) 北美编号计划中的数字最少为10位(<http://www.nanpa.com>:它包括美国、加拿大和一些加勒比和较小的太平洋国家,但不包括古巴)。其他国家可能需要更长的油田。电话号码因不同的国际接入码、国家/地区/城市代码的不同标点符号等而变得复杂。尽管电话号码最好采用标准国际格式[E.164],可能有必要根据给定的电话号码和地址使用启发式或人工检查来确定如何致电客户,因为人们可能会输入本地格式的号码,而不输入区号/接入码。建议在分机号码前加上“x”,并在分机号码的所有其他部分后加上“x”和分机号码。

(9) For example: jsmith@example.com

(9) 例如:jsmith@example.com

(10) The name of the cardholder as it appears on the card.

(10) 卡上显示的持卡人姓名。

(11) Case insensitive. Use up to the first 4 letters of the association name (see also Note 102):

(11) 不区分大小写。最多使用协会名称的前4个字母(另见注释102):

AMER American Express BANK Bankcard (Australia) DC DC (Japan) DINE Diners Club DISC Discover JCB JCB MAST Mastercard NIKO Nikos (Japan) SAIS Saison (Japan) UC UC (Japan) UCAR UCard (Taiwan) VISA Visa

美国运通银行银行卡(澳大利亚)DC DC DC(日本)DINE Diners Club DISC DISC Discover JCB JCB MAST Mastercard NIKO NIKO Nikos(日本)SAIS Saison(日本)UC UC UC(日本)UCAR UCard(台湾)VISA

(12) Includes the check digit at the end but no spaces or hyphens [ISO7812]. The min given, 19, is the longest number permitted under the ISO standard.

(12) 在末尾包含校验位,但不包含空格或连字符[ISO7812]。给出的最小值19是ISO标准允许的最长数字。

(13) An additional cardholder verification number printed on the card (but not embossed or recorded on the magnetic stripe) such as the American Express CIV, MasterCard CVC2, and Visa CVV2 values.

(13) 打印在卡上(但未在磁条上压印或记录)的额外持卡人验证号,如美国运通CIV、万事达卡CVC2和Visa CVV2值。

(14) The day of the month. Values: 1-31. A leading zero is ignored, so, for example, 07 is valid for the seventh day of the month.

(14) 一个月的哪一天。数值:1-31。前导零将被忽略,因此,例如,07在一个月的第七天有效。

(15) The month of the year. Jan - 1, Feb - 2, March - 3, etc.; Values: 1-12. A leading zero is ignored, so, for example, 07 is valid for July.

(15) 一年中的月份。1月1日、2月2日、3月3日等。;数值:1-12。前导零被忽略,因此,例如,07对7月份有效。

(16) The value in the wallet cell is always four digits; e.g., 1999, 2000, 2001.

(16) 钱包单元格中的值始终为四位数字;e、 g.,1999年,2000年,2001年。

(17) A space separated list of protocols available in connection with the specified card. The following is the initial list of case-insensitive tokens:

(17) 与指定卡相关的可用协议的空格分隔列表。以下是不区分大小写令牌的初始列表:

none set setcert iotp echeck simcard phoneid

无设置setcert iotp echeck simcard phoneid

"Set" indicates that the card is usable with SET protocol (i.e., it is in a SET wallet) but that it does not have a SET certificate [SET]. "Setcert" indicates that the card is usable with SET and has a set certificate [SET]. "iotp" indicates that the IOTP protocol [RFC2801] is supported at the customer. "echeck" indicates that the eCheck protocol [eCheck] is supported at the customer. "simcard" indicates an ability to use the transaction instrument built into a Cellphone subscriber for identification. "phoneid" indicates use for the transaction of a billable phone number. "None" indicates that automatic field fill is operating but that there is no further information.

“Set”表示卡可以使用Set协议(即,它位于Set钱包中),但没有Set证书[Set]。“Setcert”表示该卡可与SET一起使用,并具有SET证书[SET]。“iotp”表示客户支持iotp协议[RFC2801]。“echeck”表示客户支持echeck协议[echeck]。“simcard”表示能够使用内置在手机用户中的交易工具进行身份识别。“phoneid”表示用于计费电话号码的交易。“无”表示自动字段填充正在运行,但没有进一步的信息。

(18) A unique order ID string generated by the consumer software.

(18) 消费者软件生成的唯一订单ID字符串。

(19) The user ID and password fields can be used if the user has a pre-established account with the merchant to which access is authenticated by such values. For that use, one would expect an

(19) 如果用户与商户有预先建立的账户,并且通过这些值验证访问权限,则可以使用用户ID和密码字段。对于这一用途,人们会期望

application to require exactly one user ID, and one password field be present.

应用程序要求仅存在一个用户ID和一个密码字段。

(20) URI [RFC3986] indicating version of this set of fields. Equal to "urn:ietf:params:ecml:v2.0" for this version. See Section 5. (See also Note 101.)

(20) URI[RFC3986]指示此字段集的版本。此版本等于“urn:ietf:params:ecml:v2.0”。见第5节。(另见注101。)

(21) A string to identify the source and version of form fill software that is acting on behalf of a user. Should contain company and/or product name and version; for example, "Wallets Inc., SuperFill, v42.7". (See also Note 101.)

(21)一个字符串,用于标识代表用户运行的表单填写软件的源和版本。应包含公司和/或产品名称和版本;例如,“钱包公司,SuperFill,v42.7”。(另见注101。)

(22) A flag to indicate that this web-page/aggregate is the final one for this transaction. (See also Note 101.)

(22)一个标志,指示此网页/聚合是此交易的最终网页/聚合。(另见注101。)

(23) The merchant domain name [RFC1034], such as www.merchant.example. (See also Note 101.)

(23)商户域名[RFC1034],如www.merchant.example。(另见注101。)

(24) The domain name [RFC1034] of the gateway transaction processor that is actually accepting the payment on behalf of the merchant, such as www.processor.example. (See also Note 101.)

(24)代表商户实际接受支付的网关交易处理器的域名[RFC1034],如www.processor.example。(另见注101。)

(25) A Transaction identification string whose format is specific to the processor.

(25)一种事务标识字符串,其格式特定于处理器。

(26) A URL [RFC3986] that can be invoked to inquire about the transaction. (See also Note 100.)

(26)一个URL[RFC3986],可调用该URL查询交易。(另见注100。)

(27) The amount of the transaction in ISO currency format [ISO4217]. This is two integer numbers with a period in between but with no other currency mark (such as a "$" dollar sign).

(27)ISO货币格式的交易金额[ISO4217]。这是两个整数,中间有一个句点,但没有其他货币标记(如“$”美元符号)。

(28) This is the three-letter ISO currency code [ISO4217]. For example, US dollars is USD.

(28)这是三个字母的ISO货币代码[ISO4217]。例如,美元就是美元。

(29) ISO Transaction date.

(29)ISO交易日期。

(30) The type of the transaction, if known. Currently a value from the following list:

(30)交易类型(如已知)。当前为以下列表中的值:

debit credit

借方贷方

(31) A digital signature, base64 encoded [RFC2045]. (See also Note 101.)

(31)数字签名,base64编码[RFC2045]。(另见注101。)

(32) The ReceiptTo fields are used when the BillTo entity, location, or address and the ReceiptTo entity, location, or address are different. For example, when using some forms of Corporate Purchasing Cards or Agent Purchasing Cards, the individual card holder would be in the ReceiptTo fields, and the corporate or other owner would be in the BillTo fields.

(32)当BillTo实体、位置或地址与ReceiptTo实体、位置或地址不同时,使用ReceiptTo字段。例如,当使用某些形式的公司采购卡或代理采购卡时,个人卡持有人将位于ReceiptTo字段中,公司或其他所有者将位于BillTo字段中。

(33) An IETF Language Tag, as defined in [RFC3066].

(33)如[RFC3066]中所定义的IETF语言标签。

(34) User preferences, as specified by the merchant. (See also Note 102.)

(34)商户指定的用户偏好。(另见注102。)

(35) The Uniform Resource Locator [RFC3986] for accessing the customer's "wallet" software. (See also Note 100)

(35)用于访问客户“钱包”软件的统一资源定位器[RFC3986]。(另见附注100)

(36) A single capital letter: M=male, F=Female, U=Unknown [ISO5218].

(36)一个大写字母:M=男性,F=女性,U=未知[ISO5218]。

(37) An immutable device identification or serial number. (See also Note 102.)

(37)不可变的设备标识或序列号。(另见注102。)

(38) User understandable device brand name. (See also Note 102)

(38)用户可理解的设备品牌名称。(另见附注102)

(39) [ISO8583] field "card acceptor terminal identification".

(39)[ISO8583]字段“卡接受者终端标识”。

(40) [ISO8583] field "processing code".

(40)[ISO8583]字段“处理代码”。

(41) [ISO8583] field "acquiring institution identification code".

(41)[ISO8583]字段“收单机构识别码”。

(42) [ISO8583] field "forwarding institution identification code".

(42)[ISO8583]字段“转运机构识别码”。

(43) [ISO8583] field "system trace audit field".

(43)[ISO8583]字段“系统跟踪审计字段”。

(44) [ISO8583] field "date effective".

(44)[ISO8583]字段“生效日期”。

(45) [ISO8583] field "point of sale date code".

(45)[ISO8583]字段“销售点日期代码”。

(46) [ISO8583] field "approval code".

(46)[ISO8583]字段“批准代码”。

(47) [ISO8583] field "action code".

(47)[ISO8583]字段“操作代码”。

(48) [ISO8583] field "date settlement".

(48)[ISO8583]字段“日期结算”。

(49) [ISO8583] field "date capture".

(49)[ISO8583]字段“日期捕获”。

(50) [ISO8583] field "trace 1 data".

(50)[ISO8583]字段“跟踪1数据”。

(51) [ISO8583] field "trace 2 data".

(51)[ISO8583]字段“跟踪2数据”。

(52) User-recognizable loyalty card brand name. Values for this field are not controlled, and there is no IANA or other registry for them. (See also Note 102.)

(52)用户可识别的忠诚卡品牌名称。此字段的值不受控制,并且没有IANA或其他注册表。(另见注102。)

(53) The card issuer number required by the UK-based Switch and Solo acquirers.

(53)英国Switch和Solo收单机构要求的发卡机构编号。

(54) The field names "first_name" and "last_name" have been retained for compatibility with earlier versions of ECML. However, "last_name" should be understood to refer to family or inherited names(s), whereas "first_name" is the first given or non-inherited name and "middle_name" is the subsequent given or non-inherited name or names, if any.

(54)为了与早期版本的ECML兼容,保留了字段名“first_name”和“last_name”。但是,“姓氏”应理解为指家族或继承的姓名,而“姓氏”是指第一个给定或非继承的姓名,“中间名”是指后续给定或非继承的姓名(如有)。

(55) The Uniform Resource Locator [RFC3986] for accessing the user's X.509v3 certificate encoded as binary DER. (See also Note 100.)

(55)用于访问编码为二进制DER的用户X.509v3证书的统一资源定位器[RFC3986]。(另见注100。)

Meta Notes (referenced by other notes)

元注释(被其他注释引用)

(100) ECML, a basic field-naming and structuring convention, does not impose any particular requirements on these URLs. It is to be expected that most applications that make use of ECML will impose such limitations and perform checking to be sure that provided URLs conform to such limitations before attempting to invoke them.

(100)ECML是一种基本的字段命名和结构约定,对这些URL没有任何特殊要求。可以预期,大多数使用ECML的应用程序将施加此类限制,并在尝试调用它们之前执行检查以确保提供的URL符合此类限制。

(101) This is a field that, when presented in a web page, is usually hidden.

(101)这是一个在网页中显示时通常隐藏的字段。

(102) An ASCII [ASCII] character string with no leading or trailing white space.

(102)无前导或尾随空格的ASCII[ASCII]字符串。

2.2. Exemplar XML Syntax
2.2. 示例XML语法

The following sections provide an XML DTD and an XML Schema that express the ECML fields with ECML v2 naming and ECML v2 hierarchical structure. In case of conflict between this DTD and Schema, the Schema should prevail. Note that the ECML v2 naming and structure may be used in non-XML syntaxes.

以下各节提供一个XML DTD和一个XML模式,用ECMLv2命名和ECMLv2层次结构表示ECML字段。如果此DTD和模式之间存在冲突,应以模式为准。注意,ECMLv2命名和结构可以在非XML语法中使用。

The ECML v2 XML syntax is deliberately liberal because it is assumed that specific applications making use of ECML will impose their own additional constraints.

ECML v2 XML语法是故意宽松的,因为它假定使用ECML的特定应用程序将施加它们自己的附加约束。

For internationalization of ECML, use the general XML character-encoding provisions [XML] (which mandate support of UTF-8 and UTF-16 and permit support of other character sets) and the xml:lang attribute, which may be used to specify language information.

对于ECML的国际化,请使用通用XML字符编码规定[XML](要求支持UTF-8和UTF-16,并允许支持其他字符集)和XML:lang属性,该属性可用于指定语言信息。

2.2.1. ECML v2 XML DTD
2.2.1. ECMLv2XMLDTD

The following is an XML DTD for ECML v2.

下面是ECMLv2的XMLDTD。

      <!-- Electronic Commerce Modeling Language v2 -->
        
      <!-- Electronic Commerce Modeling Language v2 -->
        
      <!ELEMENT Ecom ( #PCDATA | ShipTo | BillTo | ReceiptTo | Payment |
                       Loyalty | User | Merchant | Transaction |
                       TransactionComplete )* >
      <!ATTLIST Ecom
                id        ID         #IMPLIED
                ConsumerOrderID CDATA #IMPLIED
                Merchant  CDATA      #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                Processor CDATA      #IMPLIED
                SchemaVersion (urn:ietf:params:ecml:v2.0)
                                     #IMPLIED
                WalletID  CDATA      #IMPLIED
                WalletLocation CDATA #IMPLIED >
        
      <!ELEMENT Ecom ( #PCDATA | ShipTo | BillTo | ReceiptTo | Payment |
                       Loyalty | User | Merchant | Transaction |
                       TransactionComplete )* >
      <!ATTLIST Ecom
                id        ID         #IMPLIED
                ConsumerOrderID CDATA #IMPLIED
                Merchant  CDATA      #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                Processor CDATA      #IMPLIED
                SchemaVersion (urn:ietf:params:ecml:v2.0)
                                     #IMPLIED
                WalletID  CDATA      #IMPLIED
                WalletLocation CDATA #IMPLIED >
        
      <!ELEMENT ShipTo ( #PCDATA | Postal | Telecom | Online )* >
      <!ATTLIST ShipTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT ShipTo ( #PCDATA | Postal | Telecom | Online )* >
      <!ATTLIST ShipTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT BillTo  ( #PCDATA | Postal | Telecom | Online )* >
      <!ATTLIST BillTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT BillTo  ( #PCDATA | Postal | Telecom | Online )* >
      <!ATTLIST BillTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT ReceiptTo ( #PCDATA | Postal | Telecom | Online )* >
        
      <!ELEMENT ReceiptTo ( #PCDATA | Postal | Telecom | Online )* >
        
      <!ATTLIST ReceiptTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ATTLIST ReceiptTo
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Postal ( #PCDATA | Name | Company |
                                   Street | City | StateProv )* >
      <!ATTLIST Postal
                id        ID         #IMPLIED
                PostalCode NMTOKEN   #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                CountryCode NMTOKEN  #IMPLIED >
        
      <!ELEMENT Postal ( #PCDATA | Name | Company |
                                   Street | City | StateProv )* >
      <!ATTLIST Postal
                id        ID         #IMPLIED
                PostalCode NMTOKEN   #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                CountryCode NMTOKEN  #IMPLIED >
        
      <!ELEMENT Name EMPTY >
      <!ATTLIST Name
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED
        
      <!ELEMENT Name EMPTY >
      <!ATTLIST Name
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED
        

Prefix NMTOKEN #IMPLIED First NMTOKEN #IMPLIED Middle NMTOKEN #IMPLIED Last NMTOKEN #IMPLIED Suffix NMTOKEN #IMPLIED >

前缀NMTOKEN#隐含第一个NMTOKEN#隐含中间NMTOKEN#隐含最后一个NMTOKEN#隐含后缀NMTOKEN#隐含>

      <!ELEMENT Street EMPTY >
      <!ATTLIST Street
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                Line1     CDATA      #REQUIRED
                Line2     CDATA      #IMPLIED
                Line3     CDATA      #IMPLIED >
        
      <!ELEMENT Street EMPTY >
      <!ATTLIST Street
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED
                Line1     CDATA      #REQUIRED
                Line2     CDATA      #IMPLIED
                Line3     CDATA      #IMPLIED >
        
      <!ELEMENT Company (#PCDATA) >
      <!ATTLIST Company
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Company (#PCDATA) >
      <!ATTLIST Company
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT City (#PCDATA) >
      <!ATTLIST City
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT City (#PCDATA) >
      <!ATTLIST City
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT StateProv (#PCDATA) >
      <!ATTLIST StateProv
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT StateProv (#PCDATA) >
      <!ATTLIST StateProv
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Telecom ( #PCDATA | Phone )* >
      <!ATTLIST Telecom
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Telecom ( #PCDATA | Phone )* >
      <!ATTLIST Telecom
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Phone EMPTY >
      <!ATTLIST Phone
                id         ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Number     CDATA     #REQUIRED >
        
      <!ELEMENT Phone EMPTY >
      <!ATTLIST Phone
                id         ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Number     CDATA     #REQUIRED >
        
      <!ELEMENT Online ( #PCDATA | Email )* >
      <!ATTLIST Online
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Online ( #PCDATA | Email )* >
      <!ATTLIST Online
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Email EMPTY >
      <!ATTLIST Email
                id         ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Address    CDATA     #REQUIRED >
        
      <!ELEMENT Email EMPTY >
      <!ATTLIST Email
                id         ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Address    CDATA     #REQUIRED >
        
      <!ELEMENT Payment (Card) >
      <!ATTLIST Payment
        
      <!ELEMENT Payment (Card) >
      <!ATTLIST Payment
        

Mode (Query|Assert) #IMPLIED >

模式(查询|断言)#隐含>

      <!ELEMENT Card (ExpDate, ValidDate?) >
      <!ATTLIST Card
                id          ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Name        CDATA     #IMPLIED
                Type        NMTOKEN   #IMPLIED
                Number      NMTOKEN   #REQUIRED
                Protocols   NMTOKENS  #IMPLIED
                Verification NMTOKEN  #IMPLIED
                Issuer      NMTOKEN   #IMPLIED >
        
      <!ELEMENT Card (ExpDate, ValidDate?) >
      <!ATTLIST Card
                id          ID        #IMPLIED
                Mode       (Query|Assert) #IMPLIED
                Name        CDATA     #IMPLIED
                Type        NMTOKEN   #IMPLIED
                Number      NMTOKEN   #REQUIRED
                Protocols   NMTOKENS  #IMPLIED
                Verification NMTOKEN  #IMPLIED
                Issuer      NMTOKEN   #IMPLIED >
        
      <!ELEMENT Loyalty (ExpDate?, ValidDate?) >
      <!ATTLIST Loyalty
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Name        CDATA     #IMPLIED
                Type        NMTOKEN   #IMPLIED
                Number      NMTOKEN   #REQUIRED
                Verification NMTOKEN  #IMPLIED >
        
      <!ELEMENT Loyalty (ExpDate?, ValidDate?) >
      <!ATTLIST Loyalty
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Name        CDATA     #IMPLIED
                Type        NMTOKEN   #IMPLIED
                Number      NMTOKEN   #REQUIRED
                Verification NMTOKEN  #IMPLIED >
        
      <!ELEMENT ExpDate EMPTY >
      <!ATTLIST ExpDate
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #IMPLIED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT ExpDate EMPTY >
      <!ATTLIST ExpDate
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #IMPLIED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT ValidDate EMPTY >
      <!ATTLIST ValidDate
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #IMPLIED
                Month       NMTOKEN   #IMPLIED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT ValidDate EMPTY >
      <!ATTLIST ValidDate
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #IMPLIED
                Month       NMTOKEN   #IMPLIED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT User ( #PCDATA | UserID | Password )* >
      <!ATTLIST User
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                CertificateURL CDATA  #IMPLIED
                DataCountry NMTOKEN   #IMPLIED
                DataLanguage CDATA    #IMPLIED >
        
      <!ELEMENT User ( #PCDATA | UserID | Password )* >
      <!ATTLIST User
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                CertificateURL CDATA  #IMPLIED
                DataCountry NMTOKEN   #IMPLIED
                DataLanguage CDATA    #IMPLIED >
        
      <!ELEMENT UserID (#PCDATA) >
      <!ATTLIST UserID
        
      <!ELEMENT UserID (#PCDATA) >
      <!ATTLIST UserID
        

Mode (Query|Assert) #IMPLIED >

模式(查询|断言)#隐含>

      <!ELEMENT Password (#PCDATA) >
      <!ATTLIST Password
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Password (#PCDATA) >
      <!ATTLIST Password
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Merchant (Terminal) >
      <!ATTLIST Merchant
                Mode        (Query|Assert) #IMPLIED
                id          ID        #IMPLIED >
        
      <!ELEMENT Merchant (Terminal) >
      <!ATTLIST Merchant
                Mode        (Query|Assert) #IMPLIED
                id          ID        #IMPLIED >
        
      <!ELEMENT Terminal EMPTY >
      <!ATTLIST Terminal
                Id          ID     #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Data        CDATA  #IMPLIED >
        
      <!ELEMENT Terminal EMPTY >
      <!ATTLIST Terminal
                Id          ID     #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Data        CDATA  #IMPLIED >
        
      <!ELEMENT Transaction ( #PCDATA | Id | Code | Date | Data |
                              Inquiry | Signature )* >
      <!ATTLIST Transaction
                Amount      CDATA     #IMPLIED
                Currency    NMTOKEN   #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Type        NMTOKEN   #IMPLIED >
        
      <!ELEMENT Transaction ( #PCDATA | Id | Code | Date | Data |
                              Inquiry | Signature )* >
      <!ATTLIST Transaction
                Amount      CDATA     #IMPLIED
                Currency    NMTOKEN   #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Type        NMTOKEN   #IMPLIED >
        
      <!ELEMENT Id EMPTY >
      <!ATTLIST Id
                Id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                CID         NMTOKEN   #IMPLIED
                Reference   NMTOKEN   #IMPLIED
                Acquire     NMTOKEN   #IMPLIED
                Forward     NMTOKEN   #IMPLIED >
        
      <!ELEMENT Id EMPTY >
      <!ATTLIST Id
                Id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                CID         NMTOKEN   #IMPLIED
                Reference   NMTOKEN   #IMPLIED
                Acquire     NMTOKEN   #IMPLIED
                Forward     NMTOKEN   #IMPLIED >
        
      <!ELEMENT Code EMPTY >
      <!ATTLIST Code
                Mode        (Query|Assert) #IMPLIED
                Processing  CDATA     #IMPLIED
                Approval    NMTOKEN   #IMPLIED
                Retrieval   NMTOKEN   #IMPLIED
                Action      NMTOKEN   #IMPLIED
                Reason      NMTOKEN   #IMPLIED
                POS         NMTOKEN   #IMPLIED >
        
      <!ELEMENT Code EMPTY >
      <!ATTLIST Code
                Mode        (Query|Assert) #IMPLIED
                Processing  CDATA     #IMPLIED
                Approval    NMTOKEN   #IMPLIED
                Retrieval   NMTOKEN   #IMPLIED
                Action      NMTOKEN   #IMPLIED
                Reason      NMTOKEN   #IMPLIED
                POS         NMTOKEN   #IMPLIED >
        
      <!ELEMENT Date (Effective?, Settle?, Capture?) >
      <!ATTLIST Date
                Mode        (Query|Assert) #IMPLIED
                id          ID        #IMPLIED >
        
      <!ELEMENT Date (Effective?, Settle?, Capture?) >
      <!ATTLIST Date
                Mode        (Query|Assert) #IMPLIED
                id          ID        #IMPLIED >
        
      <!ELEMENT Effective EMPTY >
      <!ATTLIST Effective
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Effective EMPTY >
      <!ATTLIST Effective
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Settle EMPTY >
      <!ATTLIST Settle
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Settle EMPTY >
      <!ATTLIST Settle
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Capture EMPTY >
      <!ATTLIST Capture
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Capture EMPTY >
      <!ATTLIST Capture
                id          ID        #IMPLIED
                Mode        (Query|Assert) #IMPLIED
                Day         NMTOKEN   #REQUIRED
                Month       NMTOKEN   #REQUIRED
                Year        NMTOKEN   #REQUIRED >
        
      <!ELEMENT Data (#PCDATA | Trace | PrivateUse | Response |
                       AAV | Track1 | Track2 )* >
      <!ATTLIST Data
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Data (#PCDATA | Trace | PrivateUse | Response |
                       AAV | Track1 | Track2 )* >
      <!ATTLIST Data
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Trace (#PCDATA) >
      <!ATTLIST Trade
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Trace (#PCDATA) >
      <!ATTLIST Trade
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT PrivateUse (#PCDATA) >
      <!ATTLIST PrivateUse
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT PrivateUse (#PCDATA) >
      <!ATTLIST PrivateUse
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Response (#PCDATA) >
      <!ATTLIST Response
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Response (#PCDATA) >
      <!ATTLIST Response
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT AAV (#PCDATA) >
      <!ATTLIST AAV
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT AAV (#PCDATA) >
      <!ATTLIST AAV
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Track1 (#PCDATA) >
      <!ATTLIST Track1
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Track1 (#PCDATA) >
      <!ATTLIST Track1
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Track2 (#PCDATA) >
      <!ATTLIST Track2
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Track2 (#PCDATA) >
      <!ATTLIST Track2
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Inquiry (#PCDATA) >
      <!ATTLIST Inquiry
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Inquiry (#PCDATA) >
      <!ATTLIST Inquiry
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Signature (#PCDATA) >
      <!ATTLIST Signature
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT Signature (#PCDATA) >
      <!ATTLIST Signature
                id        ID         #IMPLIED
                Mode      (Query|Assert) #IMPLIED >
        
      <!ELEMENT TransactionComplete EMPTY >
        
      <!ELEMENT TransactionComplete EMPTY >
        
2.2.2. ECML v2 XML Schema
2.2.2. ECMLv2XML模式

The following is an XML Schema for ECML v2.

以下是ECMLv2的XML模式。

   <?xml version="1.0" encoding="utf-8"?>
   <!-- Electronic Commerce Modeling Language v2 -->
        
   <?xml version="1.0" encoding="utf-8"?>
   <!-- Electronic Commerce Modeling Language v2 -->
        
   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
     elementFormDefault="qualified">
        
   <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
     elementFormDefault="qualified">
        
     <xs:attribute name="Mode">
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:enumeration value="Query"/>
           <xs:enumeration value="Assert"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute name="id" type="xs:ID"/>
     <xs:complexType name="EcomSimpleText">
       <xs:simpleContent>
         <xs:extension base="xs:string">
           <xs:attribute ref="Mode" use="optional"/>
           <xs:attribute ref="id" use="optional"/>
         </xs:extension>
       </xs:simpleContent>
        
     <xs:attribute name="Mode">
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:enumeration value="Query"/>
           <xs:enumeration value="Assert"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:attribute>
     <xs:attribute name="id" type="xs:ID"/>
     <xs:complexType name="EcomSimpleText">
       <xs:simpleContent>
         <xs:extension base="xs:string">
           <xs:attribute ref="Mode" use="optional"/>
           <xs:attribute ref="id" use="optional"/>
         </xs:extension>
       </xs:simpleContent>
        
     </xs:complexType>
        
     </xs:complexType>
        
     <xs:element name="Ecom">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="ShipTo"/>
           <xs:element ref="BillTo"/>
           <xs:element ref="ReceiptTo"/>
           <xs:element ref="Payment"/>
           <xs:element ref="Loyalty"/>
           <xs:element ref="User"/>
           <xs:element ref="Merchant"/>
           <xs:element ref="Transaction"/>
           <xs:element ref="TransactionComplete"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="ConsumerOrderID" use="optional"/>
         <xs:attribute name="Merchant" use="optional"/>
         <xs:attribute name="Processor" use="optional"/>
         <xs:attribute name="SchemaVersion" type="xs:string"
           fixed="urn:ietf:params:ecml:v2.0"/>
         <xs:attribute name="WalletID" use="optional"/>
         <xs:attribute name="WalletLocation" type="xs:anyURI"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ShipTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="BillTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
        
     <xs:element name="Ecom">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="ShipTo"/>
           <xs:element ref="BillTo"/>
           <xs:element ref="ReceiptTo"/>
           <xs:element ref="Payment"/>
           <xs:element ref="Loyalty"/>
           <xs:element ref="User"/>
           <xs:element ref="Merchant"/>
           <xs:element ref="Transaction"/>
           <xs:element ref="TransactionComplete"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="ConsumerOrderID" use="optional"/>
         <xs:attribute name="Merchant" use="optional"/>
         <xs:attribute name="Processor" use="optional"/>
         <xs:attribute name="SchemaVersion" type="xs:string"
           fixed="urn:ietf:params:ecml:v2.0"/>
         <xs:attribute name="WalletID" use="optional"/>
         <xs:attribute name="WalletLocation" type="xs:anyURI"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ShipTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="BillTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
        
     </xs:element>
     <xs:element name="ReceiptTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Postal">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Name"/>
           <xs:element ref="Company"/>
           <xs:element ref="Street"/>
           <xs:element ref="City"/>
           <xs:element ref="StateProv"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="PostalCode" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="CountryCode" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Telecom">
       <xs:complexType mixed="true">
         <xs:sequence maxOccurs="unbounded">
           <xs:element name="Phone">
             <xs:complexType>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Number"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Online">
       <xs:complexType mixed="true">
         <xs:sequence maxOccurs="unbounded">
           <xs:element name="Email">
             <xs:complexType>
        
     </xs:element>
     <xs:element name="ReceiptTo">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Postal"/>
           <xs:element ref="Telecom"/>
           <xs:element ref="Online"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Postal">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Name"/>
           <xs:element ref="Company"/>
           <xs:element ref="Street"/>
           <xs:element ref="City"/>
           <xs:element ref="StateProv"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="PostalCode" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="CountryCode" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Telecom">
       <xs:complexType mixed="true">
         <xs:sequence maxOccurs="unbounded">
           <xs:element name="Phone">
             <xs:complexType>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Number"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Online">
       <xs:complexType mixed="true">
         <xs:sequence maxOccurs="unbounded">
           <xs:element name="Email">
             <xs:complexType>
        
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Address"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Payment">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="Card">
             <xs:complexType>
               <xs:sequence>
                 <xs:element ref="ExpDate"/>
                 <xs:element ref="ValidDate" minOccurs="0"/>
               </xs:sequence>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Name" use="optional"/>
               <xs:attribute name="Type" type="xs:NMTOKEN"
                 use="optional"/>
               <xs:attribute name="Number" type="xs:decimal"/>
               <xs:attribute name="Protocols" type="xs:NMTOKENS"
                 use="optional"/>
               <xs:attribute name="Verification"
                 type="xs:NMTOKEN" use="optional"/>
               <xs:attribute name="Issuer" type="xs:NMTOKEN"
                 use="optional"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Loyalty">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ExpDate"/>
           <xs:element ref="ValidDate" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Name" use="optional"/>
         <xs:attribute name="Type" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Number" type="xs:NMTOKEN"/>
        
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Address"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Payment">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="Card">
             <xs:complexType>
               <xs:sequence>
                 <xs:element ref="ExpDate"/>
                 <xs:element ref="ValidDate" minOccurs="0"/>
               </xs:sequence>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Name" use="optional"/>
               <xs:attribute name="Type" type="xs:NMTOKEN"
                 use="optional"/>
               <xs:attribute name="Number" type="xs:decimal"/>
               <xs:attribute name="Protocols" type="xs:NMTOKENS"
                 use="optional"/>
               <xs:attribute name="Verification"
                 type="xs:NMTOKEN" use="optional"/>
               <xs:attribute name="Issuer" type="xs:NMTOKEN"
                 use="optional"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Loyalty">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="ExpDate"/>
           <xs:element ref="ValidDate" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Name" use="optional"/>
         <xs:attribute name="Type" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Number" type="xs:NMTOKEN"/>
        
         <xs:attribute name="Verification" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ExpDate">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:positiveInteger"/>
         <xs:attribute name="Month" type="xs:positiveInteger"/>
         <xs:attribute name="Year" type="xs:positiveInteger"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ValidDate">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:positiveInteger"/>
         <xs:attribute name="Month" type="xs:positiveInteger"/>
         <xs:attribute name="Year" type="xs:positiveInteger"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="User">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="UserID"/>
           <xs:element ref="Password"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="CertificateURL" type="xs:anyURI"
           use="optional"/>
         <xs:attribute name="DataCountry" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="DataLanguage" type="xs:language"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Transaction">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Id"/>
           <xs:element ref="Code"/>
           <xs:element ref="Date"/>
           <xs:element ref="Data"/>
           <xs:element ref="Inquiry"/>
           <xs:element ref="Signature"/>
         </xs:choice>
        
         <xs:attribute name="Verification" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ExpDate">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:positiveInteger"/>
         <xs:attribute name="Month" type="xs:positiveInteger"/>
         <xs:attribute name="Year" type="xs:positiveInteger"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="ValidDate">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:positiveInteger"/>
         <xs:attribute name="Month" type="xs:positiveInteger"/>
         <xs:attribute name="Year" type="xs:positiveInteger"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="User">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="UserID"/>
           <xs:element ref="Password"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="CertificateURL" type="xs:anyURI"
           use="optional"/>
         <xs:attribute name="DataCountry" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="DataLanguage" type="xs:language"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Transaction">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Id"/>
           <xs:element ref="Code"/>
           <xs:element ref="Date"/>
           <xs:element ref="Data"/>
           <xs:element ref="Inquiry"/>
           <xs:element ref="Signature"/>
         </xs:choice>
        
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute name="Currency" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Type" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Date">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="Effective" minOccurs="0"/>
           <xs:element ref="Settle" minOccurs="0"/>
           <xs:element ref="Capture" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Data">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Trace"/>
           <xs:element ref="PrivateUse"/>
           <xs:element ref="Response"/>
           <xs:element ref="AAV"/>
           <xs:element ref="Track1"/>
           <xs:element ref="Track2"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Merchant">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="Terminal">
             <xs:complexType>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Data" use="optional"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
        
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute name="Currency" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Type" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Date">
       <xs:complexType>
         <xs:sequence>
           <xs:element ref="Effective" minOccurs="0"/>
           <xs:element ref="Settle" minOccurs="0"/>
           <xs:element ref="Capture" minOccurs="0"/>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Data">
       <xs:complexType mixed="true">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="Trace"/>
           <xs:element ref="PrivateUse"/>
           <xs:element ref="Response"/>
           <xs:element ref="AAV"/>
           <xs:element ref="Track1"/>
           <xs:element ref="Track2"/>
         </xs:choice>
         <xs:attribute ref="Mode" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Merchant">
       <xs:complexType>
         <xs:sequence>
           <xs:element name="Terminal">
             <xs:complexType>
               <xs:attribute ref="Mode" use="optional"/>
               <xs:attribute ref="id" use="optional"/>
               <xs:attribute name="Data" use="optional"/>
             </xs:complexType>
           </xs:element>
         </xs:sequence>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
       </xs:complexType>
     </xs:element>
        
     <xs:element name="AAV" type="EcomSimpleText"/>
        
     <xs:element name="AAV" type="EcomSimpleText"/>
        
     <xs:element name="Capture">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="City" type="EcomSimpleText"/>
     <xs:element name="Code">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute name="Processing" use="optional"/>
         <xs:attribute name="Approval" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Retrieval" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Action" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Reason" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="POS" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Company" type="EcomSimpleText"/>
     <xs:element name="Effective">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Id">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="CID" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Reference" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Acquire" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Forward" type="xs:NMTOKEN"
           use="optional"/>
        
     <xs:element name="Capture">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="City" type="EcomSimpleText"/>
     <xs:element name="Code">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute name="Processing" use="optional"/>
         <xs:attribute name="Approval" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Retrieval" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Action" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Reason" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="POS" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Company" type="EcomSimpleText"/>
     <xs:element name="Effective">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Id">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="CID" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Reference" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Acquire" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Forward" type="xs:NMTOKEN"
           use="optional"/>
        
       </xs:complexType>
     </xs:element>
     <xs:element name="Inquiry">
       <xs:complexType>
         <xs:simpleContent>
           <xs:extension base="xs:anyURI">
             <xs:attribute ref="Mode" use="optional"/>
             <xs:attribute ref="id" use="optional"/>
           </xs:extension>
        </xs:simpleContent>
       </xs:complexType>
     </xs:element>
     <xs:element name="Name">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Prefix" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="First" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Middle" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Last" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Suffix" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Password" type="EcomSimpleText"/>
     <xs:element name="PrivateUse" type="EcomSimpleText"/>
     <xs:element name="Response" type="EcomSimpleText"/>
     <xs:element name="Settle">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Signature">
       <xs:complexType>
         <xs:simpleContent>
           <xs:extension base="xs:string">
             <xs:attribute ref="Mode" use="optional"/>
             <xs:attribute ref="id" use="optional"/>
           </xs:extension>
        </xs:simpleContent>
        
       </xs:complexType>
     </xs:element>
     <xs:element name="Inquiry">
       <xs:complexType>
         <xs:simpleContent>
           <xs:extension base="xs:anyURI">
             <xs:attribute ref="Mode" use="optional"/>
             <xs:attribute ref="id" use="optional"/>
           </xs:extension>
        </xs:simpleContent>
       </xs:complexType>
     </xs:element>
     <xs:element name="Name">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Prefix" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="First" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Middle" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Last" type="xs:NMTOKEN"
           use="optional"/>
         <xs:attribute name="Suffix" type="xs:NMTOKEN"
           use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Password" type="EcomSimpleText"/>
     <xs:element name="PrivateUse" type="EcomSimpleText"/>
     <xs:element name="Response" type="EcomSimpleText"/>
     <xs:element name="Settle">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Day" type="xs:NMTOKEN"/>
         <xs:attribute name="Month" type="xs:NMTOKEN"/>
         <xs:attribute name="Year" type="xs:NMTOKEN"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Signature">
       <xs:complexType>
         <xs:simpleContent>
           <xs:extension base="xs:string">
             <xs:attribute ref="Mode" use="optional"/>
             <xs:attribute ref="id" use="optional"/>
           </xs:extension>
        </xs:simpleContent>
        
       </xs:complexType>
     </xs:element>
     <xs:element name="StateProv" type="EcomSimpleText"/>
     <xs:element name="Street">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Line1"/>
         <xs:attribute name="Line2" use="optional"/>
         <xs:attribute name="Line3" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Trace" type="EcomSimpleText"/>
     <xs:element name="Track1" type="EcomSimpleText"/>
     <xs:element name="Track2" type="EcomSimpleText"/>
     <xs:element name="TransactionComplete">
       <xs:complexType/>
     </xs:element>
     <xs:element name="UserID" type="EcomSimpleText"/>
        
       </xs:complexType>
     </xs:element>
     <xs:element name="StateProv" type="EcomSimpleText"/>
     <xs:element name="Street">
       <xs:complexType>
         <xs:attribute ref="Mode" use="optional"/>
         <xs:attribute ref="id" use="optional"/>
         <xs:attribute name="Line1"/>
         <xs:attribute name="Line2" use="optional"/>
         <xs:attribute name="Line3" use="optional"/>
       </xs:complexType>
     </xs:element>
     <xs:element name="Trace" type="EcomSimpleText"/>
     <xs:element name="Track1" type="EcomSimpleText"/>
     <xs:element name="Track2" type="EcomSimpleText"/>
     <xs:element name="TransactionComplete">
       <xs:complexType/>
     </xs:element>
     <xs:element name="UserID" type="EcomSimpleText"/>
        
   </xs:schema>
        
   </xs:schema>
        
3. Usage Notes for ECML v2
3. ecmlv2的使用说明

This section provides a general usage guide for ECML v2.

本节提供ECMLv2的一般使用指南。

3.1. Presentation of the Fields
3.1. 字段的介绍

ECML v2 merely names fields and specifies their content and hierarchical organization. It does not constrain the order or completeness of communication of or query for these fields.

ECMLv2仅命名字段并指定其内容和层次结构。它不限制这些字段的通信或查询的顺序或完整性。

Some parties may wish to provide or ask for more information, and some for less by omitting fields. Some may ask for the information they want in one interaction or web page, and others may ask for parts of the information at different times in multiple interactions or different web pages. For example, it is common to ask for "ship to" information earlier so that the shipping cost can be computed before the payment method information. Some parties may require that all the information they request be provided whereas others may make much of the information optional. Other variations are likely.

Some parties may wish to provide or ask for more information, and some for less by omitting fields. Some may ask for the information they want in one interaction or web page, and others may ask for parts of the information at different times in multiple interactions or different web pages. For example, it is common to ask for "ship to" information earlier so that the shipping cost can be computed before the payment method information. Some parties may require that all the information they request be provided whereas others may make much of the information optional. Other variations are likely.translate error, please retry

Every element may be flagged as a query or assertion by including, when XML syntax is in use, the optional Mode attribute with the value "Query" or "Assert" respectively. The Mode attribute effects all descendant elements until overridden by a lower level element with a Mode attribute. Thus it is easy to indicate that all of the elements in an ECML v2 structure are present as queries or assertions.

当使用XML语法时,每个元素都可以被标记为查询或断言,方法是分别包含值为“query”或“Assert”的可选模式属性。模式属性影响所有子体元素,直到被具有模式属性的较低级别元素覆盖。因此,很容易指出ecmlv2结构中的所有元素都以查询或断言的形式存在。

Query elements may have data content. Such content SHOULD be interpreted as a default value to be returned if no better value is known.

查询元素可能有数据内容。如果不知道更好的值,则应将此类内容解释为要返回的默认值。

There is no way with Version 2.0 of ECML to indicate what query fields a party considers mandatory to be answered. From this point of view, all fields queried are optional to complete. However, a party may give an error or re-present a request for information if some field it requires is not completed, just as it may if a field is completed in a manner that it considers erroneous.

ECML的2.0版无法指明一方认为必须回答哪些查询字段。从这个角度来看,所有查询的字段都是可选的。但是,如果一方要求填写的某个字段未填写,则该方可能会给出错误或重新提交信息请求,正如该方认为填写的某个字段有误一样。

3.2. Methods and Flow of Setting the Fields
3.2. 设置字段的方法和流程

A variety of methods of communication is possible between the parties by which each can indicate what fields it wants the other to provide. Probably the easiest method for currently deployed mass software is through fields in an [HTML] form. Other possibilities include using an [XML] exchange, the IOTP Authenticate transaction [RFC2801], or proprietary protocols.

各方之间可以采用各种通信方法,通过这些方法,各方都可以表示希望对方提供哪些字段。对于当前部署的大规模软件来说,最简单的方法可能是通过[HTML]表单中的字段。其他可能性包括使用[XML]交换、IOTP身份验证事务[RFC2801]或专有协议。

So that browser software can tell what version it is dealing with, it is REQUIRED that the Ecom_SchemaVersion field be included in every transaction when ECML is being used on the web. Ecom_SchemaVersion SHOULD appear on every web page that has any Ecom fields. It is usually a hidden field in HTML Forms.

为了让浏览器软件能够知道它所处理的是什么版本,当ECML在web上使用时,需要在每个事务中包含Ecom_SchemaVersion字段。Ecom_SchemaVersion应该出现在每个有Ecom字段的网页上。它通常是HTML表单中的隐藏字段。

User action or the appearance of the Ecom_SchemaVersion field are examples of triggers that can be used to initiate a facility capable of providing information in response to an ECML-based query or of using information from ECML assertions. Because some web software may require user activation, it is RECOMMENDED that there be at least one user-visible Ecom field on every web page with any Ecom fields present when ECML is used via the web.

用户操作或Ecom_SchemaVersion字段的出现是触发器的示例,这些触发器可用于启动能够响应基于ECML的查询提供信息或使用来自ECML断言的信息的设施。由于某些web软件可能需要用户激活,因此建议在通过web使用ECML时,每个网页上至少有一个用户可见的Ecom字段,并且存在任何Ecom字段。

Under some circumstances, communications can proceed very slowly, so it may not be clear to an automated processing function when it is finished receiving ECML fields on a web page or the like. For this reason, it is RECOMMENDED that the Ecom_SchemaVersion field be the last Ecom field on a web page.

在某些情况下,通信可以非常缓慢地进行,因此当自动处理功能完成接收网页等上的ECML字段时,它可能不清楚。因此,建议将Ecom_SchemaVersion字段作为网页上的最后一个Ecom字段。

Transfer or requests for information can extend over several interactions or web pages. Without further provision, a facility could either require re-starting on each page or possibly violate or appear to violate privacy by continuing to provide personal data beyond the end of the transaction with a particular business. For this reason, the Ecom_TransactionComplete field, which is normally hidden when it is part of an HTML Form, is provided. It is RECOMMENDED that it appear on the last interaction or web page

信息传输或请求可以扩展到多个交互或网页。在没有进一步规定的情况下,设施可能需要在每个页面上重新启动,或者在特定业务交易结束后继续提供个人数据,从而可能侵犯或似乎侵犯隐私。因此,提供了Ecom_TransactionComplete字段,该字段在作为HTML表单的一部分时通常是隐藏的。建议将其显示在最后一次交互或网页上

involved in a transaction, just before an Ecom_SchemaVersion field, so that multi-interaction automated logic receives a hint as to when to stop if it chooses to check for this field.

在一个事务中,就在一个Ecom_SchemaVersion字段之前,这样多交互自动逻辑就会收到一个提示,如果它选择检查这个字段,那么什么时候停止。

4. Security and Privacy Considerations
4. 安全和隐私注意事项

The information called for by many of these fields is sensitive. It should be protected from unauthorized modification and kept confidential if it is stored in a location or transmitted over a channel where it might otherwise be observed. In addition, the authenticity of the information will be a concern in many systems.

这些领域中的许多领域所要求的信息是敏感的。应保护其不受未经授权的修改,如果其存储在可能被观察到的位置或通过信道传输,则应保密。此外,在许多系统中,信息的真实性也是一个值得关注的问题。

Mechanisms for such protection and authentication are not specified herein but might, depending on circumstances, include object security protocols (such as XMLDSIG [RFC3275], XML encryption [XMLENC], or CMS [RFC3852]), or channel security (such as TLS [RFC2246] or IPSec [RFC2411]). Systems in which an ECML field or fields are stored and later forwarded will likely find object security the most appropriate.

本文未规定此类保护和认证的机制,但根据具体情况,可能包括对象安全协议(如XMLDSIG[RFC3275]、XML加密[XMLENC]或CMS[RFC3852])或通道安全协议(如TLS[RFC2246]或IPSec[RFC2411])。存储一个或多个ECML字段并在以后转发的系统可能会发现对象安全性是最合适的。

When information is being requested from a user, the user's control over the release of such information is needed to protect the user's privacy.

当用户请求信息时,需要用户控制此类信息的发布,以保护用户的隐私。

Software that is installed on shared or public terminals should be configurable so that memory of any sensitive or individual identity information is fully disabled. This is vital to protect the privacy of library patrons, students, and customers using public terminals, and of children who might, for example, use a form on a public terminal without realizing that their information is being stored.

安装在共享或公共终端上的软件应可配置,以便完全禁用任何敏感或个人身份信息的存储器。这对于保护使用公共终端的图书馆用户、学生和客户的隐私,以及可能(例如)在公共终端上使用表单而未意识到其信息正在存储的儿童的隐私至关重要。

When sensitive or individual identification information is stored, the operator or user should have an option to protect the information; for example, with a password without which the information will be unavailable, even to someone who has access to the file(s) in which it is being stored.

当存储敏感或个人身份信息时,操作员或用户应选择保护信息;例如,如果没有密码,信息将不可用,即使是对存储信息的文件具有访问权限的人。

Any multi-page/screen or other multi-aggregate field fill-in or data provision mechanism SHOULD check for the Ecom_TransactionComplete field and cease automated fill when it is encountered until fill is further authorized.

任何多页/屏幕或其他多聚合字段填写或数据提供机制应检查Ecom_TransactionComplete字段,并在遇到自动填写时停止自动填写,直到进一步授权填写。

It should be remembered that default, hidden, and other values transferred to another party may be maliciously modified before being returned.

应该记住,传输给另一方的默认值、隐藏值和其他值在返回之前可能会被恶意修改。

5. IANA Considerations
5. IANA考虑

The sections below provide for:

以下各节规定:

1. registration of the ECML v2 XML schema contained in this document,

1. 注册本文档中包含的ECML v2 XML模式,

2. a version URN for ECML versions,

2. 用于ECML版本的版本URN,

3. the subsidiary registration of particular ECML versions and the specific registration of Version 2.0, and

3. 特定ECML版本的附属注册和版本2.0的特定注册,以及

4. three additional IANA registries for elements appearing in three ECML v2 fields.

4. 三个额外的IANA注册表,用于显示在三个ECMLv2字段中的元素。

5.1. ECML v2 Schema Template
5.1. ECMLv2模式模板

The ECML v2 schema give in Section 2.2.2 above is registered as follows:

上文第2.2.2节中给出的ECML v2模式注册如下:

   URI: urn:ietf:params:xml:schema:ECMLv2
        
   URI: urn:ietf:params:xml:schema:ECMLv2
        
   Registrant Contact: The IESG <iesg@ietf.org>
        
   Registrant Contact: The IESG <iesg@ietf.org>
        

XML: The XML Schema in Section 2.2.2 above.

XML:上面第2.2.2节中的XML模式。

5.2. ECML v2 URN Template
5.2. ecmlv2urn模板

As specified by the template below from [RFC3553], urn:ietf:params:ecml is permanently registered with sub-registration via RFC publication.

根据[RFC3553]中以下模板的规定,urn:ietf:params:ecml通过RFC发布在子注册中永久注册。

   Registry name: urn:ietf:params:ecml
        
   Registry name: urn:ietf:params:ecml
        

Specification: RFC 4112

规格:RFC4112

Repository: RFC 4112

储存库:RFC4112

Index value: Values subordinate to urn:ietf:params:ecml are registered by RFC publication. As provided in [RFC3553], once such a value is registered, it may never change.

索引值:从属于urn:ietf:params:ecml的值由RFC发布注册。如[RFC3553]所述,一旦注册了该值,该值可能永远不会更改。

5.2.1. Sub-registration of v2.0
5.2.1. v2.0的再注册

The subordinate value "v2.0" is hereby permanently registered so that the URN

从属值“v2.0”在此永久注册,以便

        urn:ietf:params:ecml:v2.0
        
        urn:ietf:params:ecml:v2.0
        

is used to indicate an ECML field or fields that conform to this specification. Although it is not anticipated that deeper values subordinate to this URN will need to be registered, if necessary, they are registered by IESG approval.

用于指示符合本规范的一个或多个ECML字段。虽然预计不需要注册从属于此URN的更深的值,但如有必要,这些值由IESG批准注册。

5.3. IANA Registries
5.3. IANA登记处

There are three fields described in Section 2.1.2 that require the establishment of IANA registries as described below:

第2.1.2节所述的三个领域需要建立IANA登记册,如下所述:

Ecom_Payment_Card_Type A registry of case-insensitive alphanumeric ASCII [ASCII] card-type designations from one to four characters in length with no white space. See Section 2.1.2, Note 11, for the initial 12 designations. Designations are added based on expert approval. Applicants for registration will normally be required already to have an ISO Issuer Identification Number (IIN) or set of IINs.

Ecom_Payment_Card_Type不区分大小写的字母数字ASCII[ASCII]卡类型指定的注册表,长度为一到四个字符,无空格。关于最初的12个名称,见第2.1.2节注释11。根据专家批准添加名称。注册申请人通常需要已经拥有ISO发行人识别号(IIN)或一套IIN。

Ecom_Payment_Card_Protocol This field holds a space-separated list of protocols designated by case-insensitive alphanumeric ASCII [ASCII] tokens from this registry or holds the token "none". See Section 2.1.2, note 17, for the initial seven registered tokens (including "none") and further information. Tokens are added to the registry based on expert approval.

Ecom_Payment_Card_Protocol此字段保存由来自此注册表的不区分大小写的字母数字ASCII[ASCII]标记指定的协议的空格分隔列表,或保存标记“none”。参见第2.1.2节注释17,了解最初七个注册代币(包括“无”)和更多信息。令牌根据专家批准添加到注册表中。

Ecom_Transaction_Type A case-insensitive alphabetic ASCII [ASCII] value indicating the type of transaction. See Section 2.1.2, note 30, for the initial two registered values. Values are added based on expert approval.

Ecom_Transaction_Type指示事务类型的不区分大小写的字母ASCII[ASCII]值。初始两个注册值见第2.1.2节注释30。根据专家批准添加值。

6. Acknowledgements
6. 致谢

The following, listed is alphabetic order, have contributed to the material herein: Ray Bellis, Steve Bellovin, Scott Hollenbeck, Russ Housley, Jon Parsons, Lauri Piikivi, David Shepherd, and James J. Peter.

以下是按字母顺序排列的材料:Ray Bellis、Steve Bellovin、Scott Hollenbeck、Russ Housley、Jon Parsons、Lauri Piikivi、David Shepherd和James J.Peter。

A. Appendix: Changes from v1.1 to v2

A.附录:从v1.1到v2的变更

Substantial rewording of text to change the emphasis from HTML Form Fields to XML Syntax.

大量重写文本,将重点从HTML表单字段更改为XML语法。

Addition of the merchant -> processor fields.

添加商户->处理者字段。

Addition of the Ecom_Wallet_Location and Ecom_User_Certificate_URL fields.

添加Ecom_钱包位置和Ecom_用户证书URL字段。

Addition of the "Mode" attribute.

添加“模式”属性。

Addition of the ECom_Payment_Card_IssueNumber, Loyalty Card fields, Device ID, Valid From, and User Data fields.

添加ECom_支付卡发行人、忠诚卡字段、设备ID、有效发件人和用户数据字段。

Addition of an XML schema.

添加XML模式。

Some minor fixes related to telephone numbers.

一些与电话号码有关的小问题。

Addition of IANA Considerations section.

增加IANA注意事项部分。

Updating of RFC references for obsoleted RFCs.

更新废弃RFC的RFC参考。

Normative References

规范性引用文件

[ASCII] USA Standard Code for Information Interchange, X3.4 American National Standards Institute; New York, 1968.

[ASCII]美国信息交换标准代码,X3.4美国国家标准协会;1968年,纽约。

[E.164] ITU-T Recommendation E.164/I.331 (05/97): The International Public Telecommunication Numbering Plan. 1997.

[E.164]ITU-T建议E.164/I.331(05/97):国际公共电信编号计划。1997

[ISO3166] "Codes for the representation of names of countries and their subdivisions -- Part 1: Country codes", ISO 3166-1, 1997.

[ISO3166]“国家及其分支机构名称表示代码——第1部分:国家代码”,ISO 3166-11997。

[ISO4217] "Codes for the representation of currencies and funds", ISO 4217, 2001.

[ISO4217]“货币和资金表示代码”,ISO 42172001。

[ISO5218] "Information interchange -- Representation of human sexes", ISO 5218, 1977.

[ISO5218]“信息交换——人类性别的表征”,ISO 52181977。

[ISO7812] "Identification card - Identification of issuers - Part 1: Numbering system", ISO 7812-1, 2000.

[ISO7812]“识别卡-发卡机构的识别-第1部分:编号系统”,ISO 7812-119000。

[ISO8583] "Financial transaction card originated messages - Interchange message specifications - Part 1: Messages, elements and code values", ISO 8583-1, 2001.

[ISO8583]“金融交易卡原始报文-交换报文规范-第1部分:报文、元素和代码值”,ISO 8583-11901。

[RFC2045] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, November 1996.

[RFC2045]Freed,N.和N.Borenstein,“多用途Internet邮件扩展(MIME)第一部分:Internet邮件正文格式”,RFC 20451996年11月。

[RFC3066] Alvestrand, H., "Tags for the Identification of Languages", BCP 47, RFC 3066, January 2001.

[RFC3066]Alvestrand,H.,“语言识别标签”,BCP 47,RFC 3066,2001年1月。

[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, January 2005.

[RFC3986]Berners Lee,T.,Fielding,R.,和L.Masinter,“统一资源标识符(URI):通用语法”,STD 66,RFC 3986,2005年1月。

[XML] Extensible Markup Language (XML) 1.0 (Third Edition), Yergeau, F., Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E., and F. Yergeau, February 2004, <http://www.w3.org/TR/REC-xml>.

[XML]可扩展标记语言(XML)1.0(第三版),Yergeau,F.,Bray,T.,Paoli,J.,Sperberg McQueen,C.M.,Maler,E.和F.Yergeau,2004年2月<http://www.w3.org/TR/REC-xml>.

Informative References

资料性引用

   [eCheck]   <http://www.echeck.org>
        
   [eCheck]   <http://www.echeck.org>
        

[HTML] "HTML 3.2 Reference Specification", D. Raggett, January 1997, <http://www.w3.org/TR/REC-html32.html>.

[HTML]“HTML 3.2参考规范”,D.Raggett,1997年1月<http://www.w3.org/TR/REC-html32.html>.

[P3P.BASE] "The Platform for Privacy Preferences 1.0 (P3P1.0) Specification", Cranor, L., Langheinrich, M., Marchiori, M., Presler-Marshall, M., and J. Reagle, December 2000, <http://www.w3.org/TR/WD-P3P/>.

[P3P.BASE]“隐私偏好平台1.0(P3P1.0)规范”,克兰纳,L.,兰海因里希,M.,马尔基奥里,M.,普雷斯勒·马歇尔,M.,和J.雷格尔,2000年12月<http://www.w3.org/TR/WD-P3P/>.

[P3P.ECOM] "Using P3P for E-Commerce", Coco, J., Klien, S., Schutzer, D., Yen, S., and A. Slater, November 1999, <http://www.w3.org/TR/P3P-for-ecommerce>.

[P3P.ECOM]“将P3P用于电子商务”,Coco,J.,Klien,S.,Schutzer,D.,Yen,S.,和A.Slater,1999年11月<http://www.w3.org/TR/P3P-for-ecommerce>.

[RFC1034] Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, November 1987.

[RFC1034]Mockapetris,P.,“域名-概念和设施”,STD 13,RFC 1034,1987年11月。

[RFC2246] Dierks, T. and C. Allen, "The TLS Protocol Version 1.0", RFC 2246, January 1999.

[RFC2246]Dierks,T.和C.Allen,“TLS协议版本1.0”,RFC2246,1999年1月。

[RFC2411] Thayer, R., Doraswamy, N., and R. Glenn, "IP Security Document Roadmap", RFC 2411, November 1998.

[RFC2411]Thayer,R.,Doraswamy,N.,和R.Glenn,“IP安全文档路线图”,RFC 24111998年11月。

[RFC2706] Eastlake 3rd, D. and T. Goldstein, "ECML v1: Field Names for E-Commerce", RFC 2706, October 1999.

[RFC2706]Eastlake 3rd,D.和T.Goldstein,“ECML v1:电子商务领域名称”,RFC 2706,1999年10月。

[RFC2801] Burdett, D., "Internet Open Trading Protocol - IOTP Version 1.0", RFC 2801, April 2000.

[RFC2801]Burdett,D.,“互联网开放交易协议-IOTP版本1.0”,RFC2801,2000年4月。

[RFC3106] Eastlake 3rd, D. and T. Goldstein, "ECML v1.1: Field Specifications for E-Commerce", RFC 3106, April 2001.

[RFC3106]Eastlake 3rd,D.和T.Goldstein,“ECML v1.1:电子商务的现场规范”,RFC 3106,2001年4月。

[RFC3275] Eastlake 3rd, D., Reagle, J., and D. Solo, "(Extensible Markup Language) XML-Signature Syntax and Processing", RFC 3275, March 2002.

[RFC3275]Eastlake 3rd,D.,Reagle,J.,和D.Solo,“(可扩展标记语言)XML签名语法和处理”,RFC 32752002年3月。

[RFC3553] Mealling, M., Masinter, L., Hardie, T., and G. Klyne, "An IETF URN Sub-namespace for Registered Protocol Parameters", BCP 73, RFC 3553, June 2003.

[RFC3553]Mealling,M.,Masinter,L.,Hardie,T.,和G.Klyne,“注册协议参数的IETF URN子命名空间”,BCP 73,RFC 3553,2003年6月。

[RFC3852] Housley, R., "Cryptographic Message Syntax (CMS)", RFC 3852, July 2004.

[RFC3852]Housley,R.,“加密消息语法(CMS)”,RFC3852,2004年7月。

[SET] Secure Electronic Transaction, <http://www.setco.org/set_specifications.html>.

[SET]安全的电子交易<http://www.setco.org/set_specifications.html>.

[XMLENC] "XML Encryption Syntax and Processing", Eastlake 3rd, D. and J. Reagle, December 2002, <http://www.w3.org/TR/xmlenc-core/>.

[XMLENC]“XML加密语法和处理”,Eastlake 3rd,D.和J.Reagle,2002年12月<http://www.w3.org/TR/xmlenc-core/>.

Author's Address

作者地址

Donald E. Eastlake 3rd Motorola Laboratories 155 Beaver Street Milford, MA 01757 USA

Donald E.Eastlake 3rd Motorola Laboratories美国马萨诸塞州米尔福德市海狸街155号,邮编01757

Phone: 1-508-786-7554 (work) 1-508-634-2066 (home) EMail: Donald.Eastlake@motorola.com

电话:1-508-786-7554(工作)1-508-634-2066(家)电子邮件:Donald。Eastlake@motorola.com

Full Copyright Statement

完整版权声明

Copyright (C) The Internet Society (2005).

版权所有(C)互联网协会(2005年)。

This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.

本文件受BCP 78中包含的权利、许可和限制的约束,除其中规定外,作者保留其所有权利。

This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

本文件及其包含的信息是按“原样”提供的,贡献者、他/她所代表或赞助的组织(如有)、互联网协会和互联网工程任务组不承担任何明示或暗示的担保,包括但不限于任何保证,即使用本文中的信息不会侵犯任何权利,或对适销性或特定用途适用性的任何默示保证。

Intellectual Property

知识产权

The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.

IETF对可能声称与本文件所述技术的实施或使用有关的任何知识产权或其他权利的有效性或范围,或此类权利下的任何许可可能或可能不可用的程度,不采取任何立场;它也不表示它已作出任何独立努力来确定任何此类权利。有关RFC文件中权利的程序信息,请参见BCP 78和BCP 79。

Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.

向IETF秘书处披露的知识产权副本和任何许可证保证,或本规范实施者或用户试图获得使用此类专有权利的一般许可证或许可的结果,可从IETF在线知识产权存储库获取,网址为http://www.ietf.org/ipr.

The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.

IETF邀请任何相关方提请其注意任何版权、专利或专利申请,或其他可能涵盖实施本标准所需技术的专有权利。请将信息发送至IETF的IETF-ipr@ietf.org.

Acknowledgement

确认

Funding for the RFC Editor function is currently provided by the Internet Society.

RFC编辑功能的资金目前由互联网协会提供。