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

Re: xtvd grouping problem (I think)

Subject: Re: xtvd grouping problem (I think)
From: Steve <subsume@xxxxxxxxx>
Date: Fri, 8 Sep 2006 16:51:07 -0400
Re:  xtvd grouping problem (I think)
On 9/8/06, Bob Portnell <simply.bobp@xxxxxxxxx> wrote:
    for each search item
        find the set of programs which have that item
        convert this to the set of schedule items which have those programs
        for each in the schedule set
            sort by time
            report the show information.

<xsl:for-each $progSet/items[@item=@search]/@prog> <xsl:variable name="prog" select="@prog" /> <xsl:for-each $scheduleSet[@prog = $prog]/@prog> <xsl:sort select="@time" /> <xsl:value-of select="@showInfo" </xsl:for-each> </xsl:for-each>


Given a variable $progSet which has a bunch of <programs> in it, how
do I define a $schedSet which has only <schedule> items containing
@program ids from $progSet?

I've gotten as far as
<xsl:variable name="schedSet" select="//schedule[@program . . {sound
of screeching brakes}? />

Pretty sure I touched on this above. Let me know.


Please excuse where I've strayed from proper XSLT vocabulary; I hope
my intent is clear enough despite such lapses of inexperience.

No problemo. Was very well conveyed. =).


-S

Current Thread

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.