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

[xsl] Matching words in OR


Subject: [xsl] Matching words in OR
From: "cruscio@xxxxxxxxx" cruscio@xxxxxxxxx
Date: Sun, 10 Dec 2006 18:35:01 +0100

> Hi,
> this is part of my XML:
> 
> <xml>
>      <rowset:data>
>         <target:row attr1=3D'1' attr2=3D'900' attr3=3D'ABC' attr4=3D'TR=
EE-JOKER-BASEBALL-' />
>      </rowset:data>
> </xml>
> 
> In XSLT 1.0 need to create a regex to match values into attr4, so I nee=
d something "Perl" like attr4 =3D~/TREE|JOKER/ 
> 
> This is my query:
> /xml/rowset:data/target:row[(@attr4 =3D '/TREE|JOKER/')] but doesn't wo=
rk.
> 
> Can you please help?
> Thanks.
> Carlos
> 
> 
> 
> 
> ------------------------------------------------------
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom=

> http://click.libero.it/infostrada10dic06
> 
> =0A=0A=0A------------------------------------------------------=0APassa=
 a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom=0Ahttp=
://click.libero.it/infostrada10dic06=0A


Current Thread
Keywords