xsl-list
[Top] [All Lists]

Re: apply 2 diff xsl on the same xml OR passing parameter to xsl

2004-12-06 09:50:46
  1. Is there a way to pass a parameter to the XSL file through the xml URL ?
  (this way I'll have one xsl file and according to the parameter value I'll 
  display only what I need)


Not directly, no, you would need the xml file to use the xml-stylesheet
PI to apply a stylesheet that generated some html, and then use
javascript in that html to access the URI and  do anything else needed.

  2. Is there a way, which is not browser depended, to apply the needed XSL on 
  the xml file ?
  (meaning I've 2 XSL file for 'detailed' version and 'summarized' version)

such javascript is likely to be browser dependendent although there are
some javascrip libraries available that hide the dependencies as much as 
possible.

  3. I didn't quite understand, is XSL processor a built-in in all web-browser 
  ? are there platform or web-browsers that don't suppot XSL processor and 
  additional program should be installed on it ?

Lots of browsers don't have XSLT.
IE 6 and mozilla (which includes, netscape 7 and firefox, etc) do have
XSLT support, but Opera doesnt. KHTML browsers such as safari on the mac
don't IE on the Mac doesn't, lynx doesn't,....

  4. how can it be the IE6 and netscape fail to open 10M xml file but when I'm 
  adding to this file an XSL stylesheet it take no longer the 10sec ?

The default stylesheet in both cases makes a javascript enabled folding
tree view of the document, presumably it was taking a long time
for that tree view to be generated/rendered.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--