[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

contains

Subject: contains
From: "Hardy Merrill" <HMerrill@xxxxxxxxxxxxxxxx>
Date: Wed, 02 Jun 2004 10:48:25 -0400
javascript contains
XSL newbie alert.

We're having problems with the 'contains' statement.  Our XML looks
like this:

   <persons>
         <person scrn_fld="person_1">
                 <name>Joe</name>
         </person>
         <person scrn_fld="new_user_1">
                 <name>Joe</name>
         </person>
         <person scrn_fld="new_user_2">
                 <name>Jim</name>
         </person>
   </persons>

Notice that 'person' attribute 'scrn_fld' can have values starting with
either 'person' or 'new_user'.  In an effort to get only 'new_user'
nodes, we can't get this to work:

    var personNodes = root.selectNodes("//person[contains(@scrn_fld,
'new_user')]");


Note that this code is Javascript code - anyone know if/why Javascript
has a problem with this?  This seems to work ok in ASP.  We're using
MSXML 4.0.

TIA.

Hardy Merrill

Current Thread
  • contains
    • Hardy Merrill - Wed, 02 Jun 2004 10:48:25 -0400 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.