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

XML subset selection-a simpler way?

Subject: XML subset selection-a simpler way?
From: "Alan Varga" <aevarga@xxxxxx>
Date: Wed, 7 Jun 2006 07:29:26 -0500
xml subset
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

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.