Reorganize schema file and assets folders.

This commit is contained in:
2026-11-06 13:16:43 -06:00
parent 4418633724
commit e5c7101627
30 changed files with 33 additions and 62 deletions

View File

@@ -0,0 +1,41 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Flatten a ControlExpert XSY file so that it can be read by pandas.
Copyright 2026 Prime Controls. All rights reserved.
-->
<xsl:output encoding="utf8" method="xml" omit-xml-declaration="no" indent="yes" />
<xsl:template match="/VariablesExchangeFile">
<xsl:copy>
<xsl:apply-templates select="dataBlock" />
</xsl:copy>
</xsl:template>
<xsl:template match="dataBlock">
<xsl:apply-templates select="variables" />
</xsl:template>
<xsl:template match="variables">
<xsl:copy>
<tagname>
<xsl:value-of select="@name" />
</tagname>
<type>
<xsl:value-of select="@typeName" />
</type>
<address>
<xsl:value-of select="@topologicalAddress" />
</address>
<comment>
<xsl:value-of select="comment" />
</comment>
<parent />
<bitrank />
<save>
<xsl:value-of select="attribute/@Save" />
</save>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>