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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14527

table text generation





------- Additional Comments From [EMAIL PROTECTED]  2002-11-13 21:18 -------
XML FILE:
<ad_usage rep_date="Wed Nov 13 2002">
        <NOTAM ad_code="lbsr">
                <NOTAM_entry notam="LB A  19/02"/>
                <NOTAM_entry notam="LB A  19/02"/>
                <NOTAM_entry notam="LB A  74/01"/>
                <NOTAM_entry notam="LB A 102/02"/>
                <NOTAM_entry notam="LB A 196/02"/>
                <NOTAM_entry notam="LB A 310/02"/>
                <NOTAM_entry notam="LB A 314/02"/>
                <NOTAM_entry notam="LB A 317/02"/>
                <NOTAM_entry notam="LB A 330/02"/>
                <NOTAM_entry notam="LB A 337/02"/>
                <NOTAM_entry notam="LB A 339/02"/>
                <NOTAM_entry notam="LB A 352/02"/>
                <NOTAM_entry notam="LB A 355/02"/>
                <NOTAM_entry notam="LB A 358/02"/>
                <NOTAM_entry notam="LB A 359/02"/>
                <NOTAM_entry notam="LB A 360/02"/>
                <NOTAM_entry notam="LB A 363/02"/>
                <NOTAM_entry notam="LB A 364/02"/>
                <NOTAM_entry notam="LB A 365/02"/>
                <NOTAM_entry notam="LB A 367/02"/>
                <NOTAM_entry notam="LB A 368/02"/>
                <NOTAM_entry notam="LB A 369/02"/>
                <NOTAM_entry notam="LB A 370/02"/>
                <NOTAM_entry notam="LB A 371/02"/>
                <NOTAM_entry notam="LB A 372/02"/>
                <NOTAM_entry notam="LB A 373/02"/>
                <NOTAM_entry notam="LB A 375/02"/>
                <NOTAM_entry notam="LB A 377/02"/>
        </NOTAM>
</ad_usage>





XSL File:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                              xmlns="http://www.w3.org/TR/xhtml1/strict";
                              xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<!--

ad_usage.xsl
$Id: $

$Log: $

-->

<xsl:template match="ad_usage">
<fo:root> 
  <fo:layout-master-set>
    <fo:simple-page-master
        margin-right="1.5cm"
        margin-left="1.5cm"
        margin-bottom="2cm"
        margin-top="2cm"
        page-width="5in"
        page-height="8in"
        master-name="first">
      <fo:region-before extent="2cm"/>
      <fo:region-body margin-top="2cm" margin-bottom="2cm"/>
      <fo:region-after extent="2cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-reference="first">

    <!-- Page Header -->
    <fo:static-content flow-name="xsl-region-before">
      <fo:block line-height="12pt" font-size="8pt" text-align="right">
          DATE: <xsl:value-of select="@rep_date"/>
      </fo:block>
    </fo:static-content>

    <!-- Page Footer -->
    <fo:static-content flow-name="xsl-region-after">
      <fo:table border-collapse="separate" vertical-align="top" width="100%">
        <fo:table-column/>
        <fo:table-column/>
        <fo:table-column/>
    <fo:table-body>
        <fo:table-row>
           <fo:table-cell>
              <fo:block line-height="12pt" font-size="8pt" text-align="left">
                Page <fo:page-number/>
              </fo:block>
           </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
      </fo:table>
    </fo:static-content>

    <fo:flow flow-name="xsl-region-body">
    <xsl:apply-templates select="NOTAM"/> 
    </fo:flow>
  </fo:page-sequence>
</fo:root>
</xsl:template>

<xsl:template match="NOTAM">
    <fo:table border-collapse="collapse" vertical-align="top" width="100%">
    <fo:table-column width="150pt"/>
    <fo:table-column width="150pt"/>
    <fo:table-column width="150pt"/>
    <fo:table-body border-color="black" border-style="solid" border-width="1pt" 
padding="0.5cm">
        <fo:table-row>
                <fo:table-cell number-columns-spanned="2"><fo:block>NOTAM 
refering to aerodrome:</fo:block></fo:table-cell>
                <fo:table-cell><fo:block><xsl:value-of 
select="@ad_code"/></fo:block></fo:table-cell>
        </fo:table-row>
        <fo:table-row>
                <fo:table-cell><fo:block></fo:block></fo:table-cell>
                <fo:table-cell><fo:block>Notam Id</fo:block></fo:table-cell>
                <fo:table-cell><fo:block></fo:block></fo:table-cell>
        </fo:table-row>
<xsl:apply-templates select="NOTAM_entry"/>
    </fo:table-body>
    </fo:table>
</xsl:template>

<xsl:template match="NOTAM_entry">
            <fo:table-row>
                <fo:table-cell><fo:block></fo:block></fo:table-cell> 
                <fo:table-cell><fo:block><xsl:value-of 
select="@notam"/></fo:block></fo:table-cell> 
                <fo:table-cell><fo:block></fo:block></fo:table-cell> 
            </fo:table-row>
</xsl:template>

</xsl:stylesheet>



Java Trace:
[DEBUG] Input mode: 
[DEBUG] FO 
[DEBUG] fo input file: xslt.out
[DEBUG] Output mode: 
[DEBUG] txt
[DEBUG] output file: rml.txt
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
[DEBUG] base directory: file:/home/rlacasse/cvs/ais/perlmods/
[INFO] FOP 0.20.4rc
[DEBUG] Using org.apache.crimson.parser.XMLReaderImpl as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] rendering areas to TEXT
[INFO] [1]
[WARNING] table-layout=auto is not supported, using fixed!
[WARNING] table-layout=auto is not supported, using fixed!
[ERROR] java.lang.ArrayIndexOutOfBoundsException
org.apache.fop.apps.FOPException: java.lang.ArrayIndexOutOfBoundsException
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

---------

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

---------

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.fop.render.txt.TXTRenderer.addStr(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.addRect(Unknown Source)
        at org.apache.fop.render.PrintRenderer.addFilledRect(Unknown Source)
        at org.apache.fop.render.PrintRenderer.doFrame(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.AreaContainer.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.AreaContainer.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.ColumnArea.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
        at org.apache.fop.layout.SpanArea.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer
(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.renderPage(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.render(Unknown Source)
        at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
        at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
        at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
        at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
        at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

---------

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

---------

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.fop.render.txt.TXTRenderer.addStr(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.addRect(Unknown Source)
        at org.apache.fop.render.PrintRenderer.addFilledRect(Unknown Source)
        at org.apache.fop.render.PrintRenderer.doFrame(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.AreaContainer.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.AreaContainer.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown 
Source)
        at org.apache.fop.layout.ColumnArea.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
        at org.apache.fop.layout.SpanArea.render(Unknown Source)
        at org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer
(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.renderPage(Unknown Source)
        at org.apache.fop.render.txt.TXTRenderer.render(Unknown Source)
        at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
        at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
        at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
        at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
        at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1528)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
        at org.apache.fop.apps.Driver.render(Unknown Source)
        at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
        at org.apache.fop.apps.Fop.main(Unknown Source)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to