Re: Watermark
Gang Li wrote: I made an image with Invalid as the red text in it and it seems working now. J Thanks. Another question, does anybody know how can I turn it 45 degrees? You will need to do this in the image itself, using appropriate image editor. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Layout question - part II
Hi again, My main page layout is like this: !-- layout information -- fo:layout-master-set fo:simple-page-master master-name=odd page-height=29.7cm page-width=21cm margin-top=3.00cm margin-bottom=2.90cm margin-left=2.1cm margin-right=2.1cm fo:region-body background-color=white column-count=2 column-gap=1.00cm margin-top=1.00cm margin-bottom=1.50cm margin-left=1.35cm margin-right=0.80cm/ fo:region-before extent=1.00cm region-name=non-blank-before-odd background-color=white / fo:region-after extent=1.50cm region-name=non-blank-after-odd background-color=white / /fo:simple-page-master fo:simple-page-master master-name=even page-height=29.7cm page-width=21cm margin-top=3.00cm margin-bottom=2.90cm margin-left=2.1cm margin-right=2.1cm !-- Problem starts here -- fo:region-body background-color=white column-count=2 column-gap=1.00cm margin-top=1.00cm margin-bottom=1.50cm margin-left=0.90cm margin-right=1.35cm/ fo:region-before extent=1.00cm region-name=non-blank-before-even background-color=white / !-- Problem ends here -- fo:region-after extent=1.50cm region-name=non-blank-after-even background-color=white / /fo:simple-page-master fo:page-sequence-master master-name=chapter1a fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=odd odd-or-even=odd / fo:conditional-page-master-reference master-reference=even odd-or-even=even / /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set !-- end: defines page layout -- This will make a page like this: +-+ | 1 | +-+ | | | | | | | 2a | 2b | | | | | | | | | | +-+ | 3 | +-+ 1. is the even-before 2a is column 1, 2b is column 2 3. is the even-after My goal was to assemble the page like: +-+ | 1 | | +--+ | | | | | | | | 2a | 2b | | | | | | | | | | +-+ | 3 | +-+ Using the precedence='false' and a even-before height='0cm' in the even-before definition, i managed to make the content flow in the column 2b as it is shown in my goal, but, the column 2a sticks behind the content of the even-before. If i set the height to 1cm, then, the column 2b will work ok also, but the even-before content disapears behind the content of column 2a. Thanx again for all the help, Luis Ferro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spam:HTML tags in XML with XSL-FO
Bear in mind that, when you put HTML tags into XML source files, those tags aren't HTML tags. They are XML elements, same as everything else in the document. By coincidence, they happen to have the same names as some HTML tags. In other words, HTML tags are just like other elements until an HTML parser gets them. Consequently, you can write templates to handle these source elements just as you would any other source elements. For FO output, those three could be: xsl:template match=br fo:block/ /xsl:template xsl:template match=i fo:inline font-style=italicxsl:apply-templates//fo:inline /xsl:template xsl:template match=b fo:inline font-weight=boldxsl:apply-templates//fo:inline /xsl:template Note: You should use apply-templates rather than value-of for situations like this because you may get another embedded element within the current element, as in biSome Text/i/b For HTML output, you can use copy-of, thus: xsl:templmate match=br xsl:copy-of select=./ /xsl:template xsl:templmate match=i xsl:copy-of select=./ /xsl:template xsl:templmate match=b xsl:copy-of select=./ /xsl:template Personally, I generally use one XML file and two XSL files (one for PDF and one for HTML). (In one weird case, I had eight XSL files against one DTD, but it's usually just two.) Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Vojko [EMAIL PROTECTED] 04/07/2005 07:49 AM Please respond to fop-users@xmlgraphics.apache.org To fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org cc Subject Spam:HTML tags in XML with XSL-FO Hi I have one XML for generating HTML with XSL and for generating PDF with XSL-FO. What would be the easiest and most convenient way to have HTML tags such as br, b or i inside XML and still could pars it to PDF with XSL-FO. The end result would have to be the same. In HTML and PDF...something in bold, italic...or what ever I defined with HTML tag in XML. Is this the right way to do it anyway? Regards, V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]