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

multiple passes dont work

Subject: multiple passes dont work
From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Fri, 18 Feb 2011 11:47:17 +0100
 multiple passes dont work

I know i've asked a quite similar question recently but i can't seem to
realize this.
I want to have one Stylesheet do do a few passes. (isntead of using more
than one stylesheet).

I did this:

<xsl:variable name="pass2">
		<xsl:apply-templates select="node()"/>

<xsl:template match="* | processing-instruction()">
		<xsl:copy-of select="@*"/>

<xsl:template match="* | processing-instruction()" mode="second">
		<xsl:copy-of select="@*"/>

<xsl:template match="/">
	<xsl:apply-templates select="$pass2" mode="second"/>

There are also a couple of templates that actually do something.
Most oft hem have no mode definend (for the first pass) and 1 of them
has mode="second".

Unfortunately the result looks just like it would look after the first

What am I doing wrong ?!

Kind regards

. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
Marxergasse 25, 1030 Wien

Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146

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.