Subject: Re: [xsl] apply 2 diff xsl on the same xml OR passing parameter to xsl From: "ficfic m" <ficfic@xxxxxxxxxxx> Date: Tue, 07 Dec 2004 12:05:40 +0200 |
From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] apply 2 diff xsl on the same xml OR passing parameter to xsl
Date: Mon, 6 Dec 2004 16:50:46 GMT
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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] pulling ID or value-of in, Anokhin Alexander | Thread | Re: [xsl] apply 2 diff xsl on the s, David Carlisle |
Re: [xsl] Extracting the grouping f, Kevin Jones | Date | Re: [xsl] selecting multiple elemen, David Carlisle |
Month |