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

Re: Selecting only those nodes whos attibutes contain

Subject: Re: Selecting only those nodes whos attibutes contain a given substring
From: JBryant@xxxxxxxxx
Date: Tue, 12 Apr 2005 09:36:24 -0500
if contain
<xsl:if test="*[contains(@class, 'menublock-selected-')]">
  <xsl:apply-templates/>
</xsl:if>

Just tested it with Saxon 8.3.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




Peter Hickman <peter@xxxxxxxxxxxxx> 
04/12/2005 09:26 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc

Subject
 Selecting only those nodes whos attibutes contain a given substring






I am having to write some XSLT that needs to decide if it needs to 
recurse into the contents of the current mode. Basically I am at a node 
and I only want to recurse into it if at least one of the child nodes 
has an attribute called "class" who's value contains the sub string 
"menublock-selected-". Otherwise I am going to skip this node.

The XML is part of an open source project so there is little chance of 
patching it up.

Any ideas?

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.