This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: How to use mode
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: AW: [xsl] How to use mode
- From: "Griebel, Peer" <Peer dot Griebel at entire dot de>
- Date: Tue, 26 Jun 2001 12:06:08 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > 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