Commit c5412a20 authored by Maurice van der Pot's avatar Maurice van der Pot Committed by Maurice van der Pot

Now using OutlineNumber instead of WBS when importing MS project XML,

2008-01-23  Maurice van der Pot  <griffon26@kfk4ever.com>

  * data/stylesheets/msp2planner.xsl: Now using OutlineNumber instead of WBS
    when importing MS project XML, fixing bug #373008.


svn path=/trunk/; revision=873
parent 1309a837
2008-01-23 Maurice van der Pot <griffon26@kfk4ever.com>
* data/stylesheets/msp2planner.xsl: Now using OutlineNumber instead of WBS
when importing MS project XML, fixing bug #373008.
2008-01-13 Maurice van der Pot <griffon26@kfk4ever.com>
* data/stylesheets/html1_tasks.xsl: fix calculation of task costs in
......
......@@ -85,7 +85,7 @@
<xsl:call-template name="write-task"/>
<xsl:if test="ms:OutlineLevel &lt; following::ms:Task/ms:OutlineLevel">
<xsl:call-template name="task">
<xsl:with-param name="wbs" select="ms:WBS"/>
<xsl:with-param name="wbs" select="ms:OutlineNumber"/>
<xsl:with-param name="lvl" select="ms:OutlineLevel+1"/>
</xsl:call-template>
</xsl:if>
......@@ -100,13 +100,13 @@
<xsl:template name="task">
<xsl:param name="wbs"/>
<xsl:param name="lvl"/>
<xsl:for-each select="//ms:Tasks/ms:Task[starts-with(ms:WBS,$wbs)][ms:OutlineLevel=$lvl]">
<xsl:for-each select="//ms:Tasks/ms:Task[starts-with(ms:OutlineNumber,$wbs)][ms:OutlineLevel=$lvl]">
<task>
<xsl:call-template name="write-task"/>
<!-- recursion implemented here: -->
<xsl:if test="ms:OutlineLevel &lt; following::ms:Task/ms:OutlineLevel">
<xsl:call-template name="task">
<xsl:with-param name="wbs" select="ms:WBS"/>
<xsl:with-param name="wbs" select="ms:OutlineNumber"/>
<xsl:with-param name="lvl" select="ms:OutlineLevel+1"/>
</xsl:call-template>
</xsl:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment