Skip to content

Instantly share code, notes, and snippets.

@barkady
Created July 11, 2014 14:44
Show Gist options
  • Save barkady/87bc905ef99dbccf6515 to your computer and use it in GitHub Desktop.
Save barkady/87bc905ef99dbccf6515 to your computer and use it in GitHub Desktop.
<xsl:for-each select="$valArray">
<xsl:if test="string-length(normalize-space(text())) = 0">
<ОШИБКА>
<НомерВпротоколе/>
<КодОшибки>30</КодОшибки>
<ТипОшибки>Критичная</ТипОшибки>
<xsl:variable name="temppos" select="position()"></xsl:variable>
<ТекстОшибки><xsl:value-of select="$resArray[$temppos]"></xsl:value-of></ТекстОшибки>
<МестоВозникновения>
<xsl:copy-of select="."/>
</МестоВозникновения>
</ОШИБКА>
</xsl:if>
</xsl:for-each>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment