Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(X)HTML stylesheets render glossterm with nested <a> tags #267

Open
ewie opened this issue May 1, 2024 · 0 comments
Open

(X)HTML stylesheets render glossterm with nested <a> tags #267

ewie opened this issue May 1, 2024 · 0 comments

Comments

@ewie
Copy link

ewie commented May 1, 2024

#72 did not fully address the nested <a> tags reported in #24.

Consider this test.sgml:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
          "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<book>
 <title>Test</title>
 <glosslist>
  <glossentry id="glossary-a">
   <glossterm>A</glossterm>
   <glossdef>
    <para>
     <glossterm linkend="glossary-b">B</glossterm>
    </para>
   </glossdef>
  </glossentry>
  <glossentry id="glossary-b">
   <glossterm>B</glossterm>
   <glossdef>
    <para>
     Lorem ipsum&hellip;
    </para>
   </glossdef>
  </glossentry>
 </glosslist>
</book>

Generating XHTML with

xsltproc --nonet /usr/share/xml/docbook/xsl-stylesheets-1.79.2-nons/xhtml/docbook.xsl test.sgml | grep '</a></em></a>'

still gives me

<a class="glossterm" href="#glossary-b"><em class="glossterm"><a class="glossterm" href="#glossary-b" title="B">B</a></em></a>

The HTML stylesheet has the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant