speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
300 stars 36 forks source link

HTML tables broken #73

Closed pgundlach closed 8 years ago

pgundlach commented 8 years ago

With 3.5.58

<Layout xmlns="urn:speedata.de:2009/publisher/en"
  xmlns:sd="urn:speedata:2009/publisher/functions/en">

  <Options show-grid="yes" ignoreeol="yes"/>
  <Pageformat width="8cm" height="6cm"/>

  <Record element="data">
    <Output allocate="auto">
      <Text>
        <Paragraph>
          <Value select="sd:decode-html(string(.))"/>
        </Paragraph>
      </Text>
    </Output>
    <NextRow rows="3"/>
    <PlaceObject allocate="auto">
      <Textblock>
        <Paragraph>
          <Value select="sd:decode-html(string(.))"/>
        </Paragraph>
      </Textblock>
    </PlaceObject>
  </Record>
</Layout>

and

<data><![CDATA[
<p>foo</p>
<table>
    <tbody>
        <tr>
            <td><p><b>One</b></p></td>
            <td><p>Two</p></td>
        </tr>
        <tr>
            <td><p><b>One</b></p></td>
            <td><p>Two</p></td>
        </tr>
    </tbody>
</table>
<p>bar</p>
]]>
</data>

gives

htmltable

Which is not what I'd expect...

pgundlach commented 8 years ago

I close this for now, as the current situation is much better than before.