|
Hello, I couldn't find address to this list since project name and site have changed, so I've been exchanging email with Mikael who suggested to post the changes I made to HTML export here. I'm forwarding our email below. Regards to all, Ryszard Klos -------- Original Message --------
Today I've spent some time trying to meke HTML export work for me. I've just done it, so I'm writing what changes I had to make - just change few minus signs. In 'mrproject2html.xsl' I've switched minus from first select to second. <!-- Determine project length in seconds --> <xsl:variable name="projlength"> <xsl:for-each select="//project//task"> <xsl:sort data-type="number" select=(had '-' before) "date:seconds(date:add (date:date (concat (substring (@end, 1, 4), '-', substring (@end, 5, 2), '-', substring (@end, 7, 2))), date:duration ((3600 * substring (@end, 10, 2))+ (60 * substring (@end, 12, 2))+ substring (@end, 14, 2))))" order="descending"/> <xsl:if test="position()=1"> <xsl:copy-of select=(it was no '-' sign) "-(date:seconds ($projstart) - date:seconds ( date:add (date:date (concat (substring (@end, 1, 4), '-', substring (@end, 5, 2), '-', substring (@end, 7, 2))), date:duration ((3600 * substring (@end, 10, 2))+ (60 * substring (@end, 12, 2))+ substring (@end, 14, 2)))))"/> </xsl:if> </xsl:for-each> </xsl:variable> And in 'html1_gantt.xsl' my line <xsl:variable name="ttoday" select="$s2px * (date:seconds() + $sprojstart)"/> old <xsl:variable name="ttoday" select="$s2px * -(date:seconds() - $sprojstart)"/> and my <xsl:variable name="tstart" select="floor ($s2px * (date:seconds ($taskstart) + $sprojstart))"/> <xsl:variable name="tend" select="floor ($s2px * (date:seconds ($taskend) + $sprojstart))"/> old <xsl:variable name="tstart" select="floor ($s2px * (-date:seconds ($taskstart) - $sprojstart))"/> <xsl:variable name="tend" select="floor ($s2px * (-date:seconds ($taskend) - $sprojstart))"/> what looks betterfor me, when I'm adding time to project start date to get task start date. Sincerely, Ryszard Klos micke imendio com wrote: mån 2003-11-17 klockan 02.01 skrev Ryszard Klos: |