You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2004/03/31 09:02:39 UTC

DO NOT REPLY [Bug 28076] New: - last() in templates stops further evaluation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28076>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28076

last() in templates stops further evaluation

           Summary: last() in templates stops further evaluation
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: juergen.prinz@avitech-ag.com


The call
When using fop with xml and xsl as input

<xsl:apply-templates  select='CRUISEALTITUDE|CRUISESPEED|CRUISEFUEL'/>

to

<xsl:template match='node()' >
      <xsl:value-of select="normalize-space(string())"/>
      <xsl:if test="not(position()=last())"> / </xsl:if>
      <!-- further evaluation -->
</xsl:template>

will produce only the first content and the '/'. No 'further evaluation'
Problem occurs when using last(). 

Xalan e.g. renders a correct result. which may be renderd via fop.