我们正在使用 IBM Websphere 转换扩展器在中间件系统中进行 xml 到 copybook 的转换,反之亦然。从这个链接 Cobol 到 xsd 映射 ,我们意识到
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)