Jump to content

Web page only with xml


nemesis

Recommended Posts

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

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

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

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...