Статус:
Offline
Реєстрація: 15.11.2006
Повідом.: 807
Реєстрація: 15.11.2006
Повідом.: 807
- 🟠 23:34 Загроза ударних БпЛАЗагроза БпЛА типу «Шахед»#м_Харків_та_Харківська_територіальна_громада
- #41
оно?
Код:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:template match="/ArrayOfArrayOfString">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th style="background-color: #e0e0c0">Column 1</th>
<th style="background-color: #e0e0c0">Column 2</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="ArrayOfString[1]/string">
<xsl:variable name="pos" select="position()" />
<tr>
<td><xsl:value-of select="." /></td>
<td><xsl:value-of select="../../ArrayOfString[2]/string[$pos]" /></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>