[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using mode to override templates
>> Obviously, apply-templates with a mode will only use templates with a >> matching mode (and not fire all the templates that are common to both >> and therefore would not have a mode) - how do I overcome this? > > Andrew, > how about just making the non print templates and the common code explicit? > IE: Arg, correction, the otherwise isn't needed; that code should always be fired... <xsl:choose> <xsl:when test="$print = 'yes'"> <xsl:apply-templates mode="print"/> </xsl:when> <xsl:when test="$print != 'yes'"> <xsl:apply-templates mode="not_print"/> </xsl:when> </xsl:choose> <xsl:apply-templates/> <!-- common templates --> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|