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]

Re: How to use mode


if your default template has no mode, have u tried nesting
<xsl:apply-templates/> within your mode templates .?

otherwise it sounds like you might be trying to do too much with a single
transformation, might be easier to break this into a 2 pass process?

cheers, jim fuller

----- Original Message -----
From: "Griebel, Peer" <Peer.Griebel@entire.de>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, June 26, 2001 11:06 AM
Subject: AW: [xsl] How to use mode


> > > 3. How can I combine modes?
> > You can't, but
> >
> > <xsl:apply-templates mode="some-mode"/>
> > <xsl:apply-templates mode="some-other-mode"/>
>
> This is not quite the way I would like to let it work.
> I have a default template which simply copies everything. Then I have
> different modes in which I also want to have the default rule active.
> If I call
>     <xsl:apply-templates select="/" mode="q1"/>
> and somewhere else
>     <xsl:apply-templates select="/" mode="q2"/>
> I have to code the default template two times (or three times:
default-mode,
> modes q1, q2). It would be easy to write
>     <xsl:apply-templates select="/" mode="q1 | default-mode"/>
>     <xsl:apply-templates select="/" mode="q2 | default-mode"/>
> You see?
>
> > should have the desired effect. But are you sure you realy need modes.
>
> No, I'm not sure. I'm still investigating. I would like to know all the
> concepts of XSLT so that I know what I'm doing - and so that I know the
> alternatives.
>
> >     Goetz.
> >
>
> connection reset by
>   Peer
>
> --
> Dr. Peer Griebel                     Tel: +49(0) 731 / 9 74 95-0
> Dipl. Inform.                       Fax: +49(0) 731 / 9 74 95-20
> Entire Software AG                 mailto:Peer.Griebel@entire.de
> Pfarrer-Weiß-Weg 10 - 12
> D-89077 Ulm                                 http://www.entire.de
>
>  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]