<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I have the following document:</p>
<p><?xml version="1.0" encoding="UTF-8"?><br>
<?xml-model href=<a class="moz-txt-link-rfc2396E" href="http://docbook.org/xml/5.1/rng/docbookxi.rng">"http://docbook.org/xml/5.1/rng/docbookxi.rng"</a>
schematypens=<a class="moz-txt-link-rfc2396E" href="http://relaxng.org/ns/structure/1.0">"http://relaxng.org/ns/structure/1.0"</a>?><br>
<?xml-model href=<a class="moz-txt-link-rfc2396E" href="http://docbook.org/xml/5.1/sch/docbook.sch">"http://docbook.org/xml/5.1/sch/docbook.sch"</a>
type="application/xml"
schematypens=<a class="moz-txt-link-rfc2396E" href="http://purl.oclc.org/dsdl/schematron">"http://purl.oclc.org/dsdl/schematron"</a>?><br>
<?xml-stylesheet type="text/xsl"
href="../xslt/fo/Falterbuechlein.xsl"?><br>
<book xmlns=<a class="moz-txt-link-rfc2396E" href="http://docbook.org/ns/docbook">"http://docbook.org/ns/docbook"</a> xml:lang="de"
xmlns:xi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XInclude">"http://www.w3.org/2001/XInclude"</a><br>
xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a> version="5.1"><br>
<info><br>
<title>Falter in Urseetal 2018</title><br>
<subtitle/><br>
<author><br>
<personname><br>
<surname>Kleine</surname><br>
</personname><br>
<br>
<address><br>
<city>Lenzkirch</city><br>
</address><br>
<email><a class="moz-txt-link-abbreviated" href="mailto:bernhard.kleine@gmx.net">bernhard.kleine@gmx.net</a></email><br>
</author><br>
</info><br>
<preface><br>
<title>Vorwort</title><br>
<br>
</preface><br>
<chapter><br>
<title>Tagfalter</title><br>
<sect1 xml:id="Hesperiidae"><br>
<title>Hesperiidae<font color="#cc0000"><indexterm
type="science"></font><primary>Hesperiidae</primary></indexterm>
— Dickkopffalter<indexterm>
<primary>Dickkopffalter</primary></indexterm></title><br>
<sect2><br>
<title>Kleiner
Würfeldickkopffalter</title><indexterm><primary>Kleiner
Würfeldickkopffalter</primary></indexterm><br>
<para><br>
<emphasis role="bold">Pyrgus
malvae</emphasis><font color="#cc0000"><indexterm
type="science"></font><primary>Pyrgus
malvae</primary></indexterm><br>
</para><br>
<para>Flugzeit: Mitte April bis
Mitte Juli</para><br>
</sect2><br>
</sect1><br>
</chapter><br>
<font color="#cc0000"> <index type="science"></font><br>
<title>Wissenschaftliches
Namesverzeichnis</title><br>
</index><br>
<index/><br>
<br>
</book><br>
<br>
Transforming this with FOP gives an error:
<blockquote type="cite">
<table>
<tbody>
<tr>
<td>
<pre>The process 'Apache FOP' ended with code: 1.
The error was:
ERROR - net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Property ID "ientry-d5e19" (found on "fo:block") previously used; ID values must be unique within a document! (Siehe Position 3:20133)
ERROR - Exception
org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: Property ID "ientry-d5e19" (found on "fo:block") previously used; ID values must be unique within a document! (Siehe Position 3:20133)
net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Property ID "ientry-d5e19" (found on "fo:block") previously used; ID values must be unique within a document! (Siehe Position 3:20133)
at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
at org.apache.fop.cli.Main.startFOP(Main.java:186)
at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Property ID "ientry-d5e19" (found on "fo:block") previously used; ID values must be unique within a document! (Siehe Position 3:20133)
at net.sf.saxon.event.ContentHandlerProxy.handleSAXException(Unknown Source)
at net.sf.saxon.event.ContentHandlerProxy.startContent(Unknown Source)
at net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:213)
at net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:721)
at net.sf.saxon.event.ReceivingContentHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:427)
at net.sf.saxon.event.Sender.send(Sender.java:138)
at net.sf.saxon.jaxp.IdentityTransformer.transform(IdentityTransformer.java:383)
... 4 more
Caused by: org.apache.fop.fo.ValidationException: Property ID "ientry-d5e19" (found on "fo:block") previously used; ID values must be unique within a document! (Siehe Position 3:20133)
at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173)
at com.sun.proxy.$Proxy4.idNotUnique(Unknown Source)
at org.apache.fop.fo.FObj.checkId(FObj.java:202)
at org.apache.fop.fo.FObj.startOfNode(FObj.java:183)
at org.apache.fop.fo.flow.Block.startOfNode(Block.java:144)
at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:337)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
... 21 more
</pre>
</td>
</tr>
</tbody>
</table>
</blockquote>
</p>
<p>Commenting the lines</p>
<p><!-- <index type="science"><br>
<title>Wissenschaftliches
Namesverzeichnis</title><br>
</index>--></p>
<p>gets rid of the error, but the scientific names are not separated
in the index from the German ones. The construction is according
to page 312 of Docbook XSLT by Bob Stayton. What did I wrong?</p>
<p>Regards</p>
<p>Bernhard<br>
</p>
<pre class="moz-signature" cols="72">--
spitzhalde9
D-79853 lenzkirch
<a class="moz-txt-link-abbreviated" href="mailto:bernhard.kleine@gmx.net">bernhard.kleine@gmx.net</a>
<a class="moz-txt-link-abbreviated" href="http://www.b-kleine.com">www.b-kleine.com</a>, <a class="moz-txt-link-abbreviated" href="http://www.urseetal.net">www.urseetal.net</a>
-
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</pre>
</body>
</html>