On Sun, 26 Aug 2007, Krzysztof Sobolewski wrote:
> Lee Begg pisze:
> > I used to validate the xml documents, I wonder when all these errors
> > snuck in...
>
> There's always git history... ;)
>
> I found another one (attached) and I'm puzzled why this wasn't caught by
> DTD validation...

Integer doesn't require a long name (for whatever reason).

Patches applied.

> I also have some questions about the structure of this file.
>
> - What's the purpose of [XPath follows] //structure/*/subtype (empty)
> element?

subtype is used to make an integer take the value of the subtype of this frame 
type. They are used for the header (the frame type), objects (object type) 
and orders (order types). The last two relate to the parametersets below.

> - What's the purpose (and meaning) of /protocol/parameterset 
> elements?

Parameterset is used to group all the parameters which can appear as 
parameters to a frame type. There are currently two sets, one for objects, 
and one for orders.

For example:
The Build Fleet order in Minisec has two parameters, a list parameter for the 
ships to build, and a string parameter for the fleet name.

> - And what's the purpose of //structure/useparameters and 
> //structure/descparameter elements?

Description frames (ie orderdesc and objectdesc (in TP04 only)) are used to 
set the parameters to use in the main frames (ie order and object). 

useparameter element is used to put the usestruct/structure in for each 
parameter.

descparameter is used to put the descstruct/structure for a single parameter. 
(the parameter type is before the descparameter).

> Thanks :)
> -KS

Later
Lee

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to