[Scummvm-devel] [RFC] ScummVM website re-write

vEX vex at niechift.com
Thu Jul 10 19:07:00 CEST 2008


Hi,

Sorry for the delayed reply, I've been a bit busy.

Max Horn wrote:
> Well, seems we need to stay with PHP4 compatibility, though. Anyway, 
> validation is certainly not required. If you need to distinguish between 
> the NEWS structure XML, and the "content" XHTML, the easiest way is to 
> use XML namespaces. Or just limit the structure of the XML enough. 

I was just going to say that the simple XML Parser doesn't support namespaces, 
but it turns out it does (to my surprise). So I'm going to have a stab at that 
during the weekend. I should probably mention already that I'm not an XML expert 
so I appreciate the suggestions.

  > I think that it's fine to use (X)HTML to format news items -- going to
> BBCode does not separate data and presentation, it just adds an extra 
> layer. Or why would [b]foo[/b] be more "separated" than <b>foo</b> ? :)

True, [b] and <b> doesn't mean anything without a context, point taken. :-)
No BBCode it is then, just need to polish the XML Parser some.

> If we are talking about the screenshots here, then I would recommend 
> using a small text file (XML or CSV), either one containing all images, 
> or one per image. Using filenames is not flexible enough.

Any preferences over XML/CSV? And I'd probably either make one big text file for 
all images, or possibly break it down per developer. Very open to 
comments/suggestions here.

> Once again, XHTML is just a variant of XML :). But I assume you mean you 
> want to distinguish non-XHTML elements from other elements. Well, that's 
> what XML namespaces are for, right? Or does the PHP4 XML not support 
> these? In that case, we could just as well specify a list of XHTML 
> elements allowed in the NEWS (we'd get such a restriction if we used 
> BBCode, too).
> 
> IMO, it makes no sense to add the extra layer of BBCode, when we already 
> use an XML parser. Why use two parsers for two different but similar 
> formats, if you can do it all with one format, and elegantly, too ?

As said above, I agree, going to look in the the namespaces part.

> See <http://www.scummvm.org/test.php>.
> 
> Overall I heard no critical comments about your plans. From my point of 
> view, we could go ahead with this project. Eugene seems to agree as 
> well. He'll mail in a moment, too :)

Great! Now I know exactly what functions I can, and can not use. And I see there 
is mod_rewrite support!



Eugene Sandulenko wrote:
 > Yep, great work so far, Fredrik. So what do you feel about us giving
 > you a SVN access, so you could keep your work as a branch there and
 > after the work is finished, turn the switch and replace the site?

And here I was hoping I'd get away with just adding a tarball to the 
patchtracker when I was done. ;-)

I haven't used SVN a lot but I'm eager to learn.


Regards,
Fredrik




More information about the Scummvm-devel mailing list