Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Using contains in but need more specific


Subject: Re: [xsl] Using contains in but need more specific
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Thu, 01 Dec 2005 14:34:57 +1100

If you are trying to get a specific match, why use contains? Could n't you use @name='se.company.iface' ?

Cheers
Kamal
Mikael Petterson (KI/EAB) wrote:

Hi,

I am using the following xsl (xpath):

<xsl:with-param name="nodes" select="report/data/all/package[contains(@name,'se.company.iface') or contains(@name,'se.company.common') or contains(@name,'se.company.pnp') or contains(@name,'se.company.bcm')]/coverage[@type='block, %']/@value"/>

When I use 'contains' I get a match for both:

se.company.iface
se.comapny.iface.pop

However I only want a specific match that is when I write (@name,'se.company.iface') it is only
se.company.iface and NOT se.comapny.iface.pop

Is it possible to perform this in xsl?

cheers,

//mikael


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords
xsl