[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

Subject: Re: Dynamic processing of xml file using xsl and javascript (200411/msg00765)
From: "Alan Varga" <aevarga@xxxxxx>
Date: Wed, 19 Oct 2005 06:55:57 -0500
xml file modification
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

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.