[xsl] XML subset selection-a simpler way?
Subject: [xsl] XML subset selection-a simpler way?
From: "Alan Varga" <aevarga@xxxxxx>
Date: Wed, 7 Jun 2006 07:29:26 -0500
|
Hello list,
I am using XML and XSL to maintain a calendar of events for the various
musical groups in our middle school music program. I'm working with the
Sarissa group on XML transformation for multiple browsers to be able to
insert the appropriate events in the middle of an HTML page.
My question for this list is: Is there a simpler way than what I am doing
now to narrow down the events I want to use? It works just fine, but it
took a lot of setup.
1) I have an HTML form with a submit button and two listboxes, one for
calendar style (by band or by month), the other to choose either the band
name or the month name.
2) The submit button stores cookies with the values of each of the
listboxes, then reloads the page.
3) When the page reloads, an onload script checks the cookies and builds an
XSL filename.
4) The main XSL defines an xsl:variable corresponding to values of the
cookies, and also has 2 xsl:includes.
5) One of the xsl:includes contains the bulk of the templates, the other
only contains a template with a <tbody> element which does the actual
selection of events (select="Event[MonthName=$month]).
I can provide more of the code if you need to see it. Thanks in advance for
your help.
Alan