[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Matching for strings...
Subject: Re: Matching for strings...
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 6 Sep 2006 16:49:55 +0100
|
On 9/6/06, Bob Portnell <simply.bobp@xxxxxxxxx> wrote:
Well, the Cookbook didn't help with this problem, or at least not that I saw.
So, my data (in part) is like this..
<xtvd>
...
<programs>
<program id@="...">
<title> ... </title>
<subtitle> ... </title>
<description ... </title>
...
</program>
<program>
...
</program>
...
</programs>
...
</xtvd>
(Yes, it's the ever-popular DataDirect TV listings from Tribune Media
Services... I'm working with the data in its "native" xtvd structure,
rather than doing the very long-winded transform to the more popular
XMLTV structure.)
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
...so something like:
select="//program[contains(title, $target) or contains(subtitle,
$target) or contains(description, $target)]"
cheers
andrew
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|