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

Re: defining nodes to apply template to

Subject: Re: defining nodes to apply template to
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 9 Aug 2005 15:07:33 +0100
Re:  defining nodes to apply template to
You are applying templates to all nodes, so you need a template 
<xsl:template match="blah"/>
that says to do nothing with blah elements that don't match your other
template.

Or simpler in this case just have a template matching blah that does teh
trannsformation you require, and only apply templates to the blah nodes
before stop, as I suggested earlier:


Date: 4 Aug 2005 17:08:35 +0100
From: David Carlisle <davidc@xxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
In-reply-to: <20050804154345.95728.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx> (message
	from ADAM PATRICK on Thu, 4 Aug 2005 16:43:45 +0100 (BST))
Subject: Re:  defining nodes to apply template to


<xsl:apply-templates select="blah[.='STOP']/preceding-sibling::blah"/>


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.