次のスキーマ要素があり、それに属性を追加したいと考えています。
<xsd:ComplexType>
<xsd:sequence>
<xsd:element name="Product" maxOccurs="1" minOccurs="0" >
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="100" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:ComplexType>
現在、結果の XML は次のようになります。
<Product>This is the Product Translation for 001</Product>
結果の XML を次のようにしたい:
<Product code="001">This is the Product Translation for 001</Product>