> > Can you please explain the XML structures format? I would definitely > > prefer to keep it as XML as possible. > > I thought so :) > > I'm a little bit rusty, but here goes... > The DTD says: > > <!ELEMENT useparameters (name, longname, description?, typefield, typeframe?) > > > <!-- > useparameters/typefield and useparameters/typeframe > are used to describe how to get parameter ids from > an "indirect" frame; lack of typeframe means that the > parameter is embedded directly and no extra frame is > necessary. > --> > <!ATTLIST useparameters ref IDREF #REQUIRED > > <!ELEMENT typefield (#PCDATA) > > <!ELEMENT typeframe ((getfield | getlist)) > > <!ATTLIST typeframe name IDREF #REQUIRED idfield CDATA #REQUIRED > > <!ELEMENT getfield ((getfield | getlist)?) > > <!ATTLIST getfield name CDATA #REQUIRED > > <!ELEMENT getlist ((getfield | getlist)?) > > <!ATTLIST getlist name CDATA #REQUIRED > > > I added two subelements to useparameters: typefield (mandatory) and > typeframe (optional). The presence of typeframe element determines if the > parameter's data can be extracted directly from the frame or another frame > is needed.
In TP04 only indirect descriptions are used, both Orders and Objects are described by a related Description frame. So the only case that typeframe is option is in the TP03 objects? As TP03 is going away "real soon(tm)" why not just ignore this case? As there are no servers which are in "production use", there seems little reason to support TP03 and TP04 in a client library. <snip tp03 specific description of useparameters> > > If the parameters are "indirect", that is the parameter descriptions are > contained in another frame, the useparameters element must describe how to > get the actual parameter ID. The field pointed to by typefield element > contains the parameter description ID. The getfield and getlist elements > describe the frame traversal: Once we have removed the tp03 specific stuff, can this be made simpler? <snip> Tim 'Mithro' Ansell _______________________________________________ tp-devel mailing list [email protected] http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel
