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

Re: Variables and the mode attribute in apply-template

Subject: Re: Variables and the mode attribute in apply-templates
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 18 Nov 2005 19:59:56 +1100
mode apply template
Thanks, Brian,

Friday evening....


--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.


On 11/18/05, bryan rasmussen <rasmussen.bryan@xxxxxxxxx> wrote:
>
http://www.mulberrytech.com/Extreme/Proceedings/xslfo-pdf/2003/Novatchev01/EM
L2003Novatchev01.pdf
>
>
> On 11/18/05, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
> > On 11/4/05, ben senior <ben@xxxxxxxxxxxxx> wrote:
> > > I wish to decide between calling one of a set of templates depending on
> > > a fragment of xml (/content/layout/node()).
> > >
> > > Rather than having a mass of xsl:when/choose statements, I thought I
> > > would add :
> > >
> > > <xsl:apply-templates select="xxx" mode="{/content/layout/node()}"/>
> > >
> > > That didn't work. I then tried setting an xsl:variable and doing
> > > mode="$layout" and that didn't work.
> > > Then I tried setting the mode attribute using xsl:attribute and that
> > > didn't work.
> > >
> > > Am I missing out on something at the conceptual level - is this to do
> > > with xsl's statelessness?
> >
> >
> > Yes,
> >
> > Do read :
> >
> >
http://www.mulberrytech.com/Extreme/Proceedings/xslfo-pdf/2003/Nordstrom01/EM
L2003Nordstrom01.pdf
> >
> > and you'll know how to do this in XSLT using FXSL.
> >
> > --
> > Cheers,
> > Dimitre Novatchev
> > ---------------------------------------
> > The generation of random numbers is too important to be left to chance

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.