This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Well-formed


Does output have to be well-formed as it appears in the xsl stylesheet, or just the way that it will appear in the resulting output document.

For example, I got the following error :-
XSLT: The element type "fo:table-body" must be terminated by the matching end-tag "</fo:table-body>".

for the following (which was part of a xsl stylesheet and was intended to create a new table for every 10 vehicles) :-


<xsl:for-each select="carDetails">

   <xsl:choose>
     <xsl:when test="position()=1 or position() mod 10 = 1">
     .......
     <fo:table overflow="scroll">
          <fo:table-column column-number="1" column-width="6pt"/>
                      etc.
     <fo:table-body font-size="10pt" >
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>   </xsl:choose>

     <fo:table-row .. OUTPUT DETAILS INTO THE TABLE
      etc
      etc

  <xsl:choose>
    <xsl:when test="position() mod 10 = 0 or position()=last()">
     </fo:table-body>
     </fo:table>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
  </xsl:choose>

</xsl:for-each>

Thanks in advance.
                    Regards
                       Paul
 

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]