2012-02-09 35 views
0

分组结果我有传回了大量的重复项目的XSLT转换,如下所示: enter image description here重复行显示为的Muenchian在XSLT

Example report的剪断后,第二类在底部显示出来

这是它应该是这样的: Proper report example

本报告的结构方式是:

 
Project 
    > Phases (formatted with light grey background) 
    > Categories (if any, formatted with light blue background) 
     > Deliverables (formatted with white background) 
     > Sub-deliverables 

层次结构起作用,但这只是太多。我不确定现阶段发生了什么事。我在XSLT 1.0中使用Muenchian方法。

回答

0

只有看起来奇怪的是这条线:

<xsl:apply-templates select="//Row[generate-id() = generate-id(key('Project-Phases', concat(ProjectNo, '|', Phase))[1][ProjectNo=current()/ProjectNo])]" mode="phase"/> 

[ProjectNo=current()/ProjectNo]部分不应该附加到关键。它应该在最后的]之后移动。