Lastly, those criteria for which search values have already been entered need to be
displayed in the input fields on the page. Again, the references to the timeto and
timefrom strings in the final foreach statement are a workaround for the
abovementioned problem with defining timespans. A better XML document design
would/will remove the need for this.
Fig. 7: The end result of the smart form query across three shops for a Compaq laptop
costing less than 2,500.
4.2.3.1 Note: Autonomous XML sources
Keeping track of every shop`s inventory is beyond the Golden Page`s remit for a number
of reasons. Firstly, there is a question of liability: if a shop`s inventory claims to have a
certain product at a certain price when in fact the price is much higher, thereby prompting
a user complaint, it is hardly fair to blame the middle man. Secondly, a centrally stored
inventory database potentially means much less flexibility for business owners who
might wish to constantly update stock figures via their own database every time a
45