Subject: Re: [xsl] How to use mode From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Tue, 26 Jun 2001 11:09:07 +0100 |
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: [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@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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] How to use mode, Griebel, Peer | Thread | [xsl] How to propagate links in hie, Nick Vincent |
AW: [xsl] How to use mode, Griebel, Peer | Date | [xsl] How to propagate links in hie, Nick Vincent |
Month |