xsl-list
[Top] [All Lists]

Re: convert large array to several smaller arrays containing max N elements

2003-11-11 15:35:55
David Everly wrote:
The problem is, with the following, I get validation errors:

Nitpick: this is a "well-formed" error, IOW the style sheet is
not well formed XML:

      <xsl:if test="position() mod 2 = '0'">
         </topgroup>

This closes a "topgroup" element without any open element
of this type. Yeah, the error message could be a bit more
intelligent (complain to the Xalan-C maintainers).

Just do it right:
  <xsl:if test="position() mod 2 = '0'">
     <topgroup>
     </topgroup>
  </xsl:if>

J.Pietschmann


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list