planner r873 - in trunk: . data/stylesheets



Author: mvdpot
Date: Wed Jan 23 20:49:16 2008
New Revision: 873
URL: http://svn.gnome.org/viewvc/planner?rev=873&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/data/stylesheets/msp2planner.xsl

Modified: trunk/data/stylesheets/msp2planner.xsl
==============================================================================
--- trunk/data/stylesheets/msp2planner.xsl	(original)
+++ trunk/data/stylesheets/msp2planner.xsl	Wed Jan 23 20:49:16 2008
@@ -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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]