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

RE: Search a string

Subject: RE: Search a string
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 27 Nov 2003 20:27:28 +0200
xsl string search
Hi,

>  I've to search whether a string is in the xml input 
> (precedes the context
> node);

e.g.

  preceding::text()[contains(., $yourstring)]

> if not in the xml input, again I've to search whether it is in
> another file in the same directory. Any idea?

If you know the name of the file, 

  document($filename, /)/descendant::text()[contains(., $yourstring)]

if not, you need to tell the file name to the XSLT engine somehow, XSLT cannot read the directory contents. Parameter is one way, or providing an XML document that lists the directory contents.

Cheers,

Jarno - Covenant: Bullet (Club Version)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Search a string
    • Ram - Thu, 27 Nov 2003 12:33:14 -0500 (EST)
      • <Possible follow-ups>
      • Jarno . Elovirta - Thu, 27 Nov 2003 13:27:36 -0500 (EST) <=
        • Ram - Fri, 28 Nov 2003 05:38:41 -0500 (EST)

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.