RE: [xsl] Using 'contains' in but need more specific

Subject: RE: [xsl] Using 'contains' in but need more specific
From: "Mikael Petterson (KI/EAB)" <mikael.petterson@xxxxxxxxxxxx>
Date: Tue, 22 Nov 2005 09:04:06 +0100
So I could use something like:

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


-----Original Message-----
From: George Cristian Bina [mailto:george@xxxxxxxxxxxxx]
Sent: den 22 november 2005 08:11
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Using 'contains' in but need more specific

Hi Mikael,

It seems you want equal not contains. Then test for equality.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

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,'') or
contains(@name,'') or contains(@name,'') or
contains(@name,'')]/coverage[@type='block, %']/@value"/>
> When I use 'contains' I get a match for both:
>  se.comapny.iface.pop
> However I only want a specific match that is when I write
(@name,'') it is only
> and NOT se.comapny.iface.pop
> Is it possible to perform this in xsl?
> cheers,
> //mikael

Current Thread