xslt - EXSLT date:difference "bug" when changing month -
i'm experiencing problems when using default date:difference exslt template, provided @ http://www.exslt.org/date/functions/difference/index.html. i've been able narrow down problem , find source: xsl processor. problem is, xslt processor have access saying, difference between dates "2011-02-28t10:00:00" , "2011-03-01t10:00:00" -p27dt9h, when difference pt15h (this duration other xslt processors, such xalan , saxon calculates correctly - tested through oxygen xml editor).
now, there way edit xsl template (date:difference) work xsl processor? think processor i'm using jaxp 1.3 - it's little hard figure out sap mii 12.1 documentation available.
nb: not possible install xslt processor :)
edit: further research has shown, "under hood", jaxp running xalan (system-property('xsl:vendor') returns "apache software foundation (xalan xsltc)")
edit: source of problem has been identified (!), can't acceptable solution. date:difference template uses "document('')/*/..." data-set locally xsl-document. "document('')" trick won't work processor. i've tried adding local data-set variable , creating node-set using exslt:node-set(), i'm running dtm-problems, , adding method reduces amount of data can handle more :(
let's 1 closed, fun :) solution put "structure" variable , use exslt:node-set make node set. eats lot of resources, that's when using limited (and old!) system..
Comments
Post a Comment