【发布时间】:2012-01-15 14:05:33
【问题描述】:
我们正在使用 IBM Websphere 转换扩展器在中间件系统中进行 xml 到 copybook 的转换,反之亦然。从这个链接 Cobol to xsd mapping ,我们意识到
字帖中的PIC X(03)必须转换为以下xml架构
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxlength value="3"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpletype>
字帖中的 PIC 9(03) 必须转换为以下 xml 架构
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedInt">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="999"/>
</xsd:restriction>
</xsd:simpletype>
但是,无法直接确定要用于以下字帖类型的 xml 架构。谁能指导一下?
PIC S9(17) COMP-3
PIC S9(17)
PIC S9(03)
PIC S9(03) COMP-3
PIC +9(17)
PIC +9(03)
【问题讨论】:
标签: xsd transformation cobol copybook wtx