From: Matthew B. <mat...@co...> - 2005-05-13 08:57:28
|
Alexis O'Connor wrote: > Adam Marshall wrote: [.. snipped ..] > Matthew has some cunning ideas regarding converting tags of the > following form to new style: > <building command=YYYYY variable=XXXXX> > > ... so, I'll let him explain when he gets the chance(!) Ok I'll take the bait.... At the moment to convert an old style call to a new one you change: <building command=YYYYY variable=XXXXX> to: <call><target method="insert"><variable name="facility"/></target> <parameters> <variable name="request"/> <variable name="writer"/> <literal type="String">YYYYY</literal> <literal type="String">XXXXX</literal> </parameters> </call> Which is much large and harder to read. Why don't we add support to the XML templates for the <building/> tag so that we can just change from: <building command=YYYYY variable=XXXXX> to: <building command="YYYYY" variable="XXXXX"/> This should ease the transition and should work in most cases. There are some places where it won't be as simple as adding a training slash and quotes. <h1 color=<building command=color>> Which can't be converted to an XML template without a litte more thought. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |