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

Reverse selecting match statements - a not matching?

Subject: Reverse selecting match statements - a not matching?
From: Dan Vint <dvint@xxxxxxxxx>
Date: Sat, 26 May 2012 13:07:44 -0700
 Reverse selecting match statements - a not matching?
So I have an element that has a variety of child elements. For the most part I can just let these pass through and be handled with default selection/processing. So a generic <xsl:apply-templates/> works for me.

The problem is that there are a few elements in that list that I don't want processed. So I would like to just list the elements not to select and still let the others pass through.

The only way I can see to handle this is to add a mode statement to the apply-templates call and then just stop the processing of the selected elements that I don't want matched. I would like to avoid adding mode statements to these calls and then all the default processing because many of the elements are used all over the place. I'm trying to avoid replicating the <para> element processing for every mode that might be involved with para elements.

The specific circumstance that I have is this content:

So for actually both the step1 and step2 elements (and further levels), I don't have a wrapping construct that allows me to trigger an html <ol> element to wrap them. Before the step2 there can be a long list of available elements that I would prefer to not list everything from the DTD if I can avoid it. Over time the DTD may change and I would have to add these elements to the list.

For the step2 elements, I need to do a check to generate the wrapping <ol> to make these an HTML list. I suppose in this case another option would be to number the list elements myself and not use the standard html ol/li element constructs.

Danny Vint

Panoramic Photography

voice: 619-938-3610

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.