[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Dynamic processing of xml file using xsl and java
I am trying to transform a calendar of events for several bands at my son's middle school. The data is XML, and a form with two radio buttons and a listbox determines writes two cookies which determine which band's or month's events I want to see. The cookie values are combined in a script to form the XSL filename to use when transforming the XML file. In Explorer the result has the formatting I intended, a table with rows , some color-coded for specific events. In Firefox, the result is text only, all run together, without any formatting applied, and using all of the XML records instead of my filter, e.g. in Band-Symphonic.xsl <xsl:apply-templates select="Event[Band='Symphonic']" /> The relevant files are: http://user.mc.net/~aevarga/mmsbb/calendar/calendar.htm for results http://user.mc.net/~aevarga/mmsbb/calendar, view band.js I am writing for the following environments: Internet Explorer 6 SP1 Vendor: Microsoft Vendor URL: http://www.microsoft.com Mozilla Firefox 1.06 XSLT Processor Version Vendor: Transformiix Vendor URL: http://www.mozilla.org/projects/xslt/ I am using a modified version of a script written by Anton Triest which checks the browser to decide how to perform the transformation. His original script is hardcoded into the <head> of an HTML document and accepts parameters from the onClick event: <body onload="Initialize(); SetParam('color','yellow');"> Alan Divorty modified it to run with pre-set parameters, which I've attempted to do, but apparently not as successfully. Unfortunately, he did not post his code, so I am trying to follow up with him separately to cross-check. Subject: Re: Dynamic processing of xml file using xsl and javascript (200411/msg00765) From: ALAN DIVORTY <alan.divorty@xxxxxxxxxxxxxx> Date: Wed, 17 Nov 2004 13:20:31 +0000 (GMT) Can someone with both browsers check out my page and offer a suggestion about how to adjust my transformation script? Your help is greatly appreciated. I've been thinking about this project since May and finally found the threads on this site last week. (Thanks to Jeni Tennison for pointing me to mulberry.com and the XSL List.) Alan Varga
|
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
|