Letter in xsl
Hi there, I have some problems creating a certain XSL:FO file. I'd like to create series letters respective account statements for n-customers. The XML-Data is managed like followed: data page name Mr. X /name street X-Street 1 /street city Ownedtown /city header Accountstatement /header maintext Foo Bar /maintext column0 Documentnumber /column0 column1 Documenttext /column1 column2 Debit/Credit /column2 body voucher docnumber 1 /docnumber doctext Invoice /doctext amount 100 /amount /voucher . n-vouchers . voucher docnumber 100 /docnumber doctext Invoice /doctext amount 120 /amount /voucher /body /page page same as obove /page /data One 'page' is one customer with its n-Vouchers. The first page should contain receipient address, subject, columnnames, text etc and the list of vouchers. That works fine but when there are many vouchers, a second page ist printed, but with the receipient adress, subject etc. How to handle this?` The XSL-File: xsl:template match =/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-reference=main page-height=29.7cm page-width=21cm margin-top=6.0cm margin-bottom=1.5cm margin-left=1.5cm margin-right=1.5cm fo:region-before extent=8.0cm/ fo:region-after extent=2.0cm/ fo:region-body margin-top=7.0cm margin-bottom=0.5cm/ /fo:simple-page-master /fo:layout-master-set xsl:for-each select=data/page fo:page-sequence master-name=main initial-page-number=1 fo:static-content flow-name=xsl-region-before fo:table table-layout=fixed padding=3pt fo:table-column column-width=10cm/ fo:table-column column-width=8cm/ fo:table-header fo:table-row fo:table-cell fo:block text-align=left font-size=10pt font-family=Courier line-height=14pt xsl:apply-templates select=title/ fo:block/fo:block xsl:apply-templates select=name1/ fo:block/fo:block xsl:apply-templates select=name2/ fo:block/fo:block xsl:apply-templates select=street/ fo:block/fo:block xsl:apply-templates select=postalcode/xsl:apply-templates select=city/ /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell number-columns-spanned=2 fo:block font-family=Courier font-size=10pt text-align=left xsl:apply-templates select=header/ /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell number-columns-spanned=2 fo:block font-family=Courier font-size=10pt text-align=left xsl:apply-templates select=maintext/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table fo:table table-layout=fixed padding=1pt fo:table-column column-width=2.6cm/ fo:table-column column-width=2.0cm/ fo:table-column column-width=2.3cm/
RE: Compiled FOP versions
Head on over to http://www.webhostingtalk.com and search in the forums for discussions on hosting with Java support, or use their hosting request form to get a number of quotes. I think you'll be surprised at how inexpensive it can be. If you've had your current hosting plan for a few years, you might even save money *and* get Java support included. Blake -Original Message- From: Manuel Strehl [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 11:40 AM To: fop-users@xmlgraphics.apache.org Subject: Re: Compiled FOP versions Hi again. Thanks for the reply. My provider's got PHP and Perl running. But I only have 200MB of webspace and am not allowed to install things that need root rights. I also looked up the JSE package at sun.com, and the complete pack is ~150MB. Only the core files still need 100MB. That's a bit rough for only wanting to run the 7MB of FOP... But best thanks anyway. Manuel - 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]
Re: International Fonts - Problem with print
I tried something the other day and it worked... I removed the tags representing italic and bold.. font metrics-file=C:\projects\fop-0.20.5\fonts\arialuni.xml kerning=yes embed-file=C:\WINNT\Fonts\arialuni.ttf font-triplet name=arialuni style=normal weight=normal/ /font font metrics-file=C:\projects\fop-0.20.5\fonts\batang.xml kerning=yes embed-file=C:\WINNT\Fonts\batang.ttf font-triplet name=batang style=normal weight=normal/ /font But now I am unable tosee bold and italic in my rendered documents.. I guess I have to figure out if there is a different file for italic and bold part of these fonts ? To you point.. I am using JDK 1.4.2,and I have tried using 1.5 also... in both cases it gives me the same outcome.. Thanks, Sai On 11/21/05, Chris Bowditch [EMAIL PROTECTED] wrote: Sai N wrote: Hello, I am trying to use FOP to print certain documents (in FO) written in some International Languages (Japaneese, Korean, Chinese etc). For some reason the characters are printed at an angle, it looks like everything is in italic. Even the english characters in the document behave in the same way. If I try to create the PDF from the same FO, it works fine and looks great. I have tried using different fonts (Arial Unicode, MS Mincho, Batang) and this happens with everything The PrintRenderer uses Java AWT Fonts, so the problem is likely causedby your JDK. What JDK version and OS are you running on?Chris- To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL Question
http://www-128.ibm.com/developerworks/library/x-xslfo2app/#b? Read the Notice that the select attribute... blurb at the end of the b discussion here. Glen Dirk Bromberg wrote: Hi, i've a short xml-xsl-fo question. my xml is: textHere is some textB with bold B/Iand italicI/BI and bothI/B/ elements in it.text/ when i've a template for text, B and I how can i get the real text in the right order? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSL Question
Hey, thanks Glen. The trick is to select the text() or * :-) Dirk Glen Mazza wrote: http://www-128.ibm.com/developerworks/library/x-xslfo2app/#b? Read the Notice that the select attribute... blurb at the end of the b discussion here. Glen Dirk Bromberg wrote: Hi, i've a short xml-xsl-fo question. my xml is: textHere is some textB with bold B/Iand italicI/BI and bothI/B/ elements in it.text/ when i've a template for text, B and I how can i get the real text in the right order? - 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]
Re: XSL Question
On Nov 21, 2005, at 21:30, Dirk Bromberg wrote: Hey, thanks Glen. The trick is to select the text() or * :-) FYI: Everything you have posted was 100% correct (apart from the typos ;-)) All XSLT processors I tried this on simply do what they're supposed to. xsl:apply-templates / processes the nodes in the order they are encountered in (= document-order) unless explicitly asked to do otherwise. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]