nemesis 0 Posted October 17, 2005 Report Share Posted October 17, 2005 I am about to finish my final post paper and i'm on creating an xml web page, but i 'm having some problems. I want to how can i create a functionable site with xml but without transformation. Quote Link to post Share on other sites
Nick 0 Posted October 17, 2005 Report Share Posted October 17, 2005 As far as I know, you'll need to somehow transform it.XML is not a language like HTML or XHTML. It's just a way of storing data. You would generally use XSL to transform your XML data into XHTML or something like that.XML is not just used in websites. Again, it's only a method of storing data. XSL is used to display that data. Quote Link to post Share on other sites
nemesis 0 Posted October 18, 2005 Author Report Share Posted October 18, 2005 And what if i use CSS to display the xml in browsers?Won't be the same? Quote Link to post Share on other sites
Nick 0 Posted October 20, 2005 Report Share Posted October 20, 2005 Well, you could use css. However, you'll be severly limited.I believe when you use CSS it just goes with the default template for all tags, which is just to treat them as raw text. You can only say how you want that text to be displayed.That means that tags like <a> and <img> can't work because you can't transform them into a link or image, just text.So you could make a semi-functional web page. (Text wil coloring and styles) I don't think you could make a functional web site. Quote Link to post Share on other sites
actionsketch 0 Posted October 25, 2005 Report Share Posted October 25, 2005 If you know what your doing, you can emulate <img> and <a> and almost completely rewrite html with xml and css. I did it . You cant emulate things like <title> but oh well. Quote Link to post Share on other sites
XMLTorrent 0 Posted November 15, 2005 Report Share Posted November 15, 2005 XSL is better because you basically make an HTML document inside of it and that's how it displays the data in the XML document. If you used CSS, you'd have to code the positioning of all the elements and the like and that becomes really tedious.And it's more appropriate to use XSL to display your XML document. W3C frowns upon the use of CSS to display your XML documents but it can be done. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.