Dyanmicaly Determine Mode
"Scott" <[email protected]> 24 Jan 2007 13:29:53 -0800
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Dynamically Determine Mode
Is there a way in which I could specify which mode to use by passing it
in through using a node in the xml
My example is
<xsl:apply-templates select="List/StoreCoupons" mode="<xsl:value-of
select="List/Logos/mode"/>"> The two option would multicolumn and
normal
<xsl:with-param name="numCols" select="$numCols"/>
<xsl:with-param name="nodes" select="List/StoreCoupons"/>
</xsl:apply-templates>
<xsl:template match="*" mode="multiColumn"></xsl:template>
<xsl:template match="*" mode="normal"> </xsl:template>