diff options
author | Sunil Shetye | 2025-07-08 15:45:26 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-07-08 15:45:26 +0530 |
commit | 76677d1cdf3ec9a90a3c17ad8b813a2c44a64160 (patch) | |
tree | 8814f810e4ce8c1da749758c1a17501003ff2154 | |
parent | 32231267abe81714ce2cb401a9e44ac06b30bfd4 (diff) | |
download | Common-Interface-Project-76677d1cdf3ec9a90a3c17ad8b813a2c44a64160.tar.gz Common-Interface-Project-76677d1cdf3ec9a90a3c17ad8b813a2c44a64160.tar.bz2 Common-Interface-Project-76677d1cdf3ec9a90a3c17ad8b813a2c44a64160.zip |
reformat
-rw-r--r-- | blocks/xcos2xml/head.xsl | 76 |
1 files changed, 39 insertions, 37 deletions
diff --git a/blocks/xcos2xml/head.xsl b/blocks/xcos2xml/head.xsl index 22fb992c..6b0c28a5 100644 --- a/blocks/xcos2xml/head.xsl +++ b/blocks/xcos2xml/head.xsl @@ -279,59 +279,61 @@ </xsl:template> <xsl:template name="generate-block"> + <xsl:param name="style"/> + <xsl:param name="id"/> <xsl:param name="explicitInputPorts"/> <xsl:param name="implicitInputPorts"/> <xsl:param name="explicitOutputPorts"/> <xsl:param name="implicitOutputPorts"/> <xsl:param name="controlPorts"/> <xsl:param name="commandPorts"/> - <xsl:param name="blockId"/> - <xsl:param name="style"/> <xsl:param name="simulationFunction"/> <xsl:param name="display_parameter"/> <xsl:param name="data"/> <xsl:element name="mxCell"> - <xsl:attribute name="style"><xsl:value-of select="$style"/></xsl:attribute> - <xsl:attribute name="id"><xsl:value-of select="$blockId"/></xsl:attribute> - <xsl:attribute name="vertex">1</xsl:attribute> - <xsl:attribute name="connectable">0</xsl:attribute> - <xsl:attribute name="CellType">Component</xsl:attribute> - <xsl:attribute name="blockprefix">XCOS</xsl:attribute> - <xsl:attribute name="explicitInputPorts"><xsl:value-of select="$explicitInputPorts"/></xsl:attribute> - <xsl:attribute name="implicitInputPorts"><xsl:value-of select="$implicitInputPorts"/></xsl:attribute> - <xsl:attribute name="explicitOutputPorts"><xsl:value-of select="$explicitOutputPorts"/></xsl:attribute> - <xsl:attribute name="implicitOutputPorts"><xsl:value-of select="$implicitOutputPorts"/></xsl:attribute> - <xsl:attribute name="controlPorts"><xsl:value-of select="$controlPorts"/></xsl:attribute> - <xsl:attribute name="commandPorts"><xsl:value-of select="$commandPorts"/></xsl:attribute> - <xsl:attribute name="simulationFunction"><xsl:value-of select="$simulationFunction"/></xsl:attribute> - <xsl:attribute name="sourceVertex">0</xsl:attribute> - <xsl:attribute name="targetVertex">0</xsl:attribute> - <xsl:attribute name="tarx">0</xsl:attribute> - <xsl:attribute name="tary">0</xsl:attribute> + <xsl:attribute name="style"><xsl:value-of select="$style"/></xsl:attribute> + <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> + <xsl:attribute name="vertex">1</xsl:attribute> + <xsl:attribute name="connectable">0</xsl:attribute> + <xsl:attribute name="CellType">Component</xsl:attribute> + <xsl:attribute name="blockprefix">XCOS</xsl:attribute> + <xsl:attribute name="explicitInputPorts"><xsl:value-of select="$explicitInputPorts"/></xsl:attribute> + <xsl:attribute name="implicitInputPorts"><xsl:value-of select="$implicitInputPorts"/></xsl:attribute> + <xsl:attribute name="explicitOutputPorts"><xsl:value-of select="$explicitOutputPorts"/></xsl:attribute> + <xsl:attribute name="implicitOutputPorts"><xsl:value-of select="$implicitOutputPorts"/></xsl:attribute> + <xsl:attribute name="controlPorts"><xsl:value-of select="$controlPorts"/></xsl:attribute> + <xsl:attribute name="commandPorts"><xsl:value-of select="$commandPorts"/></xsl:attribute> + <xsl:attribute name="simulationFunction"><xsl:value-of select="$simulationFunction"/></xsl:attribute> + <xsl:attribute name="sourceVertex">0</xsl:attribute> + <xsl:attribute name="targetVertex">0</xsl:attribute> + <xsl:attribute name="tarx">0</xsl:attribute> + <xsl:attribute name="tary">0</xsl:attribute> - <xsl:apply-templates select="mxGeometry"/> - <Object as="displayProperties"> + <xsl:apply-templates select="mxGeometry"/> + + <Object as="displayProperties"> <xsl:attribute name="display_parameter"> - <xsl:value-of select="$display_parameter"/> + <xsl:value-of select="$display_parameter"/> </xsl:attribute> - </Object> - <Object as="parameter_values"> - <xsl:for-each select="$data"> - <xsl:attribute name="{concat('p', format-number(position() - 1, '000'), '_value')}"> - <xsl:value-of select="@value" /> - </xsl:attribute> - </xsl:for-each> - </Object> + </Object> + + <Object as="parameter_values"> + <xsl:for-each select="$data"> + <xsl:attribute name="{concat('p', format-number(position() - 1, '000'), '_value')}"> + <xsl:value-of select="@value" /> + </xsl:attribute> + </xsl:for-each> + </Object> </xsl:element> <xsl:call-template name="port"> - <xsl:with-param name="id" select="$blockId"/> - <xsl:with-param name="explicitInputPorts" select="$explicitInputPorts"/> - <xsl:with-param name="explicitOutputPorts" select="$explicitOutputPorts"/> - <xsl:with-param name="implicitInputPorts" select="$implicitInputPorts"/> - <xsl:with-param name="implicitOutputPorts" select="$implicitOutputPorts"/> - <xsl:with-param name="controlPorts" select="$controlPorts"/> - <xsl:with-param name="commandPorts" select="$commandPorts"/> + <xsl:with-param name="id" select="$id"/> + <xsl:with-param name="explicitInputPorts" select="$explicitInputPorts"/> + <xsl:with-param name="explicitOutputPorts" select="$explicitOutputPorts"/> + <xsl:with-param name="implicitInputPorts" select="$implicitInputPorts"/> + <xsl:with-param name="implicitOutputPorts" select="$implicitOutputPorts"/> + <xsl:with-param name="controlPorts" select="$controlPorts"/> + <xsl:with-param name="commandPorts" select="$commandPorts"/> </xsl:call-template> </xsl:template> |