Jonas Posted June 25, 2006 Share Posted June 25, 2006 After Opera 9.0 was released, I've decided to try and use the summer holiday learning xml/xslt. Now, looking at the examples, I was wondering:http://www.w3schools.com/xsl/xsl_choose.aspWhen one uses xslt to say, create <td bgcolor="#ff00ff"></td> around text, is it also possible to just give the td a class="name" and make <head></head> tags in the xslt with style tagset and info? So it's easier to change one and all at the same time at a later time? :)When executing xml/xslt with serverside scripts(?), is it so that you actually change the xml/xslt and get returned xhtml in the source code? Link to comment Share on other sites More sharing options...
snowboard01 Posted June 25, 2006 Share Posted June 25, 2006 I did the CSS once and it worked in all but opera which had a very bad support for xml at the time it should work great now though. Link to comment Share on other sites More sharing options...
boen_robot Posted June 26, 2006 Share Posted June 26, 2006 When one uses xslt to say, create <td bgcolor="#ff00ff"></td> around text, is it also possible to just give the td a class="name" and make <head></head> tags in the xslt with style tagset and info? So it's easier to change one and all at the same time at a later time? Yes. Every element inside an XSLT file without the XSLT namespace(<xsl:something>) is part of the actual ouput, so this means you can put anything you can do with that other language (in our case, that's XHTML).When executing xml/xslt with serverside scripts(?), is it so that you actually change the xml/xslt and get returned xhtml in the source code? Abso****enlutely correct . When you view an XML file with attached stylesheet you see the result, but the browser or application that reads the file only sees (thus manipulates) the XML source. Executing XSLT with a server side script allows you to see the output's source code and allows applications to parse this code, instead of the XSLT one. That is essentially useful for devices and browsers that don't support XSLT. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now