[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Marking paras in colored text
Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "mike 675" <m_mclaug@yahoo.co.uk>
To: <docbook-apps@lists.oasis-open.org> Sent: Friday, October 07, 2011 1:27 AM Subject: Re: [docbook-apps] Marking paras in colored text
I also want to mark up some title page text in red. A red "draft" para on the front page, and also some paras in the legalnotice on page 2. Will your method handle this? Or do I need to add some customizations to my front page template? Bob Stayton wrote:Good try, but not quite. 8^) You will lose some features if you do it that way. To customize, a better practice is to find the base template for that element that already exists in the DocBook stylesheets, copy it to your customization layer, and modify the match attribute and anything you want in the body of the template. You'll see that the base template for match="para" uses fo:block instead of fo:inline. You can add your color to the fo:block. Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "mike 675" <m_mclaug@yahoo.co.uk>To: <docbook-apps@lists.oasis-open.org> Sent: Thursday, October 06, 2011 8:16 AM Subject: [docbook-apps] Marking paras in colored textI want to find all paras marked as role="high" and render them as red text in FO output. http://www.sagehill.net/docbookxsl/CustomInlines.html shows how to do this sort of thing when matching on inline text. Is it possible at block level? Here is my first attempt: <xsl:template match="para[@role='high']" <fo:inline color="red"> <xsl:apply-templates /> </fo:inline> </xsl:template> -- View this message in context: http://old.nabble.com/Marking-paras-in-colored-text-tp32600589p32600589.html Sent from the docbook apps mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org--View this message in context: http://old.nabble.com/Marking-paras-in-colored-text-tp32600589p32606274.htmlSent from the docbook apps mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]