xsl-list
[Top] [All Lists]

RE: Using 'contains' in but need more specific

2005-11-22 01:04:06
So I could use something like:

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

cheers,


-----Original Message-----
From: George Cristian Bina [mailto:george(_at_)oxygenxml(_dot_)com]
Sent: den 22 november 2005 08:11
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


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[(_at_)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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>