reorganizing architecture

splitting xslt to two phases
1. do check and parse to temporary document which is used later
2. using templates to transform temporary document into html and
furthermore to docbook