Topics

Odd results with glossary elements and PDF generation #PDF #glossary

Dan Vint
 

I've been following the instructions for using the glossary elements

This all works perfectly for HTML output. When I produce the associated PDF file though it fails. In the OT log I'm getting 

   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29: [DOTJ047I][INFO] Unable to find key definition for key reference "gAdapter" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33: [DOTJ047I][INFO] Unable to find key definition for key reference "gCertificate" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32: [DOTJ047I][INFO] Unable to find key definition for key reference "gExtensible" in root scope. The href attribute may be used as fallback if it exists


My topic has this content as a test

<p>We have a glossary that can be linked to with &lt;term keyref="gloss_ddl" />. We have terms like 

<term keyref="gAdapter" /> and 

<term keyref="gCertificate" /> and

<term keyref="gExtensible" /> and

<term keyref="gOpenid" /> and

<term keyref="gPKI" /> as well as

<term keyref="gWebservice"  />.</p>


I also have a map for the formal glossary content that uses the same keys


   <topicref keyref="gAdapter" />

   <topicref keyref="gCertificate" />

   <topicref keyref="gExtensible"  />

   <topicref keyref="gOpenid" />

   <topicref keyref="gPKI" />

   <topicref keyref="gWebservice" />


These are not found either. 


I have a separate map with the definitions


   <glossref keyref="vjp1572627554113" keys="gAdapter" />

   <glossref keyref="pof1572627554169" keys="gCertificate" />

   <glossref keyref="adv1572627554227" keys="gExtensible" />

   <glossref keyref="sui1572627554285" keys="gOpenid" />

   <glossref keyref="oom1572627554342" keys="gPKI" />

   <glossref keyref="ikt1572627554399" keys="gWebservice" />


It seems like the key processing in PDF is not using the glossrefs properly.



Wayne Brissette
 

Dan:

I sent you a sample project that should get you started. I put it together for last year’s DITA North America presentation. 

-Wayne

On Jan 10, 2020, at 2:03 PM, Dan Vint <dvint@...> wrote:

I've been following the instructions for using the glossary elements

This all works perfectly for HTML output. When I produce the associated PDF file though it fails. In the OT log I'm getting 

   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29: [DOTJ047I][INFO] Unable to find key definition for key reference "gAdapter" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33: [DOTJ047I][INFO] Unable to find key definition for key reference "gCertificate" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32: [DOTJ047I][INFO] Unable to find key definition for key reference "gExtensible" in root scope. The href attribute may be used as fallback if it exists


Dan Vint
 

Thanks, I’ll take a look at when I’m back at work

 

From: dita-users@groups.io <dita-users@groups.io> On Behalf Of Wayne Brissette
Sent: Friday, January 10, 2020 12:56 PM
To: dita-users@groups.io
Subject: Re: [dita-users] Odd results with glossary elements and PDF generation

 

Dan:

 

I sent you a sample project that should get you started. I put it together for last year’s DITA North America presentation. 

 

-Wayne



On Jan 10, 2020, at 2:03 PM, Dan Vint <dvint@...> wrote:

 

I've been following the instructions for using the glossary elements

 

This all works perfectly for HTML output. When I produce the associated PDF file though it fails. In the OT log I'm getting 

 

   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29: [DOTJ047I][INFO] Unable to find key definition for key reference "gAdapter" in root scope. The href attribute may be used as fallback if it exists

   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33: [DOTJ047I][INFO] Unable to find key definition for key reference "gCertificate" in root scope. The href attribute may be used as fallback if it exists

   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32: [DOTJ047I][INFO] Unable to find key definition for key reference "gExtensible" in root scope. The href attribute may be used as fallback if it exists

 

 

Radu Coravu
 

Hi Dan,

You need to explicitly set the "print='yes'" attribute on the glossref:

https://github.com/dita-ot/dita-ot/issues/3328

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 1/10/2020 10:03 PM, Dan Vint wrote:
I've been following the instructions for using the glossary elements
https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dita-creating-glossary.html
This all works perfectly for HTML output. When I produce the associated PDF file though it fails. In the OT log I'm getting
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29: [DOTJ047I][INFO] Unable to find key definition for key reference "gAdapter" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33: [DOTJ047I][INFO] Unable to find key definition for key reference "gCertificate" in root scope. The href attribute may be used as fallback if it exists
   [keyref] file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32: [DOTJ047I][INFO] Unable to find key definition for key reference "gExtensible" in root scope. The href attribute may be used as fallback if it exists
My topic has this content as a test
<p>We have a glossary that can be linked to with &lt;term keyref="gloss_ddl" />. We have terms like
<termkeyref="gAdapter"/>and
<termkeyref="gCertificate"/>and
<termkeyref="gExtensible"/>and
<termkeyref="gOpenid"/>and
<termkeyref="gPKI"/> as well as
<termkeyref="gWebservice"/>.</p>
I also have a map for the formal glossary content that uses the same keys
<topicref keyref="gAdapter" />
<topicref keyref="gCertificate" />
<topicref keyref="gExtensible"/>
<topicref keyref="gOpenid" />
<topicref keyref="gPKI" />
<topicref keyref="gWebservice" />
These are not found either.
I have a separate map with the definitions
   <glossref keyref="vjp1572627554113" keys="gAdapter" />
<glossref keyref="pof1572627554169" keys="gCertificate" />
<glossref keyref="adv1572627554227" keys="gExtensible" />
<glossref keyref="sui1572627554285" keys="gOpenid" />
<glossref keyref="oom1572627554342" keys="gPKI" />
<glossref keyref="ikt1572627554399" keys="gWebservice" />
It seems like the key processing in PDF is not using the glossrefs properly.

