Daniel Lepage on Sat, 24 Jul 2004 22:17:16 -0500 (CDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [spoon-discuss] Re: [Spoon-business] Renumbering CFIs



On Jul 24, 2004, at 8.56 PM, Mark Karasek wrote:

On Sat, 24 Jul 2004 20:37:34 -0400, Glotmorf <dwhytock@xxxxxxxxxxxxx> wrote:

Well...if game object databases could be called up in, say,
XML format, a script could treat a given website like a remote
database, at least for reading...so different lists of game
objects could be on different sites accessible by different
scripts.

Though I'll grant you that I'm not up on XML, so this may well
be going outside the definition of "relatively simple
scripts"...Anyone nerdier than I am who can answer more
completely?

That should be pretty feasible. I haven't used XML much myself, but I know Perl has a plethora of modules that handle XML parsing. I'm not sure about Python (which the wiki uses), but I'd imagine it has some way of parsing XML without too much difficulty as well. We'd need to come up with a standard format for the object databases... anyone out there have some XML experience?

Python does indeed have a few different XML modules. I don't know all that much about XML, but apparently it's really easy to use, and in fact many of the early B Nomic proosals were essentially done in it. An XML proposal might appear something like this:

<proposal id="1899" rev="4">
<type>Standard Proposal</type>
<author>Wonko</author>
<birthdate>
	<nweek>66</nweek>
	<nday>4</nday>
</birthdate>
<title> Forclosing Game </title>
<body>
Remove all copies of Enclosing Game from the Deck, and destroy the card definition
</body>
</proposal>

And that would be it. To truly be valid and well-formed XML, I think it'd need a bit of header info, noting which xml specification it adhered to, which character set it used, what DTD it fits in, etc.

We wouldn't actually want to have to submit things like the <birthdate> stuff ourselves; presumably whoever ran the generator script would add such things as appropriate.

--
Wonko

"If I ask you to pay attention to the weight of your body pressing on your buttocks as you set reading, you will momentarily stop reading."
	-David G. Myers, _Psychology: Myers in Modules_

_______________________________________________
spoon-discuss mailing list
spoon-discuss@xxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/spoon-discuss