簡単に言えば、XSLT テンプレートまたは関数を入力して、名前付きシーケンス コンストラクターを返すことは可能ですか?
たとえばFpMLには、2 つの要素 (ProductType と ProductId) だけを含む Product.model グループがあります。そのシーケンスを返す型付きテンプレートを作成できるようにしたいのですが、「as」属性に何を含めるべきかわかりません。
アップデート
便宜上、FpML スキーマの関連部分を含めます。
<xsd:group name="Product.model">
<xsd:sequence>
<xsd:element name="productType" type="ProductType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">A classification of the type of product. FpML defines a simple product categorization using a coding scheme.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="productId" type="ProductId" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">A product reference identifier allocated by a party. FpML does not define the domain values associated with this element. Note that the domain values for this element are not strictly an enumerated list.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
したがって、この xsd:group としてテンプレートを入力できるようにしたいと考えています。これは可能ですか?