ok, let's see:
That would be better, although I think just the year would suffice. Sort of the Imperial survey year.
[/FONT]
Could be - but I'd just use the date per sector level I think, as above. I'm not big on attributes, but that could simply be inexperience with XML & XML processing.
[/FONT]
see above - it is easier to search elements for getting to a specific node; i.e., I use XPath to find the node I need and get everything at that level. You can do that with attributes versus elements, but seemed simpler/more efficient to use elements (again - there are entire non-Traveller holy wars on the entire attribute vs element thing). For my purposes in the initial development, elements made sense for where I was planning on going with this - the system name was the top-level node, so that I could get an entire node (and hence all the system data) in a single search via XPATH (well, except for the issue of identical names...)
[/FONT]
Probably so - I may change that if I ever get time/inclination to start that project up again.
[/FONT]
technically, yes. but I was planning on expanding out the starport (another stalled project - real life tends to be more fun for the most part!). My plans included how busy in terms of traffic, cargo, people, possibly merchant info, stuff like that. And I've a copy of Grand Census, where tech can vary on application, so the idea was that I may expand out the tech level as well, sort of like:
Permalink is for Joshua Bell's Traveller map - he's added significant new API links, so my plan is to replace that with the new one. The program, when parsing the file & loading the planet, had a button to load the map in your browser for that system if there was a permalink node (the beauty of optional XML stuff!)
Thanks for the suggestions - one of the reasons this stalled out was someone else was doing a system XML layout & I liked that one better. I'll probably use most of your suggestions if I get back to that program (which actually was in the middle of splitting out the XML handling into a class or namespace, so that I could re-use the same stuff for different things as well as add support for SEC files; then I realized I was essentially writing Heaven&Earth/Traveller Universe, and sort of stopped: they were switching to MS SQL-lite (or whatever MS calls their free SQL server) and started to think it would be significantly easier to use that as my backend, as this was a personal project. So I stalled...although there really should be some standardized data transport mechanism for subsectors: the SEC files, while good, are limited by virtue of being a fixed-width file. XML has the flexibility we need. So that's why I'm following this thread with interest, and threw out what I've done in the past for at least discussion points.
Exactly!
[/FONT]
[FONT=arial,helvetica][FONT=arial,helvetica]There should be an encapsulating top level element here that
somehow designates the universe, milieu (sp?). Something like
<milieu date="1105-001" id="canon">[/FONT]
That would be better, although I think just the year would suffice. Sort of the Imperial survey year.
[/FONT]
[FONT=arial,helvetica][FONT=arial,helvetica]date should be an attribute and attached to any element that
needs it, inheriting downward.[/FONT]
Could be - but I'd just use the date per sector level I think, as above. I'm not big on attributes, but that could simply be inexperience with XML & XML processing.
[/FONT]
[FONT=arial,helvetica][FONT=arial,helvetica]As a matter of design style, I would make information that can't
conceivably have sub-elements be an attribute, rather than
an element. At least in the general case. Thus,
<system name="Efate" location="1705">[/FONT]
see above - it is easier to search elements for getting to a specific node; i.e., I use XPath to find the node I need and get everything at that level. You can do that with attributes versus elements, but seemed simpler/more efficient to use elements (again - there are entire non-Traveller holy wars on the entire attribute vs element thing). For my purposes in the initial development, elements made sense for where I was planning on going with this - the system name was the top-level node, so that I could get an entire node (and hence all the system data) in a single search via XPATH (well, except for the issue of identical names...)
[/FONT]
[FONT=arial,helvetica][FONT=arial,helvetica]Shouldn't "Political" be "allegiance" for consistency. At that,
we need some sort of canonical list of allegiance codes. The two
character codes seemed to be running out of space. Actually,
now that I think about it, there should be a series of "Imperial
Standards" which spell out these sort of things. Thus,
"Imperial Standard 2137 - Three Character Allegiance Codes (IS-2137)".
Q.V. ISO-3166-1 http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3[/FONT]
Probably so - I may change that if I ever get time/inclination to start that project up again.
[/FONT]
[FONT=arial,helvetica][FONT=arial,helvetica]Isn't the UPP technically all of the three above? I would just
make it an attribute, probably a single one. At the point we
have to pick apart the upp to get at the specific individual numbers,
picking apart the string for the starport code and tech level isn't
really any more work.[/FONT]
technically, yes. but I was planning on expanding out the starport (another stalled project - real life tends to be more fun for the most part!). My plans included how busy in terms of traffic, cargo, people, possibly merchant info, stuff like that. And I've a copy of Grand Census, where tech can vary on application, so the idea was that I may expand out the tech level as well, sort of like:
Code:
<tech>A
<medical>B</medical>
<...>
</tech>
Thanks for the suggestions - one of the reasons this stalled out was someone else was doing a system XML layout & I liked that one better. I'll probably use most of your suggestions if I get back to that program (which actually was in the middle of splitting out the XML handling into a class or namespace, so that I could re-use the same stuff for different things as well as add support for SEC files; then I realized I was essentially writing Heaven&Earth/Traveller Universe, and sort of stopped: they were switching to MS SQL-lite (or whatever MS calls their free SQL server) and started to think it would be significantly easier to use that as my backend, as this was a personal project. So I stalled...although there really should be some standardized data transport mechanism for subsectors: the SEC files, while good, are limited by virtue of being a fixed-width file. XML has the flexibility we need. So that's why I'm following this thread with interest, and threw out what I've done in the past for at least discussion points.
[/FONT][FONT=arial,helvetica]See, this is exactly what I wanted![]()
One thing that putting a 'timeframe' into it would allow you to, for instance, watch the unfolding of the 5FW or the Imperial expansion as a kind of slideshow... which would be so awesome for us "history" fiends.
Exactly!
[/FONT]
Last edited: