Re: [docbook-apps] Regarding the project DocBook to Word XML roundtripping XSLs
On 02/04/12 05:03, Buddhiprabha Erabadda wrote: Are there any other links to resources which might be useful to further study about the project DocBook to Word XML roundtripping XSLs? I am new to DocBook and I would appreciate advice regarding the project. Thank you in advance. http://www.zveno.com/open_source/dbk-wordml.html Steve has been doing this for some time? regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk - 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] mediaobject with base64 encoded image data
Good morning, We plan to XSL transform a dynamically generated docbook including images to FO and subsequently process that to PDF. Therefore I'm digging only in the docbook to FO stylesheets. While investigating that we had the idea to base64 encode images and include them in the docbook because it enables us to bypass image caching while generating PDF on the fly. To include a base64 image I had the idea to write it as: -- quote -- docbook:figure docbook:titleSample/docbook:title docbook:mediaobject docbook:imageobject fo:external-graphic src=data:image/jpeg;base64,XYZ width=auto height=auto content-width=auto content-height=auto content-type=content-type:image/jpeg / /docbook:imageobject /docbook:mediaobject /docbook:figure -- /quote -- But unfortunately the stylesheet (1.75.2 release) would wrap that within a fo:instream-foreign-object / and that causes the FO processor to fail including the base64 encoded image. Therefore I changed the docbook xsl stylesheet (based on the 1.75.2 release) in the file fo/graphics.xsl slightly: -- diffquote -- xsl:template match=imageobject xsl:choose xsl:when test=imagedata xsl:apply-templates select=imagedata/ /xsl:when +xsl:when test=fo:external-graphic + xsl:apply-templates mode=copy-all / +/xsl:when xsl:otherwise fo:instream-foreign-object xsl:apply-templates mode=copy-all/ /fo:instream-foreign-object /xsl:otherwise /xsl:choose /xsl:template -- /diffquote -- This patch drops the fo:instream-foreign-object / tag when encountering fo:external-graphic /. Does this patch break other things? Would you guys do it somehow different? Cheers, Dominik - 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] Extend supported output formats
On 1.4.2012 20:45, gihan karunarathne wrote: Thank you Jirka for your appreciation. I have to submit a proposal for this DocBook idea. So, as I mentioned above I like to implement Docbook support outfut format which developed using phonegap [1] and a Android Application which create apk for DocBook documentations with including some of native support and rich specific multi-tough features. But you mentioned that instead of going though different native formats it's is better to use technology like phonegap. So I need to know that do you think, it isn't necessary to implement in Android because of phonegap can cover Android also ?. (Hope you got my point) Hi, I think that it's too early to decide on particular technology to use. You can write proposal in a more generic way, e.g. support output suitable for use on iOS and Android devices. Later one you can test if PhoneGap is powerfull enough for you needs. If so, you can relly only on it and deliver to all supported platforms: http://phonegap.com/about/features If you will recognize that PhoneGap is not suitable, you will have to develop two applications one for iOS and second for Android. Still you can reuse DocBook generated content like HTML files and support files for ToC and index. Kasun said that it is better to do the implementation in one format and then move to another. Before GSoC announced, according to the idea page it said that 'it is prefer to choose two types'. David also highlight it. So, is it have enough work load to do over summer ? No worries, there are still things to improve in every app. -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing -- OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member -- signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] mediaobject with base64 encoded image data
Hi, That customization looks fine to me. What XSL-FO processor are you using? Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Dominik Psenner dpsen...@gmail.com To: docbook-apps@lists.oasis-open.org Sent: Monday, April 02, 2012 12:30 AM Subject: [docbook-apps] mediaobject with base64 encoded image data Good morning, We plan to XSL transform a dynamically generated docbook including images to FO and subsequently process that to PDF. Therefore I'm digging only in the docbook to FO stylesheets. While investigating that we had the idea to base64 encode images and include them in the docbook because it enables us to bypass image caching while generating PDF on the fly. To include a base64 image I had the idea to write it as: -- quote -- docbook:figure docbook:titleSample/docbook:title docbook:mediaobject docbook:imageobject fo:external-graphic src=data:image/jpeg;base64,XYZ width=auto height=auto content-width=auto content-height=auto content-type=content-type:image/jpeg / /docbook:imageobject /docbook:mediaobject /docbook:figure -- /quote -- But unfortunately the stylesheet (1.75.2 release) would wrap that within a fo:instream-foreign-object / and that causes the FO processor to fail including the base64 encoded image. Therefore I changed the docbook xsl stylesheet (based on the 1.75.2 release) in the file fo/graphics.xsl slightly: -- diffquote -- xsl:template match=imageobject xsl:choose xsl:when test=imagedata xsl:apply-templates select=imagedata/ /xsl:when +xsl:when test=fo:external-graphic + xsl:apply-templates mode=copy-all / +/xsl:when xsl:otherwise fo:instream-foreign-object xsl:apply-templates mode=copy-all/ /fo:instream-foreign-object /xsl:otherwise /xsl:choose /xsl:template -- /diffquote -- This patch drops the fo:instream-foreign-object / tag when encountering fo:external-graphic /. Does this patch break other things? Would you guys do it somehow different? Cheers, Dominik - 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
Re: [docbook-apps] Regarding the project DocBook to Word XML roundtripping XSLs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/02/2012 01:31 AM, davep wrote: On 02/04/12 05:03, Buddhiprabha Erabadda wrote: Are there any other links to resources which might be useful to further study about the project DocBook to Word XML roundtripping XSLs? I am new to DocBook and I would appreciate advice regarding the project. Thank you in advance. http://www.zveno.com/open_source/dbk-wordml.html Steve has been doing this for some time? CCing Steve. Yes. The item on the ideas page is to advance Steve's work. Steve has indicated he would be willing to mentor a GSoC project this year. David -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPefbYAAoJEMHeSXG7afUhcDYH/3C/uC1jyMVVifFobSI3HPsE uWzB8Gfxy7S/21lYQs4u1wlcePpR+vqCJPoJxTM+WTecYw6jMbZ8vL2xO1lgPaW6 qbDHwyZp6Sm6HByu2hri7zgRm2g8E6biKz2XpGmZD459M8HjWWAo7wIbfJVCRW4z pXcPkHG/CS5+kV0GwArJQkmcyBCFISGJ6jkBR8B3DbbI1qROzih6hAZlyrEJfh3v 7finxU71TTUMnVZspLNK/4JoFkYgieGQW92jlFgYoPZM68feBgia7LZd4Zmu73+Y HZNytye1tkfwFHXs+1ZeaPhbEW0Fa3vaCe/6zS+HAQ3vjdmMVDgn346Ap7nKI8A= =90v7 -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org