xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Suppress identical column data
Date Thu, 03 Apr 2008 07:08:42 GMT
You have to do things like that in XSLT. Something like

<xsl:if test="@regnum != preceding-sibling::*/@regnum">
  <fo:block><xsl:value-of select="@regnum"/></fo:block>
</xsl:if>

(really depends on what your XML looks like)

HTH

On 02.04.2008 09:36:33 adupper wrote:
> 
> Is there a function or workaround to do the following?
> 
> I create a report, eg a list of vehicle usage:
> 
> Reg Num  Date         Distance
> ABC123   20080101   100km
> ABC123   20080102   24km
> DEF234   20080101   56km
> 
> When there are multiple rows for the same reg num, I only want it to display
> the first occurrence and then again at the top of each new page.
> I am currently doing it manually, but then the data won't print after a page
> break.
> 
> Reg Num  Date         Distance
> ABC123   20080101   100km
>              20080102   24km
> DEF234   20080101   56km
> 
> Any help would be greatly appreciated.
> -- 
> View this message in context: http://www.nabble.com/Suppress-identical-column-data-tp16443987p16443987.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message