This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Using mode to override templates


You will have to be patient, it's not your birthday yet.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of Marrow
> Sent: 03 July 2002 15:33
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] Using mode to override 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@ntlworld.com>
> To: xsl-list@lists.mulberrytech.com <xsl-list@lists.mulberrytech.com>
> Date: 03 July 2002 15:20
> Subject: RE: [xsl] 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@ntlworld.com
> >work: Michael.Kay@softwareag.com
> >
> >
> > XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]