I have some XML that breaks axpoint with this error message:

  Can't call method "get_text_pos" on an undefined value at 
/usr/local/perl-5.8.0-threads/lib/site_perl/5.8.0/XML/Handler/AxPoint.pm line 1551.

The XML contains nested <point> elements:

  <?xml version="1.0"?>
  <slideshow>
    <title>NAME</title>
    <metadata>
      <speaker>Foo</speaker>
      <email>foo@bar</email>
    </metadata>
    <slide>
      <title>DESCRIPTION</title>
      <point>panic: do_trans 
        <point>(P) The internal do_trans() routine was called with
        invalid operational data.
        </point>
      </point>
    </slide>
  </slideshow>

If I remove the inner <point>, then axpoint converts to PDF fine. I'm
not sure if nested <point> elements are allowed. If not, then
pod2axpoint.xsl from Pod-SAX-0.11 is probably to blame?

The POD I tried to convert was perldiag.pod and Pod::SAX converted the
above paragraph to (modulo formatting):

  <listitem>panic: do_trans
    <para>(P) The internal do_trans() routine was called with invalid operational data.
    </para>
  </listitem>

So where's the bug?

Thanks,
-- 
andreas

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

Reply via email to