- Fix selection of ExtractBit field in flatten_ddtsource.xslt.
- Clean up comments in stylesheets.
This commit is contained in:
@@ -5,12 +5,10 @@
|
|||||||
Copyright 2026 Prime Controls. All rights reserved.
|
Copyright 2026 Prime Controls. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes"/>
|
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes"/>
|
||||||
<!-- <xsl:strip-space elements="*"/> -->
|
|
||||||
|
|
||||||
<xsl:template match="/VariablesExchangeFile">
|
<xsl:template match="/VariablesExchangeFile">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<xsl:apply-templates select="dataBlock"/>
|
<xsl:apply-templates select="dataBlock"/>
|
||||||
<!-- <xsl:apply-templates select="DDTSource"/> -->
|
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
@@ -27,7 +25,6 @@
|
|||||||
<bitrank/>
|
<bitrank/>
|
||||||
<save><xsl:value-of select="attribute/@Save"/></save>
|
<save><xsl:value-of select="attribute/@Save"/></save>
|
||||||
<comment><xsl:value-of select="../../comment"/>: <xsl:value-of select="comment"/></comment>
|
<comment><xsl:value-of select="../../comment"/>: <xsl:value-of select="comment"/></comment>
|
||||||
<!-- <id><xsl:value-of select="../../@DDTName"/>.<xsl:value-of select="@name"/></id> -->
|
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,9 @@
|
|||||||
Copyright 2026 Prime Controls. All rights reserved.
|
Copyright 2026 Prime Controls. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes"/>
|
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes"/>
|
||||||
<!-- <xsl:strip-space elements="*"/> -->
|
|
||||||
|
|
||||||
<xsl:template match="/VariablesExchangeFile">
|
<xsl:template match="/VariablesExchangeFile">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<!-- <xsl:apply-templates select="dataBlock"/> -->
|
|
||||||
<xsl:apply-templates select="DDTSource"/>
|
<xsl:apply-templates select="DDTSource"/>
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
@@ -24,10 +22,15 @@
|
|||||||
<parent><xsl:value-of select="../../@DDTName"/></parent>
|
<parent><xsl:value-of select="../../@DDTName"/></parent>
|
||||||
<type><xsl:value-of select="@typeName"/></type>
|
<type><xsl:value-of select="@typeName"/></type>
|
||||||
<address/>
|
<address/>
|
||||||
<bitrank><xsl:value-of select="attribute/@ExtractBit"/></bitrank>
|
<bitrank>
|
||||||
|
<xsl:for-each select="attribute">
|
||||||
|
<xsl:if test="@name='ExtractBit'">
|
||||||
|
<xsl:value-of select="@value"/>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:for-each>
|
||||||
|
</bitrank>
|
||||||
<save/>
|
<save/>
|
||||||
<comment><xsl:value-of select="../../comment"/>: <xsl:value-of select="comment"/></comment>
|
<comment><xsl:value-of select="../../comment"/>: <xsl:value-of select="comment"/></comment>
|
||||||
<!-- <id><xsl:value-of select="../../@DDTName"/>.<xsl:value-of select="@name"/></id> -->
|
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user