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

RE: Selecting everything "before" and "after" a specif

Subject: RE: Selecting everything "before" and "after" a specific node
From: "Harvey, Paul" <Paul_Harvey@xxxxxxxxxxx>
Date: Thu, 2 Apr 2009 15:22:16 -0400
RE:  Selecting everything "before" and "after" a specif
That was it, thanks so much.

-----Original Message-----
From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
Sent: Thursday, April 02, 2009 1:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Selecting everything "before" and "after" a specific
node

Harvey, Paul wrote:

> So I'm trying to use an identity template to kick of the processing.
> Then I have a template to match WRAPPER, which contains your stuff,
only I'm attempting to constraint it operate on the value of the
variable $sub-tree, defined as:
>
> <xsl:variable name="sub-tree" select="/A/WRAPPER"/>
>
> <xsl:template match="WRAPPER">
> 	<WRAPPER>
> 		<BEFORE>
> 			<xsl:apply-templates select="$sub-tree"
mode="before"/>

I think you simply want
   <xsl:apply-templates mode="before"/>
here to process all child nodes of the WRAPPER element in mode="before".

> 		<BEFORE>
> 		<PULLED>
> 			<xsl:copy-of select="$this"/>
> 		<PULLED>
> 		<AFTER>
> 			<xsl:apply-templates select="$sub-tree"
mode="after"/>

Then here
                   <xsl:apply-templates mode="after"/>
to process all child nodes of WRAPPER in mode="after".


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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.