Does anyone know how I can get the horizontal template boxes to line up? The Network Interface and the IP Address boxes are within a different node so they show up below the Exchange Servers, Replication Required, and Setup Required boxes. (See picture for details). My guess it has something to do with the way I’m using the for-each select parameter.
Below is my XSL StyleSheet. (I’m using XML version 1.0 for my XML document).
Below is my XSL StyleSheet. (I’m using XML version 1.0 for my XML document).
Code:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<body bgcolor="Silver">
</body>
<h2>Exchange Server Information</h2>
<table border="3">
<tr bgcolor="yellow">
<th>Exchange Servers</th>
<th>Replication Required</th>
<th>Setup Required</th>
<th>Network Interface</th>
<th>IP Address</th>
</tr>
<xsl:for-each select="DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster[@Fqdn='exch-dc-08.contoso.microsoft.com']|
DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster[@Fqdn='tk5ucdfpp01.contoso.microsoft.com']|
DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster[@Fqdn='b43ucdfms01.contoso.microsoft.com']|
DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster/Machine/NetInterface[@IPAddress='157.54.98.16']|
DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster/Machine/NetInterface[@IPAddress='157.54.61.141']|
DocItemSet/DocItem/Data/AnchoredXml/Dictionary/Item/Value/Topology/Clusters/Cluster/Machine/NetInterface[@IPAddress='10.31.127.204']">
<tr>
<td><xsl:value-of select="@Fqdn"/></td>
<td><xsl:value-of select="@RequiresReplication"/></td>
<td><xsl:value-of select="@RequiresSetup"/></td>
<td><xsl:value-of select="@InterfaceSide"/></td>
<td><xsl:value-of select="@IPAddress"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Comment