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

Selecting elements with param, but still included in x

Subject: Selecting elements with param, but still included in xsl:number?
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Tue, 21 Oct 2003 10:22:13 -0400
 Selecting elements with param
The following is just a portion of a longer template.  I have varying levels
of <step> elements with potential customer and assembly attributes. I select
the <step>s I want, then need to create the variable "id" and number the
steps in my table -- applying numbers ONLY to those <step>s selected with
the IF test.


With the following structure, the numbering includes the "unseen" but not
selected elements. How can I do this please?

Thanks, Kat

<xsl:if test="(not(@customer) or (@customer=$customer)) and
	(not(@assembly) or (@assembly=$assembly))">
                   <xsl:variable name="id">
		<xsl:number level="multiple" count="step" format="1.1"/>
	      </xsl:variable>
	<table width="100%" border="0" cellpadding="0">
                   <tr>
		<td valign="top">
			<xsl:number level="multiple" count="step"
format="1.1"/>
		                   <xsl:if test="not(ancestor::step)">
			            <xsl:text>.</xsl:text>
			       </xsl:if>
		</td>
	      <td><xsl:apply-templates select="*[not(self::substeps)]"/>
	     </td></tr>
	ETC...


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.