Bug 28076 - last() in templates stops further evaluation
Summary: last() in templates stops further evaluation
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.20.5
Hardware: PC other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 07:02 UTC by juergen prinz
Modified: 2012-04-01 13:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description juergen prinz 2004-03-31 07:02:39 UTC
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.
Comment 1 juergen prinz 2004-03-31 07:41:23 UTC
Problem occurs only , when select contains elements as ../QName
e.g. select='../CRUISEALTITUDE|../CRUISESPEED|../CRUISEFUEL'
Comment 2 Chris Bowditch 2004-04-01 13:24:31 UTC
You have not provided enough information for me to either understand or re-
create your problem. Although it sounds like a problem with your XSLT 
stylesheet or your XSLT processor.

It is good etiquette to ask on the user mailing list before raising a bug. 
Please could you subscribe to the user list and explain your problem in more 
detail there, and we will attempt to point you in the right direction.
Comment 3 juergen prinz 2004-04-02 10:36:30 UTC
My first additions seem to be lost.
I didn't find anything related in the mailinglists.

The failure occurs, when the node-set defined in the select contains elements of
the preciding or sibling nodes, eg. select='../CRUISEALTITUDE|../CRUISESPEED'.
Even a xsl:value-of select='last()' will produce an abort in the template used.

xsl and xml documents  are correct. When processed via Xalan, the result is o.k.
Comment 4 Andreas L. Delmelle 2007-02-08 10:33:13 UTC
Bugzilla cleanup:
Not a FOP bug (until proven otherwise)
Comment 5 Glenn Adams 2012-04-01 13:54:08 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs