ported static wapcaplet to parser and stylesheet