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

Re: Template doesn't seem to match

Subject: Re: Template doesn't seem to match
From: Markus Abt <abt@xxxxxxxx>
Date: Mon, 9 Jul 2012 21:50:33 +0200
Re:  Template doesn't seem to match
russurquhart1@xxxxxxxxxxx wrote:
> The third template i think should work, but isn't completely. This template
should return any remaining SubSection elements, and all that are left at this
time, i would think, would be those that have no NDA content.

No, for example if you have three SubSections:
SubSection/SubSection/SubSection[@filter='filter1']

The first (outmost) one matches template 3 (public-only).
The second (middle) one matches template 2 (neither NDA-only nor
public-only).
The third (inner) one matches template 1 (NDA-only).

I guess that is not what you want. Propably, you want to change the pattern of
template 2 to:
SubSection[descendant::*[@filter='filter1']]

But that is only my guess since your input XML is also not public...

Regards,
Markus

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.