Description of problem: Here is script developed by dmison to bulk replace the entities header file. This is useful in a number of situations. For example, what I'm doing now: exporting a document template from svn, then changing the name of the book. This requires updating the name of the entities file in header of each the existing files. Apparently this functionality is also required for publican / maven compatibility, as explained here: http://hudson.jboss.org/hudson/job/JBoss_Documentation_Guide/lastSuccessfulBuild/artifact/JBoss_Documentation_Guide/target/docbook/publish/en-US/html_single/index.html#sect-Interop_Insert_Parameter_Entities Can we add this as a publican command? For example: publican bookents {filename} Here's the script that we currently use: #!/usr/bin/env bash for file in *.xml; do sed -i -e 's/docbookx.dtd" \[/docbookx.dtd" \[\n<!ENTITY % BOOK_ENTITIES SYSTEM "'${1}'.ent">\n%BOOK_ENTITIES\;/' ${file}; \ done
(In reply to comment #0) > Description of problem: > Here is script developed by dmison to bulk replace the entities header file. This script is not cross platform. > This is useful in a number of situations. For example, what I'm doing now: > exporting a document template from svn, then changing the name of the book. > This requires updating the name of the entities file in header of each the > existing files. Publican ignores the header in the source file and rewrites it at processing time, so there is no need to update this content for use with Publican. > Apparently this functionality is also required for publican / maven > compatibility, as explained here: > http://hudson.jboss.org/hudson/job/JBoss_Documentation_Guide/lastSuccessfulBuild/artifact/JBoss_Documentation_Guide/target/docbook/publish/en-US/html_single/index.html#sect-Interop_Insert_Parameter_Entities > > > Can we add this as a publican command? For example: publican bookents > {filename} There is a check in XmlClean.pm that stops the entity definition from being injected in to the header when running clean_ids, we could remove that check. The check was originally added because the references to entity files in the common content broke jdocbook. Since we no longer have entity files in the common content it would seem there is no longer a requirement for this exception. Cheers, Jeff.
publican-1.6.2-0.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc12
publican-1.6.2-0.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc11
publican-1.6.2-0.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc13
The change made was to remove the restriction on clean_ids writing the entity declaration, so now clean_ids should be sufficient to address the issues raised.
publican-1.6.2-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.6.2-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
publican-1.6.2-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.