xsl-list
[Top] [All Lists]

[xsl] Re:[xsl] Matching words in OR

2006-12-10 10:46:40
Just to be more clear...my query

/xml/rowset:data/target:row[(@attr4 = '/TREE|JOKER/')]

will be then processed by Javascript via document.XSLDocument.selectSingleNode

Thanks.



---------- Initial Header -----------

From      : "cruscio(_at_)libero(_dot_)it" cruscio(_at_)libero(_dot_)it
To          : "xsl-list" xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc          : 
Date      : Sun, 10 Dec 2006 18:35:01 +0100
Subject : [xsl] Matching words in OR







Hi,
this is part of my XML:

<xml>
     <rowset:data>
        <target:row attr1='1' attr2='900' attr3='ABC' 
attr4='TREE-JOKER-BASEBALL-' />
     </rowset:data>
</xml>

In XSLT 1.0 need to create a regex to match values into attr4, so I need 
something "Perl" like attr4 =~/TREE|JOKER/ 

This is my query:
/xml/rowset:data/target:row[(@attr4 = '/TREE|JOKER/')] but doesn't work.

Can you please help?
Thanks.
Carlos




------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada10dic06



--~------------------------------------------------------------------
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>
--~--




------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada10dic06



--~------------------------------------------------------------------
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>
  • [xsl] Re:[xsl] Matching words in OR, cruscio\(_at_)libero\(_dot_)it <=