Re: [docbook-apps] Styling a header
Hi Mads, The current page title shows in the chunk header by default. It is controlled by the stylesheet param $navig.showtitles, which is set to 1 by default. I suspect something you did in your customization turned that off. In the original header.navigation template, this line generates the title of the current section: xsl:apply-templates select=. mode=object.title.markup/ Since I'm not sure how you customized that template, I can't tell you where to put it. Hopefully you can figure it out. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Mads Ipsen To: docbook-apps@lists.oasis-open.org Sent: Thursday, September 08, 2011 4:58 AM Subject: [docbook-apps] Styling a header Hi, I've adjusted xsl:template name=header.navigation from chunk-common.xsl to obtain the desired appearance of prev and next. However, I also want the title of the current page to appear in the middle of the header (see attachment). How do I achieve that? Best regards, Mads -- +-+ | Mads Ipsen | +--+--+ | Florsgade 7, 4. th | | | DK-2200 København N | phone: +45-29716388 | | Denmark | email: mads.ip...@gmail.com | +--+--+ -- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Styling a header
Hi Bob, Thanks a lot. Mads On 09/12/2011 08:00 AM, Bob Stayton wrote: Hi Mads, The current page title shows in the chunk header by default. It is controlled by the stylesheet param $navig.showtitles, which is set to 1 by default. I suspect something you did in your customization turned that off. In the original header.navigation template, this line generates the title of the current section: xsl:apply-templates select=. mode=object.title.markup/ Since I'm not sure how you customized that template, I can't tell you where to put it. Hopefully you can figure it out. Bob Stayton Sagehill Enterprises b...@sagehill.net mailto:b...@sagehill.net - Original Message - *From:* Mads Ipsen mailto:madsip...@gmail.com *To:* docbook-apps@lists.oasis-open.org mailto:docbook-apps@lists.oasis-open.org *Sent:* Thursday, September 08, 2011 4:58 AM *Subject:* [docbook-apps] Styling a header Hi, I've adjusted xsl:template name=header.navigation from chunk-common.xsl to obtain the desired appearance of prev and next. However, I also want the title of the current page to appear in the middle of the header (see attachment). How do I achieve that? Best regards, Mads -- +-+ | Mads Ipsen | +--+--+ | Florsgade 7, 4. th | | | DK-2200 København N | phone: +45-29716388 | | Denmark | email:mads.ip...@gmail.com | +--+--+ - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- +-+ | Mads Ipsen | +--+--+ | Florsgade 7, 4. th | | | DK-2200 København N | phone: +45-29716388 | | Denmark | email: mads.ip...@gmail.com | +--+--+
[docbook-apps] Using fox: extensions
Using FOP 1.0. How can I access the following FOP extension through the XSL stylesheets? fox:orphan-content-limit -- View this message in context: http://old.nabble.com/Using-fox%3A-extensions-tp32446134p32446134.html Sent from the docbook apps mailing list archive at Nabble.com. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Processing cells in CALS tables
I'd like to apply an XSL transformation to my DocBook (CALS-style) tables which outputs each cell of each table, together with the label of its row(s) and column(s). That is, for a table that looks like | Col1Label | Col2Label| -| Row1Label | Cell1| Cell2| -| Row2Label | Cell3| Row3Label || -| the transform would output something like ... Entry Cell1 RowLabels RowLabel text=Row1Label/ /RowLabels ColLabels ColLabel text=Col1Label/ /ColLabels /Entry Entry Cell2 RowLabels RowLabel text=Row1Label/ /RowLabels ColLabels ColLabel text=Col2Label/ /ColLabels /Entry Entry Cell3 RowLabels RowLabel text=Row2Label/ RowLabel text=Row3Label/ /RowLabels ColLabels ColLabel text=Col1Label/ ColLabel text=Col2Label/ /ColLabels /Entry ... Before I go off and try to do something like that, is there any existing transform that does that? I'd prefer XSLT or Python, but I'd accept other solutions. BTW, the application is that we're writing grammars in DocBook, and if a table represents a paradigm, then its entries--the forms of the paradigm--are test cases for our parser. I can extract the test cases easily, but it would be nice to also extract an indication of the expected parse, which is partly indicated by the row and column labels. I have thought of going in the opposite direction--that is, creating an XML structure for paradigms, then automatically converting that into a DocBook table. But there are other problems with that. Mike Maxwell - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Configuring bookinfo elements in HTML output
I notice that when I use pubsnumber in my bookinfo markup, the element is reproduced in PDF output. This is because I have configured the frontpage.templates.xml file. But pubsnumber does not appear in HTML output. Where can I configure this? Is there an equivalent of the frontpage.templates file for HTML? -- View this message in context: http://old.nabble.com/Configuring-%3Cbookinfo%3E-elements-in-HTML-output-tp32448520p32448520.html Sent from the docbook apps mailing list archive at Nabble.com. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Configuring bookinfo elements in HTML output
Am I right in saying that you use the fo/titlepage.templates.xsl file for PDF front pages, and the html/titlepage.templates.xsl file for HTML front pages? mike 675 wrote: I notice that when I use pubsnumber in my bookinfo markup, the element is reproduced in PDF output. This is because I have configured the frontpage.templates.xml file. But pubsnumber does not appear in HTML output. Where can I configure this? Is there an equivalent of the frontpage.templates file for HTML? -- View this message in context: http://old.nabble.com/Configuring-%3Cbookinfo%3E-elements-in-HTML-output-tp32448520p32450246.html Sent from the docbook apps mailing list archive at Nabble.com. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Configuring bookinfo elements in HTML output
Does customizing an HTML title page work in the same way as for a PDF title page? I attempted to create a custom titlepage.templates.xsl file for HTML output. Take a copy of html/titlepage.templates.xml, name it mytitle.xml. Edit the book section to include pubsnumber. Generate the .xsl file: xsltproc -o mytitle.xsl \ docbook-1.76.1/html/titlepage.templates.xsl \ mytitle.xml The command completes with no errors, but creates an empty file, mytitle.xsl. mike 675 wrote: Am I right in saying that you use the fo/titlepage.templates.xsl file for PDF front pages, and the html/titlepage.templates.xsl file for HTML front pages? mike 675 wrote: I notice that when I use pubsnumber in my bookinfo markup, the element is reproduced in PDF output. This is because I have configured the frontpage.templates.xml file. But pubsnumber does not appear in HTML output. Where can I configure this? Is there an equivalent of the frontpage.templates file for HTML? -- View this message in context: http://old.nabble.com/Configuring-%3Cbookinfo%3E-elements-in-HTML-output-tp32448520p32450411.html Sent from the docbook apps mailing list archive at Nabble.com. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Configuring bookinfo elements in HTML output
Fixed. I needed to use: docbook-1.76.1/template/titlepage.xsl mike 675 wrote: Does customizing an HTML title page work in the same way as for a PDF title page? I attempted to create a custom titlepage.templates.xsl file for HTML output. Take a copy of html/titlepage.templates.xml, name it mytitle.xml. Edit the book section to include pubsnumber. Generate the .xsl file: xsltproc -o mytitle.xsl \ docbook-1.76.1/html/titlepage.templates.xsl \ mytitle.xml The command completes with no errors, but creates an empty file, mytitle.xsl. mike 675 wrote: Am I right in saying that you use the fo/titlepage.templates.xsl file for PDF front pages, and the html/titlepage.templates.xsl file for HTML front pages? mike 675 wrote: I notice that when I use pubsnumber in my bookinfo markup, the element is reproduced in PDF output. This is because I have configured the frontpage.templates.xml file. But pubsnumber does not appear in HTML output. Where can I configure this? Is there an equivalent of the frontpage.templates file for HTML? -- View this message in context: http://old.nabble.com/Configuring-%3Cbookinfo%3E-elements-in-HTML-output-tp32448520p32450756.html Sent from the docbook apps mailing list archive at Nabble.com. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org