Skip to content

Implicit legacy component types cannot be generated #1

@kleihan

Description

@kleihan

In the unified repository, Block, BlockRepeating, and XMLDataBlock are explicitly identified with the component attribute "type". Orchestra does not have such an attribute, i.e. the generator recognizes them implicitly as follows:

<xsl:choose>
	<!-- First test checks all fields of type XMLData for a field whose id is used as a field reference in the current component or group -->
	<!-- Second test identifies repeating groups, otherwise it can only be a simple component. -->
	<xsl:when test="/fixr:repository/fixr:fields/fixr:field[@type='XMLData' and @id = current()/fixr:fieldRef/@id]">XMLDataBlock</xsl:when>
	<xsl:when test="local-name(current()) = 'group' or local-name(current()) = 'groupRef'">BlockRepeating</xsl:when>
	<xsl:otherwise>Block</xsl:otherwise>
</xsl:choose>

The two type ImplicitBlock and ImplicitBlockRepeating are currently not identified. However, the legacy generator does provide them in the FIXML schema files of every EP as attribute ComponentType of element complexType.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions