Modelling and authoring hypermedia documents