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

Re: How to use mode

Subject: Re: How to use mode
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Tue, 26 Jun 2001 11:09:07 +0100
when 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@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, June 26, 2001 11:06 AM
Subject: AW:  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@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
>


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


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.