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

AW: How to use mode

Subject: AW: How to use mode
From: "Griebel, Peer" <Peer.Griebel@xxxxxxxxx>
Date: Tue, 26 Jun 2001 12:06:08 +0200
xml 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

>     Goetz.

connection reset by

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@xxxxxxxxx
Pfarrer-Weiß-Weg 10 - 12
D-89077 Ulm                                 http://www.entire.de

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

Current Thread


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.
First Name
Last Name
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.