DITA WebHelp Responsive related-links

Post here questions and problems related to editing and publishing DITA content.
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

DITA WebHelp Responsive related-links

Post by abacus66 »

Hi there!

I've grouped glossentry elements under glossgroup in files. When I generate WebHelp Responsive output I have got some errors of a kind:

Code: Select all

Ambiguous rule match for /glossgroup/glossentry[1]/related-links[1]/link[1]
Ambiguous rule match for /glossentry/related-links[1]/link[1]
But result is OK. What's wrong?
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: DITA WebHelp Responsive related-links

Post by Costin »

Hi Dr. ABacus,

We could not reproduce the warnings, using the latest version and build of oxygen XML Editor available from our website.
However, those seem to be just warnings from DITA OT.

If you could send some a sample DITA Map reduced to an as minimal form as possible that you could reproduce the warning with, we could act further and forward the issue to the DITA OT.

However, as they are just warnings, not errors, the users should not worry as long as the output is correct.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

Re: DITA WebHelp Responsive related-links

Post by abacus66 »

OK. This is test map:

Code: Select all

<bookmap xml:lang="en-GB">
<booktitle>
<mainbooktitle>Dr. ABacus' TEST</mainbooktitle>
</booktitle>
<bookmeta/>
<frontmatter>
<booklists>
<toc/>
<tablelist/>
<figurelist/>
</booklists>
</frontmatter>
<part navtitle="TEST"/>
<backmatter>
<booklists>
<glossarylist>
<topicset href="glossary/eny.dita" id="eny">
<keydef href="glossary/eny.dita#yarm" keys="yarm"/>
<keydef href="glossary/eny.dita#yc" keys="yc"/>
<keydef href="glossary/eny.dita#yd" keys="yd"/>
</topicset>
</glossarylist>
<indexlist/>
</booklists>
</backmatter>
</bookmap>
eny.dita:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glossgroup PUBLIC "-//OASIS//DTD DITA Glossary Group//EN" "glossgroup.dtd">
<glossgroup id="eny">
<title>Y</title>
<glossentry id="yarm">
<glossterm>Y ARM</glossterm>
<glossdef>Lateral Arm</glossdef>
</glossentry>
<glossentry id="yc">
<glossterm>YC</glossterm>
<glossdef>Economy Class</glossdef>
<related-links>
<link href="rua.dita#aviaticket"/>
</related-links>
</glossentry>
<glossentry id="yd">
<glossterm>YD</glossterm>
<glossdef>Yaw Damper/<text xml:lang="ru">Демпфер рыскания</text></glossdef>
</glossentry>
</glossgroup>
And Transformation problems:

Code: Select all

Ambiguous rule match for /glossgroup/glossentry[1]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[3]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[5]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[7]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[2]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[6]/related-links[1]/link[1]
Ambiguous rule match for /glossgroup/glossentry[8]/related-links[1]/link[1]
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: DITA WebHelp Responsive related-links

Post by Costin »

Hi,

Thank you for the samples!

I could not reproduce those warnings on our side based only on the samples you sent.
I used oXygen XML Editor v20 with the built-in DITA-OT 2.x and the predefined (unmodified) DITA Map WebHelp Responsive scenario.

However, after further investigation, it seems that the messages of this type are reported by an XSLT processor when encounters two or templates with same import precedence and priority. See the M. Kay answer from the next thread:
https://stackoverflow.com/questions/236 ... nt-in-xslt

Most probably you have a custom DITA-OT, or an XSLT customization that generates this.
So you have to identify these templates and set a priority for them if they are located in your customization.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

Re: DITA WebHelp Responsive related-links

Post by abacus66 »

Most probably you have a custom DITA-OT, or an XSLT customization that generates this.
So you have to identify these templates and set a priority for them if they are located in your customization.
Alas, I have this issue when I use unmodified WebHelp Responsive scenario...
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: DITA WebHelp Responsive related-links

Post by ionela »

Hi,

You might be using a custom DITA-OT or other XSLT customization, not necessary a WebHelp Responsive scenario customization.
Could you please test using the following configuration:
- a clean installation of oXygen XML in a clean new installation directory;
- please use the built-in DITA-OT (Option > Preferences > DITA > Built-in DITA-OT...);
- run the default DITA Map WebHelp Responsive transformation scenario.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

Re: DITA WebHelp Responsive related-links

Post by abacus66 »

You might be using a custom DITA-OT or other XSLT customization, not necessary a WebHelp Responsive scenario customization.
Could you please test using the following configuration:
- a clean installation of oXygen XML in a clean new installation directory;
- please use the built-in DITA-OT (Option > Preferences > DITA > Built-in DITA-OT...);
- run the default DITA Map WebHelp Responsive transformation scenario.
All this was done. The result is the same.
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Post Reply