1
0
mirror of https://github.com/zerobig/vscode-1c-metadata-viewer.git synced 2024-11-28 08:58:41 +02:00
vscode-1c-metadata-viewer/xslt/label-field.xsl

29 lines
948 B
XML
Raw Normal View History

2024-03-12 09:39:25 +02:00
<?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>