1
0
mirror of https://github.com/zerobig/vscode-1c-metadata-viewer.git synced 2024-11-24 08:42:18 +02:00
vscode-1c-metadata-viewer/xslt/label-field.xsl
2024-03-12 10:39:25 +03:00

29 lines
948 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="3.0"
xpath-default-namespace="http://v8.1c.ru/8.3/xcf/logform"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:v8="http://v8.1c.ru/8.1/data/core"
xmlns:xr="http://v8.1c.ru/8.3/xcf/readable"
>
<xsl:template match="LabelField">
<th>
<xsl:if test="not(Width)">
<xsl:attribute name="style">
<xsl:value-of select="'width: 100%'" />
</xsl:attribute>
</xsl:if>
<div>
<xsl:if test="Width">
<xsl:attribute name="style">
<xsl:value-of select="concat('width: ', number(Width) * 10, 'px;')" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="DataPath" />
</div>
</th>
</xsl:template>
</xsl:stylesheet>