From michele at acksyn.org Wed Nov 12 15:55:46 2014 From: michele at acksyn.org (Michele Baldessari) Date: Wed, 12 Nov 2014 16:55:46 +0100 Subject: [publican-list] Error: no ID for constraint linkend Message-ID: <20141112155546.GA4056@fante.int.rhx> Hi all, I am trying to get the docbook files contained in the Performance Co-Pilot project [1] compiling on a recent publican version (publican-4.2.6-0.fc21.noarch). After adding an section to Book_Info.xml and the missing Revision_History.xml/ Author_Group.xml files, I get the book compiling (only if I add --novalid to the publican arguments though). In any case I get these "no ID constraint linkend" like the following: """ DEBUG: Publican: config loaded Setting up en-US Processing file tmp/en-US/xml/Common_Content/Conventions.xml -> tmp/en-US/xml/Common_Content/Conventions.xml Processing file tmp/en-US/xml/Common_Content/Feedback.xml -> tmp/en-US/xml/Common_Content/Feedback.xml Processing file tmp/en-US/xml/Common_Content/Legal_Notice.xml -> tmp/en-US/xml/Common_Content/Legal_Notice.xml Processing file tmp/en-US/xml/Common_Content/Program_Listing.xml -> tmp/en-US/xml/Common_Content/Program_Listing.xml Processing file tmp/en-US/xml/Common_Content/Revision_History.xml -> tmp/en-US/xml/Common_Content/Revision_History.xml Processing file tmp/en-US/xml_tmp/Author_Group.xml -> tmp/en-US/xml/Author_Group.xml Processing file tmp/en-US/xml_tmp/Book_Info.xml -> tmp/en-US/xml/Book_Info.xml Processing file tmp/en-US/xml_tmp/Revision_History.xml -> tmp/en-US/xml/Revision_History.xml Processing file tmp/en-US/xml_tmp/pcp-users-and-administrators-guide.xml -> tmp/en-US/xml/pcp-users-and-administrators-guide.xml Beginning work on en-US Starting pdf Using XML::LibXSLT on /usr/share/publican/xsl/html-pdf.xsl Error: no ID for constraint linkend: IG31371888122. Error: no ID for constraint linkend: IG31371888121. Error: no ID for constraint linkend: IG31371888127. Error: no ID for constraint linkend: ITch03-15. Error: no ID for constraint linkend: ITch03-18. Error: no ID for constraint linkend: IG31371888143. Error: no ID for constraint linkend: IG31371888144. Error: no ID for constraint linkend: IG31371888146. Error: no ID for constraint linkend: IG31371888147. Error: no ID for constraint linkend: IG31371888124. Error: no ID for constraint linkend: ITch03-22. Error: no ID for constraint linkend: ITch03-23. Error: no ID for constraint linkend: ITch03-24. Error: no ID for constraint linkend: ITch03-25. Error: no ID for constraint linkend: IG31371888141. Error: no ID for constraint linkend: IG31371888150. Error: no ID for constraint linkend: IG31371888149. Error: no ID for constraint linkend: IG31371888148. Error: no ID for constraint linkend: ITch03-30. Error: no ID for constraint linkend: IG31371888140. Error: no ID for constraint linkend: IG31371888152. Error: no ID for constraint linkend: IG31371888145. Error: no ID for constraint linkend: IG31371888125. Error: no ID for constraint linkend: IG31371888126. Error: no ID for constraint linkend: IG31371888123. Running: /usr/local/bin/wkhtmltopdf .... """ To me these ID do exist and I cannot see anything all too special about them. For example: """ ${PCP_DIR}/etc/pcp.conf ${PCP_DIR}/etc/pcp.conf filePCP configuration and environment file. """ Is there anything obvious I am missing, or are there some steps I should take to troubleshoot this further? Feel free to clue me in as I have just started looking at publican, I am complete newbie. Thanks and regards, Michele [1] https://github.com/performancecopilot/pcp/tree/dev/books/PCP_UAG -- Michele Baldessari C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D From michele at acksyn.org Thu Nov 13 07:15:11 2014 From: michele at acksyn.org (Michele Baldessari) Date: Thu, 13 Nov 2014 08:15:11 +0100 Subject: [publican-list] Error: no ID for constraint linkend In-Reply-To: <20141112155546.GA4056@fante.int.rhx> References: <20141112155546.GA4056@fante.int.rhx> Message-ID: <20141113071511.GA13142@fante.int.rhx> On Wed, Nov 12, 2014 at 04:55:46PM +0100, Michele Baldessari wrote: > """ > > ${PCP_DIR}/etc/pcp.conf > ${PCP_DIR}/etc/pcp.conf filePCP > configuration and environment file. > > """ Well so it turns out a few pages above the definition of those IDs there was a condition="foobar" which did not appear where those IDs were used, hence the barfing. Sorry for the noise. -- Michele Baldessari C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D From michele at acksyn.org Sun Nov 16 20:54:20 2014 From: michele at acksyn.org (Michele Baldessari) Date: Sun, 16 Nov 2014 21:54:20 +0100 Subject: [publican-list] Adding divs before and after the book content Message-ID: <20141116205420.GA27333@marquez.int.rhx> Hi all, so after a bit of work, I managed to add headers and footers and tweak the css in my brand [1] so that things look more or less like I'd like them to. The last thing I'd need to do to get the output fitting with the website, is to place any html content between a few
tags. I cannot add "
" to my header.html and "
" to the footer.html, because xslt will complain that the there is a tag mismatch. Right now I work around this with some scipts adding the divs on the created html output. What would be the proper clean way to achieve this? Is there an example brand around doing this (I've failed to find any so far) Thanks, Michele [1] https://github.com/mbaldessari/pcpwebng/tree/master/pcp-brand -- Michele Baldessari C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D From jfearn at redhat.com Mon Nov 17 00:44:23 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Mon, 17 Nov 2014 10:44:23 +1000 Subject: [publican-list] Adding divs before and after the book content In-Reply-To: <20141116205420.GA27333@marquez.int.rhx> References: <20141116205420.GA27333@marquez.int.rhx> Message-ID: <546944E7.10405@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Michele, On 11/17/2014 06:54 AM, Michele Baldessari wrote: > Hi all, > > so after a bit of work, I managed to add headers and footers and tweak the css in my brand [1] so that things look more or less like I'd like them to. > > The last thing I'd need to do to get the output fitting with the website, is to place any html content between a few
tags. I cannot add "
" to my header.html and "
" to > the footer.html, because xslt will complain that the there is a tag mismatch. > > Right now I work around this with some scipts adding the divs on the created html output. What would be the proper clean way to achieve this? Is there an example brand around doing this (I've failed to find any so > far) You need to override chunk-element-content for html and process.root for html-single, then you can wrap the calls to header and footer with your div. Also you should beware of your xsl:imports, e.g. your html.xsl files has: This is the file for FOP output and probably won't work with the publican common XSL which uses: Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer Hosted & Shared Services Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUaUTnAAoJELs3R4zxGZvKP7cH/jYpoqVEs6RlmOg1DvSWj7Ay +3FaYqfJ1/8ACKf7YDg1GpRkBWhaPmxBDnP3yhCUF8/cWzm+2GcS43S8ybaf+/Nj xRj8bgNXdWEJoPGInfKhC9NEIiz5SvQYk+ek+cse0eqmfMKu2tWZwhETBvhf52QY /624FR5IoTQCOFLaxAoHK+BG0RXV4Eh/5e1jPFQ2sKW5xvmDNqPUBSPVc/0EoWU5 Vfm7d1sEp2DcAeYyh2bfVEdxf4CpkqdmGOaKvGUdIAN8/qXoArLzpGDb5TQe0GxK 8oWFa7nUXbFRO0MrzSwwC0iO39jYOxQQ7iYreekp8CPycvE8g+12Pv5XLfwMkZI= =weZ5 -----END PGP SIGNATURE----- From michele at acksyn.org Tue Nov 18 07:44:29 2014 From: michele at acksyn.org (Michele Baldessari) Date: Tue, 18 Nov 2014 08:44:29 +0100 Subject: [publican-list] Adding divs before and after the book content In-Reply-To: <546944E7.10405@redhat.com> References: <20141116205420.GA27333@marquez.int.rhx> <546944E7.10405@redhat.com> Message-ID: <20141118074429.GA6239@marquez.int.rhx> Hi Jeff, On Mon, Nov 17, 2014 at 10:44:23AM +1000, Jeff Fearn wrote: > On 11/17/2014 06:54 AM, Michele Baldessari wrote: > > so after a bit of work, I managed to add headers and footers and tweak the css in my brand [1] so that things look more or less like I'd like them to. > > > > The last thing I'd need to do to get the output fitting with the website, is to place any html content between a few
tags. I cannot add "
" to my header.html and "
" to > > the footer.html, because xslt will complain that the there is a tag mismatch. > > > > Right now I work around this with some scipts adding the divs on the created html output. What would be the proper clean way to achieve this? Is there an example brand around doing this (I've failed to find any so > > far) > > You need to override chunk-element-content for html and process.root for html-single, then you can wrap the calls to header and footer with your div. Ah perfect, thanks. I got it to work with this ;) > Also you should beware of your xsl:imports, e.g. your html.xsl files has: > > > > This is the file for FOP output and probably won't work with the publican common XSL which uses: > > Ah ok. While I started from the clusterlabs brand, I also checked and the fedora brand has the same import in html.xsl: Is it a bug there as well, or is that brand doing something differently? Thanks a lot and regards, Michele -- Michele Baldessari C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D From jfearn at redhat.com Tue Nov 18 22:31:08 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Wed, 19 Nov 2014 08:31:08 +1000 Subject: [publican-list] Adding divs before and after the book content In-Reply-To: <20141118074429.GA6239@marquez.int.rhx> References: <20141116205420.GA27333@marquez.int.rhx> <546944E7.10405@redhat.com> <20141118074429.GA6239@marquez.int.rhx> Message-ID: <546BC8AC.20606@redhat.com> On 11/18/2014 05:44 PM, Michele Baldessari wrote: > Hi Jeff, > > On Mon, Nov 17, 2014 at 10:44:23AM +1000, Jeff Fearn wrote: >> On 11/17/2014 06:54 AM, Michele Baldessari wrote: >>> so after a bit of work, I managed to add headers and footers and tweak the css in my brand [1] so that things look more or less like I'd like them to. >>> >>> The last thing I'd need to do to get the output fitting with the website, is to place any html content between a few
tags. I cannot add "
" to my header.html and "
" to >>> the footer.html, because xslt will complain that the there is a tag mismatch. >>> >>> Right now I work around this with some scipts adding the divs on the created html output. What would be the proper clean way to achieve this? Is there an example brand around doing this (I've failed to find any so >>> far) >> >> You need to override chunk-element-content for html and process.root for html-single, then you can wrap the calls to header and footer with your div. > > Ah perfect, thanks. I got it to work with this ;) > >> Also you should beware of your xsl:imports, e.g. your html.xsl files has: >> >> >> >> This is the file for FOP output and probably won't work with the publican common XSL which uses: >> >> > > Ah ok. While I started from the clusterlabs brand, I also checked and > the fedora brand has the same import in html.xsl: > > > > Is it a bug there as well, or is that brand doing something differently? That's a bug IMO. Cheers, Jeff.