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

RE: [xsl] Search a string


Subject: RE: [xsl] Search a string
From: Ram <sram_30@xxxxxxxxx>
Date: Fri, 28 Nov 2003 02:38:04 -0800 (PST)

Many thanks Jarno.

BR,
Ram


--- Jarno.Elovirta@xxxxxxxxx wrote:
> 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
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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



Current Thread
Keywords