cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: Cocoon 2.0.4, Tomcat 4.1.18, Java 1.4, and <xsl:for-each ...
Date Thu, 26 Dec 2002 12:47:39 GMT
If it is not a XSLT problem in general, but only a problem with this 
expression, it is most probably a bug in Xalan or XSLTC (I don't know 
what's your default.). Try to reformulate the expression, e.g. in one of 
the following ways:

<xsl:for-each select="tr[position() != 1][position() != last()]">

<xsl:for-each select="tr[position() > 1][position() &lt; last()]">

<xsl:for-each select="tr">
   <xsl:if test="position() != 1 and position() != last()">
     but different context positions inside!!

<xsl:for-each select="tr[preceding-sibling::tr and following-sibling::tr]">

<xsl:for-each select="tr[preceding-sibling::tr][following-sibling::tr]">

and so on.

Is there any hint in the logs?



Jonathan Lancelle wrote:
> Well, after being happy with a stable installation, I just had to go for 
> it and install the latest stuff.
> On a linux system I currently have Cocoon 2.0.4, Tomcat 4.1.18, and Java 
> 1.4 working happily together...speed better than the Resin servlet 
> environment I was using...and getting it going in a record time of 10 
> minutes!
> It works great...except for one bizzare thing. When transforming using 
> the included xerces/xalan jar files I have been defeated by the simple
>    <xsl:for-each select="tr[position()>1 and position()!=last()]"> 
> ...</xsl:for-each>
> structure. It doesn't work. The system simply hangs when encountering 
> this structure, returning nothing. The browser loads and loads until 
> timeout time.
> What happened? Is the xercesImpl-2.0.0.jar included with Cocoon 2.0.4 
> broken? Or is there a broken Xerces/xalan jar associated with Java 1.4 
> getting in the way? Should I backtrack to the Java 1.3 installation 
> environment for now? (will probably do...)
> happy seasonal winter celebrations.
> jkl

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message