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

check refentry-generate-name, remove refentry-generate-title #569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 1 addition & 29 deletions src/guide/xml/ref-params.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3554,35 +3554,7 @@ the provided grammar.
<title>Description</title>
<para>If <parameter>refentry-generate-name</parameter> is true, the
title of the refentry page will be the word “Name”. Otherwise it will
be the title of the subject of the reference page. Generally, exactly one
of <parameter>refentry-generate-name</parameter> or
<parameter>refentry-generate-title</parameter> should
<glossterm baseform="is true">be true</glossterm>.
</para>
</refsection>
</refentry>

<refentry>
<refmeta>
<fieldsynopsis>
<varname>refentry-generate-title</varname>
<initializer>true()</initializer>
</fieldsynopsis>
</refmeta>
<refnamediv>
<refpurpose>Use the subject of the page as the title of a <tag>refentry</tag>
</refpurpose>
</refnamediv>
<refsection>
<title>Description</title>
<para>If <parameter>refentry-generate-title</parameter> is true, the
title of the refentry page will be the subject of the page (the
<tag>refentrytitle</tag>, <tag>refdescriptor</tag>, or the first
<tag>refname</tag>). Generally, exactly one
of <parameter>refentry-generate-name</parameter> or
<parameter>refentry-generate-title</parameter> should
<glossterm baseform="is true">be true</glossterm>.
</para>
be the title of the subject of the reference page.</para>
</refsection>
</refentry>

Expand Down
6 changes: 3 additions & 3 deletions src/main/xslt/modules/refentry.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<xsl:apply-templates select="." mode="m:attributes"/>

<xsl:choose>
<xsl:when test="$refentry-generate-name">
<xsl:when test="f:is-true($refentry-generate-name)">
<header>
<h2>
<xsl:apply-templates select="." mode="m:gentext">
Expand All @@ -42,7 +42,7 @@
</header>
</xsl:when>

<xsl:when test="$refentry-generate-title">
<xsl:otherwise>
<header>
<h2>
<xsl:choose>
Expand All @@ -58,7 +58,7 @@
</xsl:choose>
</h2>
</header>
</xsl:when>
</xsl:otherwise>
</xsl:choose>

<p>
Expand Down
Loading