Jump to content
nemesis

Web page only with xml

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.

Share this post


Link to post
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.

Share this post


Link to post
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. :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...