Re: Re: [docbook-apps] Book title in page footer
Hi, I understand, there is no value with the book title: Here is the code that work perfectly: xsl:template match=book/title mode=footer xsl:apply-templates / /xsl:template ... xsl:when test=($sequence = 'odd' or $sequence = 'even') and $position = 'center' xsl:apply-templates select=ancestor-or-self::book/title mode=footer / /xsl:when Thanks Steffen Von:Markus Hoenicka markus.hoeni...@mhoenicka.de An: docbook-apps@lists.oasis-open.org Datum: 01.12.2010 17:02 Betreff:Re: [docbook-apps] Book title in page footer Steffen Köhler s.koeh...@goepel.com was heard to say: xsl:when test=($sequence = 'odd' or $sequence = 'even') and $position = 'center' xsl:value-of select=ancestor-or-self::book/title /xsl:when Works also fine but the superscript is removed. I think the reason is the ancestor-or-self. Hi, your code extracts the value of the title element, but does not render the element along with all children. However, this is required to preserve the superscript. The following (entirely untested, ymmv) code is supposed to process the element: ... xsl:template select=ancestor-or-self::book/title mode=footer/ ... The mode attribute is required as you want the title to be processed in a particular way that matches the footer style. Add a template with the same mode attribute to provide your custom processing of this element: xsl:template match=book/title mode=footer !-- process element here -- /xsl:template HTH, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org Mit freundlichen Grüßen / Kind regards Steffen Köhler __ GÖPEL electronic GmbH Göschwitzer Straße 58/60 07745 Jena / Germany Tel.: +49-3641-6896-661 Fax: +49-3641-6896-944 E-Mail: s.koeh...@goepel.com http://www.goepel.com Sitz der Gesellschaft: GÖPEL electronic GmbH, Göschwitzer Straße 58/60, D-07745 Jena Geschäftsführer: Holger Göpel, Manfred Schneider, Thomas Wenzel Registergericht: Amtsgericht Jena HR B 201550
Re: [docbook-apps] Customazion layer
Hi, it is better to have different customization layers for the different output files. We have also different languages and there we have different and common parts for one output format. The main cust file is custHtml_de and this includes cust_Html which contains all modifications for our Html output independent from the language. Best regards Steffen Von:Lwam Berhane berh...@punkt.de An: docbook-apps@lists.oasis-open.org Datum: 01.12.2010 11:30 Betreff:[docbook-apps] Customazion layer I made my experiences with FOP, now I want learn sth. about the html output! First question: Can I put my customazion layer for both html and print output into one file? Best regards Lwam -- Gruß Lwam Berhane punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe i...@punkt.dehttp://punkt.de/ AG Mannheim 108285 Gf: Jürgen Egeling - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org Mit freundlichen Grüßen / Kind regards Steffen Köhler __ GÖPEL electronic GmbH Göschwitzer Straße 58/60 07745 Jena / Germany Tel.: +49-3641-6896-661 Fax: +49-3641-6896-944 E-Mail: s.koeh...@goepel.com http://www.goepel.com Sitz der Gesellschaft: GÖPEL electronic GmbH, Göschwitzer Straße 58/60, D-07745 Jena Geschäftsführer: Holger Göpel, Manfred Schneider, Thomas Wenzel Registergericht: Amtsgericht Jena HR B 201550
[docbook-apps] HTML Output navaigational graphics
Hi guys! I want chunked my HTML output with xsltproc, DocBook v5.That works fine!But I want to have the navigation graphics instead of words like Next or Previous. Any proposals, why it is not working? I customize my stylesheet like this: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- import Docbook XSL stylesheet -- xsl:import href=./docbook_config/docbook-xsl/docbook-xsl-ns-1.76.1/html/chunk.xsl / xsl:import href=./docbook_config/config/documentation.xsl / !-- PNG images for HTML rendering SVG is not well supported in several browsers -- xsl:param name=header.image.filenameimages/png/logo_punktde.png/xsl:param xsl:param name=admon.graphics select=1 / xsl:param name=admon.graphics.pathimages/png//xsl:param xsl:param name=admon.graphics.extension.png/xsl:param xsl:param name=callout.graphics.pathimages/png/callouts//xsl:param xsl:param name=suppress.navigation select=0/ xsl:param name=navig.graphics.extension select='.png'/ xsl:param name=navig.graphics select=1/ xsl:param name=navig.graphics.pathimages/png//xsl:param xsl:param name=navig.showtitles0/xsl:param /xsl:stylesheet -- Gruß Lwam Berhane punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe i...@punkt.dehttp://punkt.de/ AG Mannheim 108285 Gf: Jürgen Egeling - 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] HTML Output navaigational graphics
Hi, Your stylesheet works (produces only graphics in chunked headers and footers) when I comment out this line: xsl:import href=./docbook_config/config/documentation.xsl / Perhaps something in that stylesheet module is redefining the headers and footers. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Lwam Berhane berh...@punkt.de To: docbook-apps@lists.oasis-open.org Sent: Thursday, December 02, 2010 1:10 AM Subject: [docbook-apps] HTML Output navaigational graphics Hi guys! I want chunked my HTML output with xsltproc, DocBook v5.That works fine!But I want to have the navigation graphics instead of words like Next or Previous. Any proposals, why it is not working? I customize my stylesheet like this: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xmlns:fo=http://www.w3.org/1999/XSL/Format; !-- import Docbook XSL stylesheet -- xsl:import href=./docbook_config/docbook-xsl/docbook-xsl-ns-1.76.1/html/chunk.xsl / xsl:import href=./docbook_config/config/documentation.xsl / !-- PNG images for HTML rendering SVG is not well supported in several browsers -- xsl:param name=header.image.filenameimages/png/logo_punktde.png/xsl:param xsl:param name=admon.graphics select=1 / xsl:param name=admon.graphics.pathimages/png//xsl:param xsl:param name=admon.graphics.extension.png/xsl:param xsl:param name=callout.graphics.pathimages/png/callouts//xsl:param xsl:param name=suppress.navigation select=0/ xsl:param name=navig.graphics.extension select='.png'/ xsl:param name=navig.graphics select=1/ xsl:param name=navig.graphics.pathimages/png//xsl:param xsl:param name=navig.showtitles0/xsl:param /xsl:stylesheet -- Gruß Lwam Berhane punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe i...@punkt.dehttp://punkt.de/ AG Mannheim 108285 Gf: Jürgen Egeling - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - 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] Fo and SVG
I am using fop for pdf output. I have successfully used svg images in my fo covers using docbook customizations with specific fo output. Now I want to use svg images in figures. Has anyone done a docbook customization to do the right thing for using svg image files as formal figures? Thanks. -Tom Thomas M. Browder, Jr. Niceville, Florida USA
[docbook-apps] docbook ns vs. vanilla docbook? (epub) when to use?
In a separate thread (I don't remember where) Keith F. mentioned that for the epub stylesheets, I should use the vanilla docbook xsl. This was in reference to a bug. Keith, will this continue to be your recommendation for the medium term, or was this only for that particular release? Also, are there particular contexts in which it would be better to use docbook-ns and certain contexts not to? Does it depend only on the output type? rj -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 http://www.robertnagle.info - 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] Fo and SVG
Tom, I use SVG files in my formal figures and they work very well. However, if you are using FOP, you need to install a addon package so that FOP can deal with the SVG natively. The package I use is fop-pdf-images. Its a jar file that gets put in the FOP classpath. So this is how it looks as a figure: figure titleBasic XML Documentation Flow/title mediaobject imageobject role=fo imagedata align=center fileref=basicFlow.svg width=5in format=SVG / /imageobject imageobject role=html imagedata align=center fileref=basicFlow.png width=5in format=PNG / /imageobject /mediaobject /figure Regards, Dean Nelson In a message dated 12/02/10 10:15:12 Pacific Standard Time, tom.brow...@gmail.com writes: I am using fop for pdf output. I have successfully used svg images in my fo covers using docbook customizations with specific fo output. Now I want to use svg images in figures. Has anyone done a docbook customization to do the right thing for using svg image files as formal figures? Thanks. -Tom Thomas M. Browder, Jr. Niceville, Florida USA
Re: [docbook-apps] Fo and SVG
Whoops - airball! The SVG should be handled natively in FOP right now! My last reply was for using PDF images embedded into FO in FOP 1.0. Using PDFs do help with visual clarity in FOP IF you have vector based PDFs (not bitmapped imaged). We use PDFs for equipment drawings in our docs. You can find this plugin at http://www.jeremias-maerki.ch/download/fop/pdf-images/ That said the XML code is still a valid method for SVG in figures. Sorry to confuse the issue. Regards, Dean Nelson In a message dated 12/02/10 11:14:02 Pacific Standard Time, deannelson writes: Tom, I use SVG files in my formal figures and they work very well. However, if you are using FOP, you need to install a addon package so that FOP can deal with the SVG natively. The package I use is fop-pdf-images. Its a jar file that gets put in the FOP classpath. So this is how it looks as a figure: figure titleBasic XML Documentation Flow/title mediaobject imageobject role=fo imagedata align=center fileref=basicFlow.svg width=5in format=SVG / /imageobject imageobject role=html imagedata align=center fileref=basicFlow.png width=5in format=PNG / /imageobject /mediaobject /figure Regards, Dean Nelson In a message dated 12/02/10 10:15:12 Pacific Standard Time, tom.brow...@gmail.com writes: I am using fop for pdf output. I have successfully used svg images in my fo covers using docbook customizations with specific fo output. Now I want to use svg images in figures. Has anyone done a docbook customization to do the right thing for using svg image files as formal figures? Thanks. -Tom Thomas M. Browder, Jr. Niceville, Florida USA
Re: [docbook-apps] Fo and SVG
On Thu, Dec 2, 2010 at 12:34, Steve Johnson ste...@caringo.com wrote: right thing and formal figures are ambiguous. I agree, but I thought that should cue someone who has solved the problem. My immediate problem was trying to determine whether I should ping the fop list or not. Since fop handles my svg through the direct input I thought I would see if the docbook crowd had a solution. Looks like an fop question now, Thank. -Tom - 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] Fo and SVG
On Thu, Dec 2, 2010 at 13:21, deannelson deannel...@aol.com wrote: Whoops - airball! The SVG should be handled natively in FOP right now! My last reply was for Thanks, Dean, looks like I have an fop problem. -Tom Thomas M. Browder, Jr. Niceville, Florida USA - 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] docbook ns vs. vanilla docbook? (epub) when to use?
On Thu, Dec 2, 2010 at 10:42 AM, Robert Nagle idiotprogram...@gmail.com wrote: In a separate thread (I don't remember where) Keith F. mentioned that for the epub stylesheets, I should use the vanilla docbook xsl. There are a number of tradeoffs for the -NS versions for DocBook 5.0 documents, but I strongly recommend avoiding any DocBook-XSL-NS release if you're creating EPUB documents. The stylesheets have not been tested for the -NS release and suffer a number of bugs. I'm not aware of any reason to avoid -NS for other outputs. Keith - 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] docbook ns vs. vanilla docbook? (epub) when to use?
Is there any place where we can learn about the problems? I used the -ns stylesheets for ePub output (as I already do for other outputs) and didn't notice any issues. On Thu, Dec 2, 2010 at 8:46 PM, Keith Fahlgren abdela...@gmail.com wrote: On Thu, Dec 2, 2010 at 10:42 AM, Robert Nagle idiotprogram...@gmail.com wrote: In a separate thread (I don't remember where) Keith F. mentioned that for the epub stylesheets, I should use the vanilla docbook xsl. There are a number of tradeoffs for the -NS versions for DocBook 5.0 documents, but I strongly recommend avoiding any DocBook-XSL-NS release if you're creating EPUB documents. The stylesheets have not been tested for the -NS release and suffer a number of bugs. I'm not aware of any reason to avoid -NS for other outputs. Keith - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org -- Ivan Ristic ModSecurity Handbook [http://www.modsecurityhandbook.com] SSL Labs [https://www.ssllabs.com/ssldb/] - 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] Fo and SVG
Tom A couple of things: 1. check the FO output to see what that area looks like. With the example I used, here is the output: fo:block id=id522069 text-align=center fo:external-graphic src=url(images/basicFlow.svg) width=5in height=auto content-width=scale-to-fit content-height=scale-to-fit content-type=content-type:image/svg+xml text-align=center/ /fo:block Make sure the image/svg+xml shows up. 2. Try adding the 'format=SVG ' to the imagedata line imagedata align=center fileref=basicFlow.svg width=5in format=SVG / Dean Dean In a message dated 12/02/10 12:14:55 Pacific Standard Time, tom.brow...@gmail.com writes: On Thu, Dec 2, 2010 at 14:09, deannelson deannel...@aol.com wrote: Tom What actual problem are you having? Dean, I'm using db 5 and fop 1.0 on Ubuntu and get the following error: Dec 2, 2010 2:05:08 PM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not available. URI: ./images/era-1.svg. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for ./images/era-1.svg (See position 25375:172) Dec 2, 2010 2:05:08 PM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: ./images/era-1.svg. (No context info available) My docbook code looks pretty much like that that has been shown here. Here's my db source for the problem figure: figure id=era-1 titleA section of a typical Explosive Reactive Armor (ERA) device/title mediaobject imageobject role='html' imagedata align='center' width='5.5in' scalefit='1' fileref=./images/era-1-96dpi.png /!-- was: width='100%' -- /imageobject imageobject role='fo' imagedata align='center' width='5.5in' scalefit='1' fileref=./images/era-1.svg / /imageobject /mediaobject /figure Thanks. -Tom
Re: [docbook-apps] Fo and SVG
Dean, and Steve, sorry for the trouble. I had a bad svg file. When I replaced it with a known good one all worked as advertised. Thanks for your help. Regards, -Tom Thomas M. Browder, Jr. Niceville, Florida USA - 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] epub parameters: explain
Which reminds me: What's the easiest way in your customization layer to suppress an single instance of a HTML element? I don't understand the question. Can you provide an example of what you are trying to do? Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Robert Nagle idiotprogram...@gmail.com To: Keith Fahlgren abdela...@gmail.com Cc: docbook-apps@lists.oasis-open.org Sent: Wednesday, December 01, 2010 11:45 PM Subject: Re: [docbook-apps] epub parameters: explain I've been studying the Mobipocket format (with Joshua Tallent's excellent book on Kindle formatting). Much of the limited styling available for it comes from HTML classes of elements having to do with presentation. This doesn't seem to be good semantics and frankly, doesn't seem very compatible with html generated from docbook. It seems the only way to get an epub ready for kindlegen is to do a lot of profiling.. Which reminds me: What's the easiest way in your customization layer to suppress an single instance of a HTML element? Robert On Thu, Dec 2, 2010 at 1:10 AM, Keith Fahlgren abdela...@gmail.com wrote: On Wed, Dec 1, 2010 at 10:53 PM, Robert Nagle idiotprogram...@gmail.com wrote: Hi, I browsed through the docbook.xsl file in the epub directory, and I see some unfamiliar parameters. Yes, most of them are not actually intended for external customization. Most I can guess the function of, but a few left me puzzled. Anyone know what they refer to: epub.cover.linear ? Some publishers prefer the cover (XHTML file) to be the first document displayed to a reader, while others want the first real bit of content. If epub.cover.linear is non-zero, the cover file will be marked as the first file to open (in the linear reading order of the OPF spine). More on the best practices around covers here: http://blog.threepress.org/2009/11/20/best-practices-in-epub-cover-images/ ade.extensions ? (Adobe digital editions?) Yes, Adobe Digital Editions, but unused at this time. Also, mobipocket requires a TOC in the main body but epub does not. if I want to suppress the TOC in the main body (while leaving the ebook reading software to construct it from the content.opf file) how would I do this? One technique for getting around this problem is described here: http://blog.threepress.org/2010/11/16/better-single-source-mobiepub-files/ ..that said, many folks generate a real EPUB and a highly degraded one for Mobi conversion. -- Robert Nagle 12777 Ashford Point Dr #1417 Houston, Texas 77082 713 893 3424 http://www.robertnagle.info - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - 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] How to insert material immediately after html and before /html tags in xhtml output
Greetings, I am writing a user manual in DocBook 5, and generating XHTML output with the xhtml style sheets from the docbook-xsl-ns-1.75.2 distribution I need to be able to do this when processing XHTML output using the xhtml style sheets: html xmlns=http://www.w3.org/1999/xhtml;!-- InstanceBegin template=/Templates/rulesWideAndNav.dwt codeOutsideHTMLIsLocked=false -- [...body of the transformed document...] !-- InstanceEnd --/html I have looked at the following: 1) The instructions at http://www.sagehill.net/docbookxsl/InsertExtHtml.html, Inserting external HTML code, under In the HEAD element. This results in the title element not appearing in the output and, of course, only affects material within the head element itself. 2) The instructions at http://www.sagehill.net/docbookxsl/HtmlHead.html, using the system.head.content template and the user.head.content templates. But these only affect material within the head element itself. Can I use the style sheets to insert an element *right after* the html tag and *right before* the /html tag? Thanks for your help. Best, Mike Mike Broschinsky Administrative Code Editor Utah State Division of Administrative Rules 801-538-3003 mbros...@utah.gov Because of the governor's Working 4 Utah initiative, office hours for the Division of Administrative Rules are 7 a.m. to 6 p.m., Monday through Thursday. The Division is closed on Friday. - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org