[oXygen-user] Pagenumbers in crossref with my own style
Bernhard Kleine
bernhard.kleine at gmx.net
Wed Sep 26 03:52:16 CDT 2018
I have the following xml example and the corresponding xls stylesheet.
The pagenumber, however, is not shown as S. 1, but [1] not respecting
the style for the pagenumer. What is missing?
Regards
Bernhard
testref.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://docbook.org/xml/5.1/rng/docbookxi.rng"
schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://docbook.org/xml/5.1/sch/docbook.sch"
type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<chapter xmlns="http://docbook.org/ns/docbook" xml:lang="de"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:ns5="http://www.w3.org/2000/svg"
xmlns:ns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.1">
<title>Nachtfalter</title>
<para>Die bis Herbst 2018 fotografierten Nachtfalter
(Großschmetterlinge) gehören zu folgenden
Schmetterlingsfamilien (in Klammern die Anzahl der bis Ende
Sept. 2018 gefundenen
Arten):</para>
<para><itemizedlist>
<listitem>
<para>Zygaenidae - Widderchen (6)<xref
linkend="Zygaenidae" xrefstyle="PageInParen"
/></para>
</listitem>
</itemizedlist>
</para>
<sect1 xml:id="Zygaenidae" xreflabel="">
<title>Zygaenidae - Widderchen </title>
<table frame="none">
<title>Zygaenida</title>
<tgroup cols="2" align="center">
<tbody>
<row valign="middle" rowsep="0">
<entry>Beilfleck-Widderchen</entry>
<entry>Thymian/Bibernell-Widderchen</entry>
</row>
</tbody>
</tgroup>
</table>
</sect1>
</chapter>
Falterbuechlein.xls
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import
href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>
<xsl:param name="paper.type" select="'a4'"/>
<xsl:param name="page.orientation" select="'portrait'"/>
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="de">
<l:context name="title">
<l:template name="table" text="Tabelle %t."/>
</l:context>
<l:context name="xref-number-and-title">
<l:template name="table" text="(in
Tabelle≴%t”)"/>
<l:template name="xref" style="PageInParen" text=" (S.
%p)"/>
</l:context>
</l:l10n>
</l:i18n>
</xsl:stylesheet>
--
spitzhalde9
D-79853 lenzkirch
bernhard.kleine at gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20180926/7a85b05c/attachment.sig>
More information about the oXygen-user
mailing list