nemesis Posted October 17, 2005 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. Link to comment Share on other sites More sharing options...
Nick Posted October 17, 2005 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. Link to comment Share on other sites More sharing options...
nemesis Posted October 18, 2005 Author Share Posted October 18, 2005 And what if i use CSS to display the xml in browsers?Won't be the same? Link to comment Share on other sites More sharing options...
Nick Posted October 20, 2005 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. Link to comment Share on other sites More sharing options...
actionsketch Posted October 25, 2005 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. Link to comment Share on other sites More sharing options...
XMLTorrent Posted November 15, 2005 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. 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