Exodious
02-03-2004, 11:22 AM
<xsl:template match="myContainer">
<div id="{@id}">
<xsl:with-param name="collapsable" select="@collapsable"/>
<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>
<xsl:copy-of select="*"/>
</div>
</xsl:template>
<xsl:template match="fieldsContainer">
Hiya, I want to make the parameter "collapsable" available to my second template match of fieldsContainer, anyone know how to?
<div id="{@id}">
<xsl:with-param name="collapsable" select="@collapsable"/>
<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>
<xsl:copy-of select="*"/>
</div>
</xsl:template>
<xsl:template match="fieldsContainer">
Hiya, I want to make the parameter "collapsable" available to my second template match of fieldsContainer, anyone know how to?