Skip to content

Commit 082a07f

Browse files
author
Vasyl Vavrychuk
committed
some xsl fixes
1 parent b53025d commit 082a07f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

web/widget_view_visualizer.xsl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
<input type="checkbox">
1515
<xsl:copy-of select="@elementId"/>
1616
<xsl:call-template name="style"/>
17-
<xsl:value-of select="@text"/>
1817
</input>
18+
<span>
19+
<xsl:value-of select="@text"/>
20+
</span>
1921
</xsl:template>
2022
<xsl:template match="QLabel">
2123
<span>
@@ -40,7 +42,9 @@
4042
<input type="submit">
4143
<xsl:copy-of select="@elementId"/>
4244
<xsl:call-template name="style"/>
43-
<xsl:attribute name="value" select="@text"/>
45+
<xsl:attribute name="value">
46+
<xsl:value-of select="@text"/>
47+
</xsl:attribute>
4448
</input>
4549
</xsl:template>
4650
<xsl:template match="QScrollArea">
@@ -64,13 +68,13 @@
6468
<xsl:template name="style">
6569
<xsl:attribute name="style">
6670
<xsl:if test="@width">
67-
width: <xsl:value-of select="@width"/>;
71+
<xsl:text>width: </xsl:text><xsl:value-of select="@width"/><xsl:text>;</xsl:text>
6872
</xsl:if>
6973
<xsl:if test="@height">
70-
height: <xsl:value-of select="@height"/>;
74+
<xsl:text>height: </xsl:text><xsl:value-of select="@height"/><xsl:text>;</xsl:text>
7175
</xsl:if>
7276
<xsl:if test="@visible = 'false'">
73-
visibility: hidden;
77+
<xsl:text>visibility: hidden;</xsl:text>
7478
</xsl:if>
7579
</xsl:attribute>
7680
</xsl:template>

0 commit comments

Comments
 (0)