Skip to content

Commit

Permalink
don't pass the EBML ID length anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 28, 2024
1 parent e0d5910 commit ebd3b38
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions spectool/schema_2_kaxsemantic_cpp.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:choose>
<xsl:when test="not(contains(substring($plainPath,2),'\'))" />
<xsl:otherwise>
Expand Down Expand Up @@ -169,8 +168,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -193,8 +191,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -220,8 +217,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -245,8 +241,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -270,8 +265,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand All @@ -295,8 +289,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand Down Expand Up @@ -329,8 +322,7 @@ static constexpr const MatroskaProfile VERSION_WEBM_UP_TO_V4 = {true, false, 0,
<xsl:with-param name="node" select="."/>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="@id" /><xsl:text>, </xsl:text>
<xsl:value-of select="((string-length(@id) - 2) * 0.5)" />
<xsl:value-of select="@id" />
<xsl:text>, Kax</xsl:text>
<xsl:call-template name="output-master-parent">
<xsl:with-param name="node" select="."/>
Expand Down

0 comments on commit ebd3b38

Please sign in to comment.