Re: [Planner Dev] XSLT wizard needed for mpp2planner translation
"Nguyen Thai Ngoc Duy" <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.planner.devel |
|---|---|
| Message-ID | <[email protected]> |
On Dec 27, 2007 7:37 AM, Kurt Maute <[email protected]> wrote: > On Sat, 2007-12-22 at 19:18 +0700, Nguyen Thai Ngoc Duy wrote: > > Hi, > > > > I'm working on an mpp importer for Planner. One problem I'm having now > > is the dumb exporter would give a flat list of tasks like this > > > > <task id="1" outline="0"/> > > <task id="4" outline="0"/> > > <task id="2" outline="1"/> > > <task id="3" outline="2"/> > > What are you using for the exporter? I made a simple exporter using libgsf, based on mpxj. > > > Tasks must be sorted first by id attribute. Outline attribute then > > will determine the task hierarchy. The final result should be > > > > <task id="1" outline="0"> > > <task id="2" outline="1"> > > <task id="3" outline="2"/> > > </task> > > </task> > > <task id="4" outline="0"/> > > > > Anyone know how to make a hierarchy from such flat list? I looked at > > msp2planner.xsl but it requires on WBS strings, which are not > > available in MPP9. > > msp2planner.xsl does this - yes, via the WBS string, but you should be > also able to do it in the same way with the id tag and the outline level > tag, right? Um.. substring() does not work with outline. It was more difficult to select correct node set. I finally gave up on xsl magic and put more code to the dumper to dump a task tree instead. > > -- > Kurt Maute <[email protected]> > > _______________________________________________ > Planner-dev mailing list > Planner-dev-EudK4HEIqU5hskbp8g+PcQC/[email protected] > http://lists.imendio.com/mailman/listinfo/planner-dev > -- Duy