question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDF multi-group table publishing fails

See original GitHub issue

Expected Behavior

Each tgroup must be rendered correctly.

image

Actual Behavior

When the first tgroup has cols greater than then next one, the publishing fails. However, if you switch the two it publishes fine.

Possible Solution

Steps to Reproduce

Sample Topic:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_id">
    <title></title>
    <body>
        <table frame="all" rowsep="1" colsep="1" id="table_id_1">
            <title/>
            <tgroup cols="2">
                <colspec colname="c1" colnum="1" colwidth="1*"/>
                <colspec colname="c2" colnum="2" colwidth="1*"/>
                <tbody>
                    <row>
                        <entry>A</entry>
                        <entry>B</entry>
                    </row>
                </tbody>
            </tgroup>
            <tgroup cols="3">
                <colspec colname="c1" colnum="1" colwidth="1*"/>
                <colspec colname="c2" colnum="2" colwidth="1*"/>
                <colspec colname="c3" colnum="3" colwidth="1*"/>
                <tbody>
                    <row>
                        <entry>A</entry>
                        <entry>B</entry>
                        <entry>C</entry>
                    </row>
                </tbody>
            </tgroup>
        </table>
    </body>
</topic>

sample.zip

  1. Running it in with pdf format should give you the error.

Copy of the error message, log file or stack trace

Error: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

Environment

  • DITA-OT version: DITA-OT 3.5.2
  • Operating system and version: (Windows)
  • How did you run DITA-OT? (dita command)
  • Transformation type: (PDF)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raducoravucommented, Sep 4, 2020

@nikkujr thanks for confirming this, the problem seems to have been added in 3.5.2.

0reactions
jelovirtcommented, Sep 7, 2020

I’ll try to see if a fix is feasible for 3.5.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multigroup Analysis using SmartPLS: Step-by-Step Guidelines ...
We provide step-by-step guidelines to perform MGA using SmartPLS 3.3.2, including the assessment of measurement invariance using the measurement ...
Read more >
[PDF] Longitudinal and multi-group modeling with missing data
Missing data are almost always a problem in longitudinal research. Item non-response, differential attrition, failure to obtain measurements at equal time ...
Read more >
A Multigroup Structural Equation Approach - Mplus
In this article, we address this problem by defining and estimating suitable measures of between- group variation for the multigroup approach ...
Read more >
A Primer to (Cross-Cultural) Multi-Group Invariance Testing ...
Multi-group confirmatory factor analysis (CFA) and DIF analysis with ... The root mean square error of approximation (RMSEA; Browne and ...
Read more >
MULTIGROUP DATA PROCESSING FOR THE EMBEDDED ...
ESSM is that the processing of the multigroup cross section library is ... The United States Government retains and the publisher, by accepting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found