when passing parameters all values are treated like strings i,e, xsltProcessor.parameters['days'] = 2; what gets passed to stylesheet is '2' instead of 2 its not a game changer but more something that should be noted.