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

Re: Matching a local scope name

Subject: Re: Matching a local scope name
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 15 Sep 2010 13:29:30 +0100
Re:  Matching a local scope name
> Suppose I want a template to just match the later
> <template match="section">
> Would match all three (?)
> <template match="master/section" >
> might do the trick but suppose there is another "master" locally defined
> elsewhere that I DONT want to match.

You have 2 options, 1 - make the match patterns more specific,  or 2 -
be more selective when you apply-templates.  Your template will only
get used if you call apply-templates, or let the inbuilt templates
kick in and call apply-templates.

If in doubt, post a small, complete example input and required output.

Andrew Welch

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.