[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Using mode to override templates

Subject: Re: Using mode to override templates
From: "Marrow" <marrow@xxxxxxxxxxxxxx>
Date: Wed, 3 Jul 2002 15:33:21 +0100
birthday present templates
Hi Michael,

>> I've occasionally run into cases where I wished it was
>> possible to specify a list of modes on a template, something
>> like mode="print | display".
>
>There may be a birthday present for you soon...

How would "no mode" be handled?

That's our birthday present sorted - any chance of a Christmas present too :)
...

A wild-card for mode, e.g.
  <xsl:template ... mode="*">

AVTs on caller mode, e.g.
  <xsl:apply-templates ... mode="{expr}"/>

Ability to get at current mode (so it can be persisted down), e.g.
  <xsl:template ... mode="*">
    ...
    <xsl:apply-templates ... mode="{current-mode()}"/>

This would give the ability to funnel into certain templates and then apply out
again in the caller's orginal mode - would save repeating common code.

Cheers
Marrow


-----Original Message-----
From: Michael Kay <michael.h.kay@xxxxxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Date: 03 July 2002 15:20
Subject: RE:  Using mode to override templates


>> I've occasionally run into cases where I wished it was
>> possible to specify a list of modes on a template, something
>> like mode="print | display".
>
>There may be a birthday present for you soon...
>
>Michael Kay
>Software AG
>home: Michael.H.Kay@xxxxxxxxxxxx
>work: Michael.Kay@xxxxxxxxxxxxxx
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.