Xreflabel not shown in xref's

Hi, I noticed some strange things with xrefs. The picture shows how the epub (produced without any outside help) shows it. The English text "the section called" is very strange and added during processing. The original xml is (<varlistentry> <term>Beschreibung</term> <listitem> <para>(vergl. Abschn. <xref linkend="Ch14.SS.GeneticDefects"/>).</para> </listitem> </varlistentry>) and the target: <sect2 xml:id="Ch14.SS.GeneticDefects" xreflabel=""><title>Genetische Ausfälle</title> It is not always that "the section called" is added, there seems to exist some ambiguity. Regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kleine@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

I have another example: I just added this to the text (vergl. Abschnitt&TS;<xref linkend="Ch10.SS.DevelAdenohypophysis"/>. the target is <sect2 xml:id="Ch10.SS.DevelAdenohypophysis" xreflabel="Kap10 Entwicklung der Adenohypophyse/Rathke-Tasche"> <title> the xreflabel is not shown in the text. TS is for thin space. Would you please explain this behaviour to me? Thanks a lot Regards Bernhard -- spitzhalde9 D-79853 lenzkirch bernhard.kleine@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

Hi Bernhard, This looks like a problem in the way in which the Oxygen Author visual editing mode tries to resolve the reference. I tried to create a small sample Docbook file to test with:
<article xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink"> <info> <title>T1</title> </info> <sect1> <title>T2</title> <para>(vergl. Abschnitt <xref linkend="Ch10.SS.DevelAdenohypophysis"/>.</para> <sect2 xml:id="Ch10.SS.DevelAdenohypophysis" xreflabel="Kap10 Entwicklung der Adenohypophyse/Rathke-Tasche"> <title>sine title</title> <para>some text</para> </sect2> </sect1> </article>
and it works for me. Could you put together some samples for us to test? You can send them to "support@oxygenxml.com". For example is your <sect2> in one file and the reference to it in another? How are these files including each other using xi:include? Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 11/14/2017 1:36 PM, Bernhard Kleine wrote:
I have another example: I just added this to the text
(vergl. Abschnitt&TS;<xref linkend="Ch10.SS.DevelAdenohypophysis"/>. the target is <sect2 xml:id="Ch10.SS.DevelAdenohypophysis" xreflabel="Kap10 Entwicklung der Adenohypophyse/Rathke-Tasche"> <title>
the xreflabel is not shown in the text.
TS is for thin space.
Would you please explain this behaviour to me? Thanks a lot Regards Bernhard
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@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
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user

the strange thing is that the oxygen behaviour is not congruent. While the xreflabel is not shown in the file Chapter14 even after renewing Ch08.S.GpCR with xref search, it is shown in the full document all the chapters (Chxx) are separate documents, any subdocuments, only the references are kept separately. The master has all this files included via xi:included. The master file option is activated. In the previous example the xref and the target where in the same file. I will sent some examples to your email address. -- spitzhalde9 D-79853 lenzkirch bernhard.kleine@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

Hi Bernhard, Usually for this kind of Docbook-related questions you should consider registering on the Docbook Apps users list: http://docbook.org/help and ask around as we do not use Docbook much internally and they may have better suggestions for you. It seems that the Docbook XSLT project has translations for some static texts, for example you can open this file: OXYGEN_INSTALL_DIR\frameworks\docbook\xsl\common\en.xml and there is a mapping there between a key and a translation:
<l:gentext key="sectioncalled" text="the section called"/>
which is probably used when the link text is computed by the EPUB XSLTs. I think that in your case the English translation is used because you have not set 'xml:lang="de"' to your <article>'s root element. And of course you can control these static texts by modifying the translation files. More about Docbook and translating its static texts: http://www.sagehill.net/docbookxsl/Localizations.html Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 11/14/2017 1:26 PM, Bernhard Kleine wrote:
Hi,
I noticed some strange things with xrefs. The picture shows how the epub (produced without any outside help) shows it. The English text "the section called" is very strange and added during processing.
The original xml is
(<varlistentry> <term>Beschreibung</term> <listitem> <para>(vergl. Abschn. <xref linkend="Ch14.SS.GeneticDefects"/>).</para> </listitem> </varlistentry>)
and the target:
<sect2 xml:id="Ch14.SS.GeneticDefects" xreflabel=""><title>Genetische Ausfälle</title>
It is not always that "the section called" is added, there seems to exist some ambiguity.
Regards
Bernhard
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@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
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Bernhard Kleine
-
Oxygen XML Editor Support (Radu Coravu)