Page 1 of 1

DITA WebHelp Responsive related-links

Posted: Wed Feb 13, 2019 3:41 pm
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?

Re: DITA WebHelp Responsive related-links

Posted: Thu Feb 14, 2019 4:17 pm
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

Re: DITA WebHelp Responsive related-links

Posted: Sat Feb 16, 2019 10:47 am
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]

Re: DITA WebHelp Responsive related-links

Posted: Fri Feb 22, 2019 5:46 pm
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

Re: DITA WebHelp Responsive related-links

Posted: Sat Feb 23, 2019 10:48 am
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...

Re: DITA WebHelp Responsive related-links

Posted: Tue Feb 26, 2019 1:33 pm
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

Re: DITA WebHelp Responsive related-links

Posted: Tue Feb 26, 2019 4:29 pm
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.