Bug processing <abbreviated-form> elements to PDF #3937
-
Hi, I seem to have found a bug in v3.7.1 PDF processing. The OT is not processing elements correctly. The actual error is that it's not recognizing glossentry topics as such and therefore does not process them. Instead, the OT emits warning messages, such as:
The element is dropped from the PDF output, in other words, all references to the glossentry term are missing from the PDF. When I process the same map and topics to HTML5 output, the elements are processed correctly and this warning is not generated in the log. I believe this was working in DITA-OT version 3.7, because that's the version bundled with Oxygen 24.1 and the same test files process to PDF correctly to PDF in Oxygen 24.1. It was also working in DITA-OT 2.5.4, which is the one my client currently uses and the elements are rendered correctly to PDF with the correct glossary expansion on first occurrence and the acronym on subsequent occurrences. I am attaching a test map and topics if you need a test case. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
This bug might be caused by this reported problem: Looking at the dita-ot-3.7.2/plugins/org.dita.pdf2/xsl/fo/abbrev-domain.xsl, it has this line:
while the same variable in the abbrev-domain.xsl from the Oxygen DITA OT distribution was changed like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi Chris,
I was going to try to figure out how to do it, but if you can apply the fix I’d be most appreciative.
Cheers,
Gershon
Gershon L Joseph | Senior Information Architect | Precision Content | Phone: +972 (54) 658-3887| TZ: Jerusalem, Israel (GMT+2) | Email: ***@***.******@***.***>| Twitter: @PCASinc<https://twitter.com/PCASInc?lang=en> | www.precisioncontent.com<http://www.precisioncontent.com/>
***@***.***
Unlock the Knowledge in Your Enterprise™
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. © 2022, Precision Content Authoring Solutions Inc. Toronto, Ontario, Canada
gershon joseph
senior information architect
[cid:linkedin_32x32_3cde46cf-f061-4d61-8e50-1aae6546c183.png] <https://www.linkedin.com/company/precisioncontent/> [cid:twitter_32x32_de0e8fcc-5255-43d9-af32-c1dd18c3811f.png] <https://www.twitter.com/pcasinc> [cid:gptw_5946560a-203c-4c10-9fd3-c413b6647aff.png] <https://www.greatplacetowork.ca/en/certification%E3%85%A4/certified-organizations#certified-organizations/view-sub-list-details/61dde00b19d6d100221fa636/> <https://www.greatplacetowork.ca/en/certification%E3%85%A4/certified-organizations#certified-organizations/view-sub-list-details/61dde00b19d6d100221fa636/>
<https://www.precisioncontent.com/>[cid:precisioncontentlogo1_b18ef66a-3ca1-415b-9c17-f3a1017c9b39.png]<https://www.precisioncontent.com>
180 John St. Toronto, ON Canada M5T 1X5
T: (647) 557-5965<tel:(647)%20557-5965>
***@***.******@***.***>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. ©2022, Precision Content, Toronto, Ontario, Canada
From: Chris Papademetrious ***@***.***>
Sent: Sunday, June 12, 2022 2:06 PM
To: dita-ot/dita-ot ***@***.***>
Cc: Gershon Joseph ***@***.***>; Mention ***@***.***>
Subject: Re: [dita-ot/dita-ot] Bug processing <abbreviated-form> elements to PDF (Discussion #3937)
@gershon-pcas<https://github.com/gershon-pcas> - if you are unsure how to create a pull request, I can do this for you.
—
Reply to this email directly, view it on GitHub<#3937 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUH2AAAPI2PJ2U76LD54BITVOXAA3ANCNFSM5YDTSZUQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I looked into why the I added some
and here are the results:
So the root cause of the issue is that the element lookup by If Because subsequent processing expects to only process
I will submit a pull request for this. |
Beta Was this translation helpful? Give feedback.
-
Super!!! Thanks so much for fixing this, Chris. Appreciate it very much.
Cheers,
Gershon
Gershon L Joseph | Senior Information Architect | Precision Content | Phone: +972 (54) 658-3887| TZ: Jerusalem, Israel (GMT+2) | Email: ***@***.******@***.***>| Twitter: @PCASinc<https://twitter.com/PCASInc?lang=en> | www.precisioncontent.com<http://www.precisioncontent.com/>
***@***.***
Unlock the Knowledge in Your Enterprise™
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. © 2022, Precision Content Authoring Solutions Inc. Toronto, Ontario, Canada
gershon joseph
senior information architect
[cid:linkedin_32x32_3cde46cf-f061-4d61-8e50-1aae6546c183.png] <https://www.linkedin.com/company/precisioncontent/> [cid:twitter_32x32_de0e8fcc-5255-43d9-af32-c1dd18c3811f.png] <https://www.twitter.com/pcasinc> [cid:gptw_5946560a-203c-4c10-9fd3-c413b6647aff.png] <https://www.greatplacetowork.ca/en/certification%E3%85%A4/certified-organizations#certified-organizations/view-sub-list-details/61dde00b19d6d100221fa636/> <https://www.greatplacetowork.ca/en/certification%E3%85%A4/certified-organizations#certified-organizations/view-sub-list-details/61dde00b19d6d100221fa636/>
<https://www.precisioncontent.com/>[cid:precisioncontentlogo1_b18ef66a-3ca1-415b-9c17-f3a1017c9b39.png]<https://www.precisioncontent.com>
180 John St. Toronto, ON Canada M5T 1X5
T: (647) 557-5965<tel:(647)%20557-5965>
***@***.******@***.***>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify us by return email if you have received this email in error. ©2022, Precision Content, Toronto, Ontario, Canada
From: Chris Papademetrious ***@***.***>
Sent: Thursday, September 8, 2022 1:00 PM
To: dita-ot/dita-ot ***@***.***>
Cc: Gershon Joseph ***@***.***>; Mention ***@***.***>
Subject: Re: [dita-ot/dita-ot] Bug processing <abbreviated-form> elements to PDF (Discussion #3937)
Pull request approved, this fix will be in 3.7.4.
—
Reply to this email directly, view it on GitHub<#3937 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUH2AAD5GO4WPPJ25RQP6C3V5G2IVANCNFSM5YDTSZUQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
This bug might be caused by this reported problem:
#2773 (comment)
Maybe you can add an extra comment on that issue. It seems to be a side effect of this pull request #3210 by @drmacro
Looking at the dita-ot-3.7.2/plugins/org.dita.pdf2/xsl/fo/abbrev-domain.xsl, it has this line:
while the same variable in the abbrev-domain.xsl from the Oxygen DITA OT distribution was changed like this: