Exodious
02-02-2004, 04:55 PM
Sorry if this may seem a bit simple, but just beginning xml
<myContainer collapsable="true" title="Site ID" id="siteID">
<table cellpadding="1" cellspacing="0" BGCOLOR="lightblue" WIDTH="120" STYLE="font-family: arial,verdana,garamond;font-size:9pt; border: thin solid darkblue;">
<tr>
<td>Site ID</td>
</tr>
</table>
</myContainer>
The above code is the result of a transformed xml file, I now want to do another transformation to the above code, but the content within the container is not displayed, or I'm just not displaying it using the xsl code:
<xsl:template match="myContainer">
<div id="{@id}">
<xsl:attribute name="onmouseover">
<xsl:choose>
<xsl:when test="@collapsable='true'">uncollapse('<xsl:value-of select="@id"/>');</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="onmouseout">
<xsl:choose>
<xsl:when test="@collapsable='true'">collapse('<xsl:value-of select="@id"/>');</xsl:when>
</xsl:choose>
</xsl:attribute>
</div>
</xsl:template>
The transformed xml file contains <div id="siteID" onmouseover="uncollapse('siteid')" onmouseout="collapse('siteid');"/> as there is no actual content to the div.
I need the table to be displayed inside the div
any help appreciated.
<myContainer collapsable="true" title="Site ID" id="siteID">
<table cellpadding="1" cellspacing="0" BGCOLOR="lightblue" WIDTH="120" STYLE="font-family: arial,verdana,garamond;font-size:9pt; border: thin solid darkblue;">
<tr>
<td>Site ID</td>
</tr>
</table>
</myContainer>
The above code is the result of a transformed xml file, I now want to do another transformation to the above code, but the content within the container is not displayed, or I'm just not displaying it using the xsl code:
<xsl:template match="myContainer">
<div id="{@id}">
<xsl:attribute name="onmouseover">
<xsl:choose>
<xsl:when test="@collapsable='true'">uncollapse('<xsl:value-of select="@id"/>');</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="onmouseout">
<xsl:choose>
<xsl:when test="@collapsable='true'">collapse('<xsl:value-of select="@id"/>');</xsl:when>
</xsl:choose>
</xsl:attribute>
</div>
</xsl:template>
The transformed xml file contains <div id="siteID" onmouseover="uncollapse('siteid')" onmouseout="collapse('siteid');"/> as there is no actual content to the div.
I need the table to be displayed inside the div
any help appreciated.