使用 IBM Data Studio Developer 中的 XSLT 转换 Data Web Services 消息(下)
2010-04-15 00:00:00 来源:WEB开发网清单 8. NewXMLSchemaOutput.xsd - 定制输出消息的 XSD
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/getHREmpDetails" elementFormDefault="qualified">
<element name="getHREmpDetails">
<complexType>
<sequence>
<element name="HREmpPersonalDetails">
<complexType>
<sequence>
<element name="EMP_FIRSTNAME" type="xsd:string"/>
<element name="EMP_MIDINIT" type="xsd:string" nillable="true"/>
<element name="EMP_LastNAME" type="xsd:string"/>
<element name="EMP_SEX" type="xsd:string" nillable="true"/>
<element name="EMP_BDATE" type="xsd:date" nillable="true"/>
</sequence>
</complexType>
</element>
<element name="HREmpSalaryDetails">
<complexType>
<sequence>
<element name="EMP_SERIAL" type="xsd:string"/>
<element name="EMP_YEARLY_COMP" type="xsd:decimal" nillable="true"/>
<element name="EMP_MIDYEAR_BONUS" type="xsd:decimal" nillable="true"/>
<element name="EMP_YEAREND_BONUS" type="xsd:decimal" nillable="true"/>
</sequence>
</complexType>
</element>
<element name="HREmpWorkDetails">
<complexType>
<sequence>
<element name="EMP_DEPT" type="xsd:string" nillable="true"/>
<element name="EMP_WORKNO" type="xsd:string" nillable="true"/>
<element name="EMP_HIREDATE" type="xsd:date" nillable="true"/>
<element name="EMP_JOBDESC" type="xsd:string" nillable="true"/>
<element name="EMP_EDLEVEL" type="xsd:short"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
更多精彩
赞助商链接