infinite loop

Matthew L Daniel <[email protected]> Mon, 1 Aug 2005 00:20:30 -0400
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
I don't claim to be any less tired, but I am tried to make this post
more intelligent than my last. :-)

I build today's CVS to try out the external-graphic support. I have a
simple "hello, world" xhtml page that I transformed into xsl-fo using
the xhtml2fo.xsl from http://www.antennahouse.com. 

I understand there will be lots of warnings and errors about unsupported
properties and such, but in this case, xmlroff goes into an infinite
loop on the attached fo file. The last two lines in the attached log
repeat for as long as I let the program run.

I am going to craft an xml-fo "by hand" and see if I can produce a more
realistic test, but I figured you would want to know about this.

  -- /v\atthew
roff.log (text/plain, 1.8 KB)
(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: hyphenate

(process:21890): libfo-CRITICAL **: Expression evaluation error: Expression not completely evaluated: ':html'
Object path: /FoTree[1]/root[1]

(process:21890): libfo-WARNING **: Unsupported property: (null)

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: column-count

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: column-gap

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: extent

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: extent

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: extent

(process:21890): libfo-WARNING **: Warning: fo-result-to-fo-error-quark: Unsupported property: extent

(process:21890): libfo-CRITICAL **: fo_length_get_value: assertion `FO_IS_LENGTH (length) || FO_IS_LENGTH_RANGE (length) || FO_IS_LENGTH_COND (length) || FO_IS_SPACE (length)' failed

(process:21890): libfo-CRITICAL **: fo_length_get_value: assertion `FO_IS_LENGTH (length) || FO_IS_LENGTH_RANGE (length) || FO_IS_LENGTH_COND (length) || FO_IS_SPACE (length)' failed

(process:21890): libfo-CRITICAL **: Expression evaluation error: Expression not completely evaluated: ':body'
Object path: /FoTree[1]/root[1]/page-sequence[1]/flow[1]/FoBlockWhitespace[1]

(process:21890): libfo-WARNING **: Unsupported property: (null)

(process:21890): libfo-CRITICAL **: fo_area_area_split_before_height: assertion `max_height > 0' failed

(process:21890): libfo-CRITICAL **: fo_area_page_size_request:: Cannot split child:: page: FoAreaPage (0x85745b0 : 2); child: FoAreaViewportReference (0x8575a78 : 1)
mapping.fo (text/plain, 2.8 KB)
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:html="http://www.w3.org/1999/xhtml" writing-mode="lr-tb" hyphenate="false" text-align="start" role="html:html">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="all-pages" page-width="auto" page-height="auto">
      <fo:region-body margin-top="1in" margin-right="1in" margin-bottom="1in" margin-left="1in" column-count="1" column-gap="12pt"/>
      <fo:region-before region-name="page-header" extent="1in" display-align="before"/>
      <fo:region-after region-name="page-footer" extent="1in" display-align="after"/>
      <fo:region-start extent="1in"/>
      <fo:region-end extent="1in"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="all-pages">
    <fo:title>Untitled Document</fo:title>
    <fo:static-content flow-name="page-header">
      <fo:block space-before.conditionality="retain" space-before="0.5in" font-size="small" text-align="center">Untitled Document</fo:block>
    </fo:static-content>
    <fo:static-content flow-name="page-footer">
      <fo:block space-after.conditionality="retain" space-after="0.5in" font-size="small" text-align="center">- <fo:page-number/> -</fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block role="html:body">
        <fo:table-and-caption display-align="center">
          <fo:table border-collapse="separate" border-spacing="2px" border="1px" border-style="hidden" role="html:table">
            <fo:table-body start-indent="0pt" end-indent="0pt" text-indent="0pt" last-line-end-indent="0pt" text-align="start" text-align-last="relative">
              <fo:table-row role="html:tr">
                <fo:table-cell border="1px" padding="1px" role="html:td">
                  <fo:block>
                    <fo:inline role="html:span">
                        Hello World
                    </fo:inline>
                    <fo:block role="html:br"/>
                    <fo:inline role="html:span">
                    Bob Joe Fred
                    Reference Guide (ver. 1.0)
                    </fo:inline>
                  </fo:block>
                </fo:table-cell>
                <fo:table-cell border="1px" padding="1px" role="html:td">
                  <fo:block>
                    <fo:external-graphic src="url('ot_logo.gif')" content-width="250px" content-height="60px" role="html:img" display-align="after"/>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
        </fo:table-and-caption>
        <fo:block border="1px inset" space-before="0.67em" space-after="0.67em" role="html:hr" background-color="#ff8c00" height="14pt"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>