[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Matching for strings...
Bob,
Was it someone else who asked something very closely analogous to this just a week or two ago? In any case, At 11:35 AM 9/6/2006, you wrote: I want to find <program> elements whose <title> or <subtitle> or <description> might contain the string I've stowed in the variable $target. Something simple like Right. When they try this sort of thing people generally want <xsl:if test="//tv:program[matches(normalize-space(),$target]"> which tests true if such a node exists. An optimized processor, I assume, will return true as soon as it finds one such node. A naive one will examine all of them before returning true. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|