|
|
@@ -61,6 +61,14 @@
|
|
|
</xsl:for-each>
|
|
|
</row>
|
|
|
</xsl:if>
|
|
|
+ <xsl:if test="position() = 1">
|
|
|
+ <fields>
|
|
|
+ <xsl:for-each select="tokenize(normalize-space(.),' ')">
|
|
|
+ <el><xsl:attribute name="pos" select="position()"/>
|
|
|
+ <xsl:value-of select="."/></el>
|
|
|
+ </xsl:for-each>
|
|
|
+ </fields>
|
|
|
+ </xsl:if>
|
|
|
</xsl:for-each>
|
|
|
</df_output>
|
|
|
</xsl:variable>
|
|
|
@@ -68,14 +76,14 @@
|
|
|
<raport:df>
|
|
|
<xsl:for-each select="$df_output//row">
|
|
|
<disk>
|
|
|
- <xsl:attribute name="Mountpoint" select="el[@pos='1']"/>
|
|
|
- <xsl:element name="Capacity">
|
|
|
+ <xsl:attribute name="{$df_output//fields/el[@pos='1']}" select="el[@pos='1']"/>
|
|
|
+ <xsl:element name="{$df_output//fields/el[@pos='5']}">
|
|
|
<xsl:if test="number(replace(el[@pos='5'],'%','')) > number($raport:df_correct/disk/@raport:max_capacity)">
|
|
|
<xsl:attribute name="error" select="'Zbyt duże wykorzystanie'"/>
|
|
|
</xsl:if>
|
|
|
<xsl:value-of select="el[@pos='5']"/>
|
|
|
</xsl:element>
|
|
|
- <xsl:element name="Available">
|
|
|
+ <xsl:element name="{$df_output//fields/el[@pos='4']}">
|
|
|
<xsl:if test="number(el[@pos='4']) < number($raport:df_correct/disk/@raport:min_free)">
|
|
|
<xsl:attribute name="error" select="'Zbyt mało wolnego miejsca'"/>
|
|
|
</xsl:if>
|