|
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:t="t"
|
|
xmlns="d"
|
|
xpath-default-namespace="d">
|
|
|
|
<xsl:param name="extract-folder" as="xs:string?"/>
|
|
<xsl:param name="model-scope" as="xs:string?"/>
|
|
<xsl:param name="program-tree-folder" as="xs:string?"/>
|
|
<xsl:param name="derived-data-folder" as="xs:string?"/>
|
|
|
|
<xsl:variable name="code" as="element()">
|
|
<code>
|
|
<action>
|
|
<argument number="1">
|
|
<method/>
|
|
</argument>
|
|
</action>
|
|
<call/>
|
|
<open-window/>
|
|
</code>
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name="data-view" as="element()">
|
|
<data-view/>
|
|
</xsl:variable>
|
|
|
|
<xsl:template match="/*">
|
|
<xsl:apply-templates mode="t:generate-statements" select="$code/*"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template mode="t:generate-expression" match="*">
|
|
<expresion/>
|
|
</xsl:template>
|
|
|
|
<xsl:template mode="t:generate-statements" match="action">
|
|
<xsl:apply-templates mode="t:generate-expression"
|
|
select="argument[@number = 1]/method"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template mode="t:generate-expression"
|
|
name="t:control-property"
|
|
match="property">
|
|
<xsl:param name="member-type" as="element()?">
|
|
<type>
|
|
<xsl:sequence select="t:get-expression-program-type(.)"/>
|
|
</type>
|
|
</xsl:param>
|
|
|
|
<invoke name="get"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template mode="t:generate-expression" match="method">
|
|
<xsl:call-template name="t:control-property"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="t:generate-entity">
|
|
<expression/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="t:generate-group">
|
|
<field/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="t:generate-assign">
|
|
<statement/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="t:generate-group-assign">
|
|
<scope/>
|
|
</xsl:template>
|
|
|
|
<xsl:function name="t:get-type-of" as="element()">
|
|
<type/>
|
|
</xsl:function>
|
|
|
|
<xsl:variable name="t:ui-object" as="element()?"/>
|
|
<xsl:variable name="t:int" as="element()?"/>
|
|
<xsl:variable name="t:zero" as="element()?"/>
|
|
<xsl:variable name="t:Object" as="element()?"/>
|
|
<xsl:variable name="t:char" as="element()?"/>
|
|
<xsl:variable name="t:Character" as="element()?"/>
|
|
<xsl:variable name="t:boolean" as="element()?"/>
|
|
<xsl:variable name="t:Boolean" as="element()?"/>
|
|
<xsl:variable name="t:byte" as="element()?"/>
|
|
<xsl:variable name="t:Byte" as="element()?"/>
|
|
<xsl:variable name="t:short" as="element()?"/>
|
|
<xsl:variable name="t:Short" as="element()?"/>
|
|
<xsl:variable name="t:integer" as="element()?"/>
|
|
<xsl:variable name="t:Integer" as="element()?"/>
|
|
<xsl:variable name="t:long" as="element()?"/>
|
|
<xsl:variable name="t:Long" as="element()?"/>
|
|
<xsl:variable name="t:float" as="element()?"/>
|
|
<xsl:variable name="t:Float" as="element()?"/>
|
|
<xsl:variable name="t:double" as="element()?"/>
|
|
<xsl:variable name="t:Double" as="element()?"/>
|
|
<xsl:variable name="t:String" as="element()?"/>
|
|
<xsl:variable name="t:one" as="element()?"/>
|
|
<xsl:variable name="t:two" as="element()?"/>
|
|
|
|
<xsl:template mode="t:simplify-expression" match="*">
|
|
<xsl:sequence select="."/>
|
|
</xsl:template>
|
|
|
|
<xsl:variable name="t:extraction" as="document-node()?"/>
|
|
<xsl:variable name="t:tnames" as="xs:string*"/>
|
|
<xsl:variable name="t:extract-uri" as="xs:anyURI?"/>
|
|
<xsl:variable name="t:extract-root" as="xs:anyURI?"/>
|
|
<xsl:variable name="t:program-tree-folder" as="xs:anyURI?"/>
|
|
<xsl:variable name="t:derived-data-folder" as="xs:anyURI?"/>
|
|
|
|
<xsl:function name="t:get-extraction-element" as="element()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-element" as="element()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-extraction-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-document" as="document-node()">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-extraction-index" as="element()">
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-index" as="element()">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-extraction-index" as="element()*">
|
|
<xsl:param name="type" as="xs:string"/>
|
|
<xsl:param name="ids" as="xs:string*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-index" as="element()*">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
<xsl:param name="ids" as="xs:string*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-extraction-index2" as="element()*">
|
|
<xsl:param name="type" as="xs:string"/>
|
|
<xsl:param name="ids" as="xs:string*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-model-extraction-index2" as="element()*">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
<xsl:param name="ids" as="xs:string*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-document" as="document-node()">
|
|
<xsl:param name="path" as="xs:string?"/>
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-document" as="document-node()">
|
|
<xsl:param name="path" as="xs:string"/>
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-entities-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-entity-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-controls-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:find-entity-item" as="element()?">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:find-entity" as="element()?">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-entity-by-attribute-id" as="document-node()">
|
|
<xsl:param name="attribute-id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-entity-attribute-by-id" as="element()">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-attribute-by-id" as="element()">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-attribute-with-alias" as="element()">
|
|
<xsl:param name="entity-id" as="xs:string+"/>
|
|
<xsl:param name="attribute-id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-data-views-document" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-data-view-document" as="document-node()">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-document" as="document-node()">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-data-view" as="document-node()">
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-dvset" as="document-node()">
|
|
<xsl:param name="code" as="element()"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-dvset-document" as="document-node()">
|
|
<xsl:param name="id" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-with-subtypes" as="element()+">
|
|
<xsl:param name="enty" as="element()"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-with-base" as="element()*">
|
|
<xsl:param name="enty" as="element()?"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:filter-elements" as="element()*">
|
|
<xsl:param name="elements" as="element()*"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-children" as="element()*">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-required-children" as="element()+">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-required-child" as="element()">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-child" as="element()?">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-parent" as="element()">
|
|
<xsl:param name="element" as="element()"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-parent" as="element()*">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:related" as="element()*">
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:model-related" as="element()*">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="element" as="element()"/>
|
|
<xsl:param name="rel" as="xs:string"/>
|
|
<xsl:param name="type" as="xs:string"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:deref" as="element()">
|
|
<xsl:param name="element" as="element()"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:model-deref" as="element()">
|
|
<xsl:param name="model-id" as="xs:string"/>
|
|
<xsl:param name="element" as="element()"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-subtypes" as="element()+">
|
|
<xsl:param name="enty" as="element()"/>
|
|
<xsl:param name="collected" as="element()*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-subtypes" as="element()*">
|
|
<xsl:param name="enties" as="element()*"/>
|
|
<xsl:param name="index" as="xs:integer"/>
|
|
<xsl:param name="collected" as="element()*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-with-base" as="element()*">
|
|
<xsl:param name="enty" as="element()?"/>
|
|
<xsl:param name="collected" as="element()*"/>
|
|
|
|
<xsl:sequence select="error()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-enty-attributes" as="item()*">
|
|
<xsl:param name="enty" as="element()"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-control-by-name" as="element()*">
|
|
<xsl:param name="code" as="element()"/>
|
|
<xsl:param name="name" as="xs:string"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-neg-expression" as="element()">
|
|
<xsl:param name="expression" as="element()"/>
|
|
|
|
<neg/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-expression-program-type" as="item()+">
|
|
<xsl:param name="expression" as="element()"/>
|
|
|
|
<xsl:sequence select="'1'"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-type-name" as="xs:string?">
|
|
<xsl:param name="closure" as="item()+"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-type-length" as="xs:integer?">
|
|
<xsl:param name="closure" as="item()+"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-type-precision" as="xs:integer?">
|
|
<xsl:param name="closure" as="item()+"/>
|
|
</xsl:function>
|
|
|
|
<xsl:function name="t:get-program-type-element" as="element()">
|
|
<xsl:param name="type" as="item()+"/>
|
|
|
|
<type/>
|
|
</xsl:function>
|
|
|
|
</xsl:stylesheet>
|