Matthias: XSL und &

Beitrag lesen

Hallo,

die unrelevanten Teile habe ich mal weggelassen.

Weiter unten in dem File versuche ich nun das gleiche: Ein & in den HTML-Code ausgeben zu lassen. Allerdings erscheint das & oder & auch als & im HTML-Code.

Der Teil des XSLs ist/wäre aber nicht unrelevant!

Grüße
Thomas

<xsl:template name="winsock_section">
    <xsl:variable name="md5">
 <xsl:value-of select="analysis/processes/process/@md5" />
    </xsl:variable>
    <table width="100%">
      <tr>
        <td class="bodyheader" colspan="2" style="padding: 3px; background-color: #666666;">
          <img src="http://research.sunbelt-software.com/tmp/icon.gif" width="20" height="16" border="0" style="vertical-align: middle;"/>
          Network Activity
        </td>
      </tr>
      <tr>
        <td class="bodycopy1">Connections</td>
        <td class="bodycopy2">
          <xsl:for-each select="//winsock_section">
            <xsl:variable name="number" select="count(../preceding-sibling::*)+1"/>

<!-- Get Host By Name -->
            <xsl:if test="count(connections_unknown/connection/gethostbyname) != 0">
              <table id="details" width="100%">
                <tr>
                  <td  class="bodycopy1" colspan="2">DNS Lookup</td>
                </tr>
                <tr>
                  <td  class="bodycopy1" width="250">
                    <b>Host Name</b>
                  </td>
                  <td  class="bodycopy1" width="250">
                    <b>IP Address</b>
                  </td>
                </tr>
                <xsl:for-each select="connections_unknown/connection/gethostbyname">
                  <tr>
                    <td  class="bodycopy2">
                      <a><xsl:attribute name="href">?page=map&#38;ip=<xsl:value-of select="@resulting_addr" />&#38;md5=<xsl:value-of select="$md5" /></xsl:attribute><xsl:attribute name="target">_top</xsl:attribute><xsl:value-of select="@resulting_addr"/></a>
                    </td>
                  </tr>
                </xsl:for-each>
              </table>
            </xsl:if>

wie gesagt, das ganze wird innerhalb des <body> teiles ausgegeben...