or contains($xrefstyle, 'Page')))
and ( $insert.xref.page.number = 'yes'
or $insert.xref.page.number = '1')
- or local-name($target) = 'para'">
+ or ( local-name($target) = 'para'
+ and $insert.xref.page.number.para = 'yes')">
<xsl:apply-templates select="$target" mode="page.citation">
<xsl:with-param name="id" select="$linkend"/>
</xsl:apply-templates>
<!ENTITY informal.object.properties SYSTEM "../params/informal.object.properties.xml">
<!ENTITY index.preferred.page.properties SYSTEM "../params/index.preferred.page.properties.xml">
<!ENTITY insert.xref.page.number SYSTEM "../params/insert.xref.page.number.xml">
+<!ENTITY insert.xref.page.number.para SYSTEM "../params/insert.xref.page.number.para.xml">
<!ENTITY itemizedlist.properties SYSTEM "../params/itemizedlist.properties.xml">
<!ENTITY itemizedlist.label.properties SYSTEM "../params/itemizedlist.label.properties.xml">
<!ENTITY label.from.part SYSTEM "../params/label.from.part.xml">
</reference>
<reference xml:id="xrefs"><title>Cross References</title>
&insert.xref.page.number;
+&insert.xref.page.number.para;
&xref.properties;
&xref.label-title.separator;
&xref.label-page.separator;
<src:fragref linkend="index.term.separator.frag"/>
<src:fragref linkend="insert.link.page.number.frag"/>
<src:fragref linkend="insert.xref.page.number.frag"/>
+<src:fragref linkend="insert.xref.page.number.para.frag"/>
<src:fragref linkend="itemizedlist.properties.frag"/>
<src:fragref linkend="itemizedlist.label.properties.frag"/>
<src:fragref linkend="itemizedlist.label.width.frag"/>
and contains($xrefstyle, 'nopage')">
<!-- negative xrefstyle in instance turns it off -->
</xsl:when>
+ <xsl:when test="starts-with(normalize-space($xrefstyle), 'template:')">
+ <!-- if page citation were wanted, it would've been in the template as %p -->
+ </xsl:when>
<!-- positive xrefstyle already handles it -->
<xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:')
and (contains($xrefstyle, 'page')
or contains($xrefstyle, 'Page')))
and ( $insert.xref.page.number = 'yes'
or $insert.xref.page.number = '1')
- or (local-name($target) = 'para' and
- $xrefstyle = '')">
+ or (local-name($target) = 'para'
+ and $xrefstyle = ''
+ and $insert.xref.page.number.para = 'yes')">
<xsl:apply-templates select="$target" mode="page.citation">
<xsl:with-param name="id" select="$target/@id|$target/@xml:id"/>
</xsl:apply-templates>
and (contains($xrefstyle, 'page')
or contains($xrefstyle, 'Page')))
or ( $insert.link.page.number = 'yes'
- or $insert.link.page.number = '1')
- or local-name($target) = 'para'">
+ or $insert.link.page.number = '1')">
<xsl:apply-templates select="$target" mode="page.citation">
<xsl:with-param name="id" select="$linkend"/>
</xsl:apply-templates>
<!ENTITY eclipse.plugin.name SYSTEM "../params/eclipse.plugin.name.xml">
<!ENTITY eclipse.plugin.id SYSTEM "../params/eclipse.plugin.id.xml">
<!ENTITY eclipse.plugin.provider SYSTEM "../params/eclipse.plugin.provider.xml">
+<!ENTITY insert.xref.page.number.para SYSTEM "../params/insert.xref.page.number.para.xml">
<!ENTITY insert.xref.page.number SYSTEM "../params/insert.xref.page.number.xml">
<!ENTITY component.label.includes.part.label SYSTEM "../params/component.label.includes.part.label.xml">
<!ENTITY simplesect.in.toc SYSTEM "../params/simplesect.in.toc.xml">
<reference xml:id="xrefs"><title>Cross References</title>
&collect.xref.targets;
&insert.xref.page.number;
+&insert.xref.page.number.para;
&use.role.as.xrefstyle;
&xref.with.number.and.title;
&xref.label-page.separator;
<src:fragref linkend="insert.olink.page.number.frag"/>
<src:fragref linkend="insert.olink.pdf.frag.frag"/>
<src:fragref linkend="insert.xref.page.number.frag"/>
+<src:fragref linkend="insert.xref.page.number.para.frag"/>
<src:fragref linkend="javahelp.encoding.frag"/>
<src:fragref linkend="keep.relative.image.uris.frag"/>
<src:fragref linkend="l10n.gentext.default.language.frag"/>
<!ENTITY eclipse.plugin.name SYSTEM "../params/eclipse.plugin.name.xml">
<!ENTITY eclipse.plugin.id SYSTEM "../params/eclipse.plugin.id.xml">
<!ENTITY eclipse.plugin.provider SYSTEM "../params/eclipse.plugin.provider.xml">
+<!ENTITY insert.xref.page.number.para SYSTEM "../params/insert.xref.page.number.para.xml">
<!ENTITY insert.xref.page.number SYSTEM "../params/insert.xref.page.number.xml">
<!ENTITY component.label.includes.part.label SYSTEM "../params/component.label.includes.part.label.xml">
<!ENTITY simplesect.in.toc SYSTEM "../params/simplesect.in.toc.xml">
<reference xml:id="xrefs"><title>Cross References</title>
&collect.xref.targets;
&insert.xref.page.number;
+&insert.xref.page.number.para;
&use.role.as.xrefstyle;
&xref.with.number.and.title;
&xref.label-page.separator;
<src:fragref linkend="ignore.image.scaling.frag"/>
<src:fragref linkend="inherit.keywords.frag"/>
<src:fragref linkend="insert.xref.page.number.frag"/>
+<src:fragref linkend="insert.xref.page.number.para.frag"/>
<src:fragref linkend="javahelp.encoding.frag"/>
<src:fragref linkend="keep.relative.image.uris.frag"/>
<src:fragref linkend="l10n.gentext.default.language.frag"/>