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

Choice between Javascript/CSS:display:none and client-

Subject: Choice between Javascript/CSS:display:none and client-side XSLT
From: Cas Tuyn <Cas.Tuyn@xxxxxxxx>
Date: Tue, 9 Sep 2003 18:25:31 +0200
javascript css display
Hi,

I'm fairly new to this list, and read the FAQ, but could not find info on when 
*not* to use XSLT. I'm investigating a way to display only part of an XML 
file, based on cooky values or the outcome a pulldown menu selection.

Input: XML file with sections applicable only to some configurations, made in 
Arbortext Epic.
Middle tools: currently a Sablotron XSLT transformation into HTML, with a 
template made in XMLSpy, followed by some postprocessing in Perl.
Client tools: MSIE6 on WindowsNT4, Mozilla 1.4 on Solaris 2.8
Current output:  all sections are displayed

Wished output: 
In the top of the XML or HTML file the user sees a pull-down menu with the 
configuration items (model= 400, 500, 600).
When model 500 is selected, each section in the document is checked if it 
must be displayed for that configuration (in below example the 1st and 3rd 
section only):

<section><title>CLEAN GRIPPER</title>
<conf>
<syslist>
<model modeltype="400"/>
<model modeltype="500"/>
</syslist>
... info only for model 400 and 500 ...
</section>
<section><title>CLEAN GRIPPER</title>
<conf>
<syslist>
<model modeltype="600"/>
</syslist>
... info only for model 600 ...
</section>
<section><title>COMPLETE THE PROCEDURE</title>
<conf>
<syslist>
<model modeltype="400"/>
<model modeltype="500"/>
<model modeltype="600"/>
</syslist>
... info for all models ...
</section>

Now my question is which technique is easiest to implement and gives the best 
client-side performance: 

1. Javascript that switches the display CSS property between "block" and 
"none" as seen in many automatic collapsing tree menus, see example:
http://www.oreillynet.com/pub/a/javascript/2002/02/22/hierarchical_menus.html

2. the 'pure-XML approach' with XML and several different XSLTs, because I can 
guarantee I have IE6 or Moz1.4 as browsers. I have not seen any examples of 
this way and wonder if it is because it's too bleeding edge.

What are your thoughts on this, and do you have any examples of #2 ?

Thanks,

Cas Tuyn, project leader/programmer
ASML, Netherlands




-- 
The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.