|
@@ -25,13 +25,15 @@
|
|
|
select="$schema/xsd:element[@name=name(current())]/@type"/>
|
|
|
<xsl:variable name="rowtypename"
|
|
|
select="$schema/xsd:complexType[@name=$tabletypename]/xsd:sequence/xsd:element[@name='row']/@type"/>
|
|
|
- <xsl:variable name="tablename" select="$schema/xsd:complexType[@name=$rowtypename]/xsd:sequence/xsd:element[1]/@name"/>
|
|
|
-
|
|
|
+ <xsl:variable name="fieldname"
|
|
|
+ select="$schema/xsd:complexType[@name=$rowtypename]/xsd:sequence/xsd:element[@name='Product' or @name='Category' or @name='Group' or @name='Name'][1]/@name"/>
|
|
|
+
|
|
|
<table xmlns="http://www.w3.org/1999/xhtml"
|
|
|
class="pure-table pure-table-bordered pure-table-striped" style="text-align: left; width: 100%;">
|
|
|
|
|
|
<thead style="text-align: center">
|
|
|
<tr>
|
|
|
+ <th></th>
|
|
|
<xsl:for-each select="$schema/xsd:complexType[@name=$rowtypename]/xsd:sequence/xsd:element/@name">
|
|
|
<th><xsl:value-of select="."/></th>
|
|
|
</xsl:for-each>
|
|
@@ -43,6 +45,22 @@
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="position() != last()">
|
|
|
<tr>
|
|
|
+ <td>
|
|
|
+ <input type="checkbox">
|
|
|
+ <xsl:attribute name="name">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$fieldname = 'Name'">tag</xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="translate($fieldname,'PCG', 'pcg')"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:attribute>
|
|
|
+ <xsl:attribute name="value">
|
|
|
+ <xsl:value-of select="*[name() = $fieldname][1]"/>
|
|
|
+ </xsl:attribute>
|
|
|
+ <xsl:attribute name="form">filter</xsl:attribute>
|
|
|
+ </input>
|
|
|
+ </td>
|
|
|
<xsl:for-each select="*">
|
|
|
<td><xsl:value-of select="."/></td>
|
|
|
</xsl:for-each>
|