Я использую XSLT 1.0 и пытаюсь проверить, правильно ли он сформирован.
мой XSLT, как показано ниже:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="*">
<div style="position: relative; top: 0px;">
<xsl:if test="//PQMessage[.!='']">
<div>
<img align="absmiddle" src="contactImages/messageBox/exclamationICON.gif" />
<b>
<xsl:value-of select="//PQMessage" />
</b>
</div>
</xsl:if>
<div style="position: relative; left: 0px; top: 10px; height: 220px; color2: #590a18; background-image: url( contactImages/claimLineInfobox.gif );background-repeat: no-repeat;">
<img src="contactImages/divisionsCenter.gif" style="position: relative; left: 14px; top: 4px; " alt="dividerbar" />
<xsl:apply-templates select="//divisions" />
</div>
<div id="BrokerListResults" style="position: relative; left: 0px; top: 20px; width: 960px; height: 400px; color2: #590a18; background-image: url( contactImages/listofDivisionBrokersbox.gif );background-repeat: no-repeat;" />
</div>
</xsl:template>
<xsl:template match="divisions">
<xsl:variable name="userProvidedEffDate" select="number(concat(substring(//userProvidedEffDate, 7, 4), substring(//userProvidedEffDate, 1, 2), substring(//userProvidedEffDate, 4, 2)))" />
<xsl:copy>
<xsl:apply-templates select="division" />
</xsl:copy>
<div id="divisionsListAA" style="position:relative; top:0px; left:10px; width:907px;">
<table id="DivisionTableHead" class="PQTable" border="0" cellpadding="0px" cellspacing="0px" style="position:relative; width:890px; font-size:11pt;">
<tr style=" position:relative; background-color:#FAF6F2; font-weight:bold;">
<td width="50px" />
<td style=" width:162px; ">Division #</td>
<td style=" width:162px; ">Effective Date</td>
<td style=" width:162px; ">Expiration Date</td>
<td style=" width:112px; ">Business Unit</td>
<td style=" width:81px; ">Program</td>
<td style=" width:81px; ">Carrier</td>
<td style=" width:81px; ">Region</td>
</tr>
</table>
<table id="DivisionTable" class="PQTable stripeRow" border="0" cellpadding="0px" cellspacing="0px" style="position:relative; width:890px; font-size:11pt;">
<xsl:apply-templates select="division" />
</table>
</div>
</xsl:template>
<xsl:template match="division">
<xsl:if test="([number(concat(substring(GroupEffDt, 7, 4), substring(GroupEffDt, 1, 2), substring(GroupEffDt, 4, 2))) <= $userProvidedEffDate and number(concat(substring(GroupExpDt, 7, 4), substring(GroupExpDt, 1, 2), substring(GroupExpDt, 4, 2))) >= $userProvidedEffDate])">
<tr>
<td width="50px">
<div onclick="resetAmisysDivisionDisplay(this);">
<input type="checkbox" id="checkbox" style="cursor: pointer;" />
<div id="DivisionDetailArea" style="display: none;" />
</div>
</td>
<td width="162px">
<xsl:value-of select="GroupNumber" />
</td>
<td width="162px">
<xsl:value-of select="GroupEffDt" />
</td>
<td width="162px">
<xsl:value-of select="GroupExpDt" />
</td>
<td width="112px">
<xsl:value-of select="substring(groupLOB,1,2)" />
</td>
<td width="81px">
<xsl:value-of select="substring(groupLOB,4,2)" />
</td>
<td width="81px">
<xsl:value-of select="substring(groupLOB,7,2)" />
</td>
<td width="81px">
<xsl:value-of select="substring(groupLOB,10,2)" />
</td>
</tr>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Когда я пытаюсь скомпилировать вышеуказанный xsl онлайн (http://www.utilities -online.info / xsltransformation / #. XPEFsogza71 ), я получаю следующую ошибку:
Internal Server Error: <html><head><title>Error</title></head><body>Internal Server Error</body></html>
Похоже, файл XSL сформирован неправильно. Я не могу понять актуальную проблему.
В чем здесь может быть ошибка? Не могли бы вы помочь мне?