Very simply, is it possible to type an XSLT template or function to return a named sequence constructor?
e.g. in FpML, there is the Product.model group, which simply contains two elements (ProductType and ProductId). I'd like to be able to create a typed template which returns that sequence, but have no idea what the "as" attribute should contain.
Update
I'll include the relevant bit of the FpML schema for convenience :
<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>
So, I'd like to be able to type a template as this xsd:group. Is this even possible?