POV-Ray : Newsgroups : povray.off-topic : Random question of the day : Re: Random question of the day Server Time
4 Sep 2024 05:18:27 EDT (-0400)
  Re: Random question of the day  
From: Invisible
Date: 22 Apr 2010 08:36:04
Message: <4bd042b4@news.povray.org>
>> As an experiment, I tried to see how far I could get with this. I got 
>> quite far, and then I hit a snag: I found two things that HTML can do, 
>> but I can't find CSS properties to achieve the same thing with raw XML.
> 
>   You are comparing apples to oranges. XML doesn't specify things like
> "this should be shown as an image". HTML does.

Ideally, XML just contains your information and describes its structure. 
A stylesheet describes how to actually display it. (Much like HTML+CSS 
is supposed to.)

Basically everybody in my class ended up writing XML files, but then 
writing XSLT to convert this XML back into ordinary HTML. I was 
wondering "why not just serve the original XML and give the browser a 
stylesheet to tell it how to display it?" The answer being that there 
are several HTML features that don't seem to be possible with general XML...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.