Bug 748167 - Preface.xml of built book has strange id
Summary: Preface.xml of built book has strange id
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 751251
TreeView+ depends on / blocked
 
Reported: 2011-10-22 17:13 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.0.14
Clone Of:
Environment:
Last Closed: 2011-11-04 10:01:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2011-10-22 17:13:14 UTC
I build my book using 

skynet build 1

The book is Zanata_Quickstart. I open the Preface.xml and see the following id:

<preface id="pref-Messaging_Installation_and_Deployment_Guide-Preface">

Not sure where this is coming from.

Comment 1 Ali Abbas 2011-10-23 23:53:12 UTC
This is what was described in the emailed notes that describes how to create a book.

-- begin Preface.xml --

<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "<<contentSpec.escapedTitle>>.ent">
%BOOK_ENTITIES;
]>
<preface id="pref-<<contentSpec.escapedTitle>>-Preface">
        <title>Preface</title>
        <xi:include href="Common_Content/Conventions.xml"
xmlnsi="http://www.w3.org/2001/XInclude" />
        <xi:include href="Feedback.xml"
xmlnsi="http://www.w3.org/2001/XInclude"><xi:fallback
xmlnsi="http://www.w3.org/2001/XInclude">
                <xi:include href="Common_Content/Feedback.xml"
xmlnsi="http://www.w3.org/2001/XInclude" />
        </xi:fallback>
        </xi:include>
</preface>

-- end Preface.xml --

So what would you like done instead of this?

Comment 2 Joshua Wulf 2011-11-04 05:18:45 UTC
With build 11 of the web service, and a Content Spec with the title "Writing with Topics", I get:



?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Writing_with_Topics.ent">
%BOOK_ENTITIES;
]>
<preface id="pref-Messaging_Installation_and_Deployment_Guide-Preface">
	<title>Preface</title>


You can see that it does not follow the pattern:

<!ENTITY % BOOK_ENTITIES SYSTEM "<<contentSpec.escapedTitle>>.ent">
%BOOK_ENTITIES;
]>
<preface id="pref-<<contentSpec.escapedTitle>>-Preface">

The BOOK_ENTITIES has been correctly written following that pattern with the name of the Content Spec, but for some reason the preface id is hardcoded to "pref-Messaging_Installation_and_Deployment_Guide-Preface"

Comment 3 Lee Newson 2011-11-04 05:47:30 UTC
Oh okay it's setting the wrong title will have a look straight away. Completely missed that sorry.

Comment 4 Lee Newson 2011-11-04 05:51:23 UTC
The issue was caused by the regex missing in the resource file. Therefore it was never getting replaced and was that static field. We have now put the regex in there so that it will get replaced.


Note You need to log in before you can comment on or make changes to this bug.