Dan Vint
 

Thanks that did the trick. It would help to put a note in your doc on handling this for PDF. https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dita-creating-glossary.html I'm sort of surprised that print=no takes the keys out of processing like this. Should somehow be don't print but keep the definition so any use in <term>s would still work.

I'm not sure what happened, I had the content marked that way while working in the file system. I imported into a CMS and things changed.

-----Original Message-----
From: dita-users@groups.io <dita-users@groups.io> On Behalf Of Radu Coravu
Sent: Sunday, January 12, 2020 10:38 PM
To: dita-users@groups.io
Subject: Re: [dita-users] Odd results with glossary elements and PDF generation

Hi Dan,

You need to explicitly set the "print='yes'" attribute on the glossref:

https://github.com/dita-ot/dita-ot/issues/3328

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 1/10/2020 10:03 PM, Dan Vint wrote:
I've been following the instructions for using the glossary elements
https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dita-crea
ting-glossary.html

This all works perfectly for HTML output. When I produce the
associated PDF file though it fails. In the OT log I'm getting

[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gAdapter" in root scope. The href attribute may be used as fallback
if it exists
[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gCertificate" in root scope. The href attribute may be used as
fallback if it exists
[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gExtensible" in root scope. The href attribute may be used as
fallback if it exists


My topic has this content as a test

<p>We have a glossary that can be linked to with &lt;term
keyref="gloss_ddl" />. We have terms like

<termkeyref="gAdapter"/>and

<termkeyref="gCertificate"/>and

<termkeyref="gExtensible"/>and

<termkeyref="gOpenid"/>and

<termkeyref="gPKI"/> as well as

<termkeyref="gWebservice"/>.</p>


I also have a map for the formal glossary content that uses the same keys


<topicref keyref="gAdapter" />

<topicref keyref="gCertificate" />

<topicref keyref="gExtensible"/>

<topicref keyref="gOpenid" />

<topicref keyref="gPKI" />

<topicref keyref="gWebservice" />


These are not found either.


I have a separate map with the definitions


<glossref keyref="vjp1572627554113" keys="gAdapter" />

<glossref keyref="pof1572627554169" keys="gCertificate" />

<glossref keyref="adv1572627554227" keys="gExtensible" />

<glossref keyref="sui1572627554285" keys="gOpenid" />

<glossref keyref="oom1572627554342" keys="gPKI" />

<glossref keyref="ikt1572627554399" keys="gWebservice" />


It seems like the key processing in PDF is not using the glossrefs properly.



Radu Coravu
 

Hi Dan,

I updated the DITA content of our Oxygen user's guide to state that the print="yes" attribute must be set on the glossref so the next version of Oxygen will come with the updated documentation.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 1/14/2020 7:36 AM, Dan Vint wrote:
Thanks that did the trick. It would help to put a note in your doc on handling this for PDF. https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dita-creating-glossary.html I'm sort of surprised that print=no takes the keys out of processing like this. Should somehow be don't print but keep the definition so any use in <term>s would still work.
I'm not sure what happened, I had the content marked that way while working in the file system. I imported into a CMS and things changed.
-----Original Message-----
From: dita-users@groups.io <dita-users@groups.io> On Behalf Of Radu Coravu
Sent: Sunday, January 12, 2020 10:38 PM
To: dita-users@groups.io
Subject: Re: [dita-users] Odd results with glossary elements and PDF generation
Hi Dan,
You need to explicitly set the "print='yes'" attribute on the glossref:
https://github.com/dita-ot/dita-ot/issues/3328
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
On 1/10/2020 10:03 PM, Dan Vint wrote:
I've been following the instructions for using the glossary elements
https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/dita-crea
ting-glossary.html

This all works perfectly for HTML output. When I produce the
associated PDF file though it fails. In the OT log I'm getting

[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:11:29:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gAdapter" in root scope. The href attribute may be used as fallback
if it exists
[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:12:33:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gCertificate" in root scope. The href attribute may be used as
fallback if it exists
[keyref]
file:/opt/ixiasoft/outgen/temp/Dita2Pdf.danvint.15080.1578671565937/content/authoring/npf1578670232926.dita:13:32:
[DOTJ047I][INFO] Unable to find key definition for key reference
"gExtensible" in root scope. The href attribute may be used as
fallback if it exists


My topic has this content as a test

<p>We have a glossary that can be linked to with &lt;term
keyref="gloss_ddl" />. We have terms like

<termkeyref="gAdapter"/>and

<termkeyref="gCertificate"/>and

<termkeyref="gExtensible"/>and

<termkeyref="gOpenid"/>and

<termkeyref="gPKI"/> as well as

<termkeyref="gWebservice"/>.</p>


I also have a map for the formal glossary content that uses the same keys


<topicref keyref="gAdapter" />

<topicref keyref="gCertificate" />

<topicref keyref="gExtensible"/>

<topicref keyref="gOpenid" />

<topicref keyref="gPKI" />

<topicref keyref="gWebservice" />


These are not found either.


I have a separate map with the definitions


<glossref keyref="vjp1572627554113" keys="gAdapter" />

<glossref keyref="pof1572627554169" keys="gCertificate" />

<glossref keyref="adv1572627554227" keys="gExtensible" />

<glossref keyref="sui1572627554285" keys="gOpenid" />

<glossref keyref="oom1572627554342" keys="gPKI" />

<glossref keyref="ikt1572627554399" keys="gWebservice" />


It seems like the key processing in PDF is not using the glossrefs properly.