POV-Ray : Newsgroups : povray.general : Random thoughts about povray and xml : Re: Random thoughts about povray and xml Server Time
2 Nov 2024 11:26:39 EDT (-0400)
  Re: Random thoughts about povray and xml  
From: Patrick Elliott
Date: 20 Mar 2004 14:57:47
Message: <MPG.1ac64ffb580d95fe9899ee@news.povray.org>
In article <cjameshuff-EE45D7.14050220032004@news.povray.org>, 
cja### [at] earthlinknet says...
> In article <Xns94B1DBBA41E8ZenZenPsychocom@203.29.75.35>,
>  Breton Slivka <Zen### [at] ZenPsychocom> wrote:
> 
> > <if value="true">
> > <box a="1", b="-1"><pigment><color r="1"/></pigment></box>
> > </if>
> 
> It'd be a bit more complex than that. Maybe something like:
> 
> <if>
>     <condition>
>         <equal>
>             <lhs><varref identifier="foo"></lhs>
>             <rhs><boolean value="true"></rhs>
>         </equal>
> or maybe:
>         <compare type=equal lhs="foo" rhs="true">
>     </condition>
>     <then>
>         <box x1="1" y1="1" z1="1" x2="-1" y2="-1" z2="-1">
>             <plainpigment red="1"/>
>         </box>
>     </then>
> </if>
> 
> This would be equivalent to:
> #if(foo = true)
>     box {< 1, 1, 1>, <-1,-1,-1>
>         pigment {color red 1}
>     }
> #end
> 
> 
Yep. All you really accomplish is replacing a slightly more obscured 
syntax with one that is simpler to read, but takes up more space and more 
time to parse. It doesn't really improve matters to fiddle with XML.

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

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