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.

DOTX060W is fired when using correct glossary entry reference

See original GitHub issue

Expected Behavior

No warning should be fired, because the DITA code should be correct.

bookmap.ditamap

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
  <booktitle>
    <mainbooktitle>test</mainbooktitle>
  </booktitle>
  <chapter href="chapter.dita"/>
  <backmatter>
    <mapref href="glossary.ditamap"/>
  </backmatter>
</bookmap>

glossary.ditamap

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
  <title>Glossary</title>
  <glossref keys="GLS_Test" href="GLS_Test.dita"/>
</map>

GLS_Test.dita

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd">
<glossentry id="GLS_Test">
  <glossterm>Test</glossterm>
  <glossdef>This is just a test.</glossdef>
  <glossBody>
    <glossSurfaceForm>Test (T)</glossSurfaceForm>
    <glossAlt>
      <glossAcronym>T</glossAcronym>
    </glossAlt>
  </glossBody>
</glossentry>

chapter.dita

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="chapter">
  <title>test</title>
  <body>
    <p><abbreviated-form keyref="GLS_Test"/></p>
  </body>
</topic>

Actual Behavior

Warning is fired

Possible Solution

Debug/refactor glossary processing

Steps to Reproduce

  1. Download and extract ZIP archive.
  2. Call dita --input bookmap.ditamap --format pdf2 -v.

abbreviation-test.zip

Copy of the error message, log file or stack trace

transform.topic2fo.main:
     ...
     [xslt] file:/C:/Users/eike/Desktop/abbreviation-test/chapter.dita:6:49: [DOTX060W][WARN]: Key 'GLS_Test' was used in an abbreviated-form element, but the key is not associated with a glossary entry. Abbreviated-form should ONLY be used to reference to a glossary entry.

Environment

  • DITA-OT version: 2.5.3
  • Operating system and version: Windows 7
  • How did you run DITA-OT? dita cmd
  • Transformation type: pdf2

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
lief-ericksoncommented, Sep 8, 2019

I ran into this issue yesterday with OT version 3.3.3.

0reactions
gershon-pcascommented, Jun 8, 2022

This issue still persists in version 3.7.1. I changed the code in file dita-ot-3.7.1/plugins/org.dita.pdf2/xsl/fo/abbrev-domain.xsl as suggested by simtind above and it fixed the problem. Please can you fix this in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Glossary of Common Site Terms - ClinicalTrials.gov
Whether the clinical study ended according to the protocol or was terminated does not affect this date. For clinical studies with more than...
Read more >
Glossary of Legal Terms | United States Courts
A term used to describe evidence that may be considered by a jury or judge in civil and criminal cases. Adversary proceeding. A...
Read more >
Glossary : U.S. Bureau of Labor Statistics
Note: This term is used to describe a policy that pays additional benefits to the beneficiary in these cases. (The National Compensation Survey...
Read more >
Glossary of Legal Terminology - English to Spanish
Dismissed from the Record Queda borrado/tachado del acta/de las actas. District Attorney Fiscal, fiscal de distrito, fiscal público. Page 12. Disorderly Conduct ......
Read more >
Part 2 - Definitions of Words and Terms | Acquisition.GOV
(2) Provides cross-references to other definitions in the FAR of the same ... Acquisition means the acquiring by contract with appropriated ...
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