PDA

View Full Version : Does XSLT work with IE and NS?


kraftomatic
12-19-2003, 10:19 PM
http://www.w3schools.com/xsl/xsl_transformation.asp

According to the above article, the latest versions of IE and Netscape fully support XSLT.

It seems there are slight hiccups with older versions however.

Has anyone had any experience with XSLT pages? They can be hosting off of any type of Win2K server right?

Thanks.

brothercake
12-19-2003, 11:51 PM
Yes, the server won't make any difference if you're doing client-side transformation.

What exactly is the problem you're having?

kraftomatic
12-20-2003, 01:02 AM
No problem yet. I'm just worried about the files being able to be viewed across the board.

Does the XSL file always transform the XML file into .HTML?

brothercake
12-20-2003, 02:24 AM
They won't be - if you do client-side XSL only IE6 and moz browsers will be able to see it.

XSL just provides a mechanism for transformation - what that transformation outputs is up to you - XHTML, SVG, WML .. whatever

If you're running a Windows server you can do server-side transformation natively in ASP or .net, and serve the output.

kraftomatic
12-20-2003, 02:32 AM
Something like this?

http://www.w3schools.com/xsl/xsl_server.asp

Using ASP to utilize the XSL with the XML into HTML.

brothercake
12-20-2003, 02:43 AM
Yes exactly :)

me'
12-20-2003, 12:23 PM
Also, it outputs what only you can see. If you pull the url of an XSLTd file, it will still end in .xml, not .xhtml or whatever you transformed it into.

kraftomatic
12-20-2003, 07:20 PM
And .xhtml isn't usable by all browsers right?

So my next question - if the ASP merges the XML and XSLT files together, where is the actual "style" controlled?

The XML handles the content. The XSL handles the style. However now, I could layout my page in ASP and do all the styling within that page.

Doesn't that kinda effect my controlling of style and content independently?

me'
12-20-2003, 07:23 PM
The XSLT doesn't control the style, irrespective of it's name. It transforms it into (normally) XHTML, which you then style with CSS or XSL-FO. You include the XML into your page with ASP or PHP, then it gets transformed by the XSLT (or it gets included after transformation, etc) then any style rules (CSS, XSL-FO) are applied.