svg text and spacing
Hi Jake, This seems to be a specific svg question. You should ask it in a svg list. However, You can use this: svg:text x=... y=... text-anchor=end.../svg:text In a left-to-right context, your x coordinate corresponds to the right edge of the text box. You can then easily locate your chart. Pascal -Message d'origine- De : Jake Briggs [mailto:[EMAIL PROTECTED] I have a little problem. I need to draw a barchart in svg, imbedded in fo which is produced in xsl. The problem is, how do i know where to draw the y axis? What i mean is, If i want numbers on the left side of the axis thus : | 15 | 10 | 5 | 0 |___ | How do i know at what x position to draw the y axis? The scale could be 0 -5, 0 -100 etc... Is there a way to find out how wide/long a particular bit of text will be? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JFOR for fo:external-graphic
Hi, FOP 0.20.5 doesn't support content-xxx. Use 'height' and 'width' attributes instead. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] I use jfor but does not suppport content-height and content-width for external image. My problem is the on linux the image rendered are bigger than normal...on window that 's not happen... U know any alternative way for setting size for fo:external-graphic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to handle special characters?
Hi, Sometime ago, I've tried this code (this applies font-familly='Symbol' when needed) xsl:template match=text() xsl:call-template name=testCaractres xsl:with-param name=texte select=./ /xsl:call-template /xsl:template xsl:template name=testCaractres xsl:param name=texte/ xsl:variable name=expression#x0391;#x0392;#x0393;#x0394;#x0395;#x0396;#x0397;#x0398;#x0399;#x039A;#x039B;#x039C;#x039D;#x039E;#x039F;#x03A0;#x03A1;#x03A3;#x03A4;#x03A5;#x03A6;#x03A7;#x03A8;#x03A9;#x03B1;#x03B2;#x03B3;#x03B4;#x03B5;#x03B6;#x03B7;#x03B8;#x03B9;#x03BA;#x03BB;#x03BC;#x03BD;#x03BE;#x03BF;#x03C0;#x03C1;#x03C2;#x03C3;#x03C4;#x03C5;#x03C6;#x03C7;#x03C8;#x03C9;#x03D1;#x03D2;#x03D5;#x03D6;/xsl:variable xsl:variable name=texteTest select=translate($texte,$expression,'#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;#x0391;')/ xsl:choose xsl:when test=contains($texteTest,'#x0391;') xsl:variable name=texteAvant select=substring-before($texteTest,'#x0391;')/ xsl:variable name=positionCar select=string-length($texteAvant)+1/ xsl:value-of select=$texteAvant/fo:inline font-weight=normal font-family=Symbolxsl:value-of select=substring($texte,$positionCar,1)//fo:inlinexsl:call-template name=testCaractres xsl:with-param name=texte select=substring($texte,$positionCar+1)/ /xsl:call-template /xsl:when xsl:otherwisexsl:value-of select=$texte//xsl:otherwise /xsl:choose /xsl:template Pascal -Message d'origine- De : Jeremias Maerki [mailto:[EMAIL PROTECTED] Envoy : mercredi 9 mars 2005 17:17 On 09.03.2005 17:07:21 [EMAIL PROTECTED] wrote: Ok so I think the only way out it to pre process my xml file to mark special characters so that I can them easily find them in my xsl document. Good idea if that's possible. Could another option be to find a font that contains all unicode characters? Sure, if such a beast exists. How difficult is it to embed a special font that would work both on Mac and PC? Do you have any pointers on how to do this? Simply get a PC-compatible font. It should also work on the Mac since FOP doesn't use the Mac's font system in case of PDFs. If you have such a font simply follow the instruction for custom fonts. HTH Thanks, Patrick On 9 mars 05, at 17:01, Jeremias Maerki wrote: Oops, sorry. Hmm, you've got a problem there. That's actually something that would (in theory) be handled like this: fo:inline font-family=Helvetica, ZapfDingbatsSome text More text/fo:inline FOP should (again in theory) automatically switch to ZapfDingbats if Helvetica doesn't contain a character. The problem is that FOP doesn't do that, yet. Working around this in XSLT is next to impossible (I think), which leaves a special preprocessor that inserts special fo:inlines as necessary but in this case you could just as well try to implement that directly in FOP. It'll not be so simple. fx type=head-scratching/ On 09.03.2005 16:49:19 [EMAIL PROTECTED] wrote: Hi, This is not really what I am trying to achieve. I know that I can handle special characters using the ZapfDingbats font. However what I don't know to do is parse a text content to encapsulate fo:inline element each time such a special character is found. So tranforming: Some text More text To: fo:inline font-family=Helvetica Some text fo:inline font-family=ZapfDingbats/fo:inline More text /fo:inline Patrick On 9 mars 05, at 16:41, Jeremias Maerki wrote: Lots of examples in the distribution, for example: http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/basic/fonts.fo? rev=1.3view=markup ...and in the documentation: http://xml.apache.org/fop/fo.html#xml-special-chars On 09.03.2005 10:21:11 [EMAIL PROTECTED] wrote: Hi, I need to display in a pdf file some text that contains different type of characters: some are ascii type but other are special ones like the 'star' or 'square' characters. I understand from what I have read that those special characters are not available in the default Helvetica or Courier base font and that I need to use the ZapfDingbats font. So what I need to achieve is transform the following XML content: Some text More
RE: fo:leader
Other alternative is to set both block font-height and line-height to '0mm' (or more, depends on what you want). Pascal -Message d'origine- De : J.Pietschmann [mailto:[EMAIL PROTECTED] Envoyé : jeudi 3 mars 2005 22:38 Gang Li wrote: I want to insert a line in the table row to make it like following. I used following code but since it is in a table row, the space above the line is just too big, is there any other way I can implement this? Or can I set some property to reduce that space? You can try a negative space-before on the block. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: N xml, 1 PDF
Hi, This seems to be a more specific XSLT question. You can do that (you will complete the code as you want): xsl:variable name=pathrelative_or_absolute_path_from_this_xsl_to_new_xml/xsl:vari able xsl:template match=Document|Exercises xsl:apply-templates select=document(concat($path,@uri))/ /xsl:template xsl:template match=ScormBlocco|Video/ ... Pascal -Message d'origine- De : Tommaso Taglioni [mailto:[EMAIL PROTECTED] I have some XML file and I have to make only one PDF of them. I have also a configuration file that have the order and the names of the XML. The structure of the configuration file is like this: Module number=6 Lesson Document uri=xml\1concettibase.xml/ Exercises uri=xml\Domande1.xml/ ScormBlocco uri=xml\1concettibase_SCORM-MANIFEST.xml/ /Lesson Lesson Document uri=xml\2audio.xml/ Exercises uri=xml\Domande2.xml/ ScormBlocco uri=xml\2audio_SCORM-MANIFEST.xml/ /Lesson . . . . Objective uri=xml\obiettivi.xml ScormBlocco uri=xml\obiettivi_SCORM-MANIFEST.xml/ /Objective Video uri=/ Bibliography uri=xml\bibliografia.xml ScormBlocco uri=xml\obiettivi_SCORM-MANIFEST.xmll/ /Bibliography /Module - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xslt library
You can follow that: www.exslt.org Pascal -Message d'origine- De : Peter Menzel [mailto:[EMAIL PROTECTED] Envoyé : jeudi 24 février 2005 13:55 I am looking for some kind of XSLT Library, which provides a set of standard components (HTML) for web applications, e.g. menus, form stuff, ... Substantially I would like to have somtething like Java Server Faces, but in XSLT. Does anybody know some project providing such thing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bullets in FOP
Hi, You can use: - either explicit character or character entity; - or glyph image (bitmap or svg). Characters that can replace wished bullets can be: #x2022; (filled circle); (this is part of standard font charsets) #x25a0; to #25f7; unicode page (geometric shapes) Caution: the used font must embed wished characters. Pascal -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 17 février 2005 14:40 How do I get bullets (Circle,Square and Filled Dot in FOP ) . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Whether Chinese Characters / Unicode supported by FOP ?
Hi, You can find howto add your own fonts at http://xml.apache.org/fop/fonts.html. This can be summed up as follows: 1. get font files (type 1 or true type) 2. make metric file (using either PFMReader or TTFReader) 3. make your own config file 4. enjoy! Pascal -Message d'origine- De : Arun Sinha [mailto:[EMAIL PROTECTED] Envoyé : vendredi 11 février 2005 08:20 You may need the following too. Register Fonts with FOP You must tell FOP how to find and use the font metrics files by registering them in the FOP Configuration. Add entries for your custom fonts, regardless of font type, to the configuration file in a manner similar to the following: font metrics-file=FTL_.xml kerning=yes embed-file=C:\myfonts\FTL_.pfb font-triplet name=FrutigerLight style=normal weight=normal/ /font Change the values above as per your requirement. From: Manisha Sathe [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Whether Chinese Characters / Unicode supported by FOP ? Date: Thu, 10 Feb 2005 23:13:43 -0800 (PST) it's giving me 'unknown font' for both. is there any way for it ? Whether it means that on my m/c need to have these fonts ? Arun Sinha [EMAIL PROTECTED] wrote: Try setting font family to MS Hei or MS Song. From: Manisha Sathe Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Whether Chinese Characters / Unicode supported by FOP ? Date: Thu, 10 Feb 2005 22:43:25 -0800 (PST) i want to display some chinese characters. I am trying following unicodes. These get display in HTML properly. But in pdf i do not get these characters. I tried many different fonts but still the same. Which font shall i make use off ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Declaring an entity for FOP to see
Hi, I think that the public declaration is missing in you !DOCTYPE The right syntax should be: !DOCTYPE root_element PUBLIC DTD_name DTD_URI [ your own entities here ] Pascal -Message d'origine- De : Luke Shannon [mailto:[EMAIL PROTECTED] Envoyé : mercredi 12 janvier 2005 23:34 This is helpful. Thank you. - Original Message - From: Web Maestro Clay [EMAIL PROTECTED] To: [EMAIL PROTECTED] I suspect it's because you've begin the ENTITY declaration with '!DOCTYPE xsl:stylesheet [...' I think you should be able to do this: ?xml version=1.0? !DOCTYPE stylesheet [ !ENTITY nbsp '#160;' ] (but I don't know) This is probably the best thing to see: http://www.dpawson.co.uk/xsl/sect2/N3573.html If you're into the learning thing, you can find a separate example here (look for ntilde;) although I think Dave Pawson's link above is your best bet: http://www.xml.com/pub/a/2001/03/14/trxml10.html Rather than fighting with this, I ended up just changing all of my nbsp; entities (and any other weird entitites) to their numeric counterparts (e.g., #160;) which is essentially what Dave Pawson recommends anyway. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I wrap a continuous string inside a block/table cell?
Hi, You should use the hyphenate attribute : fo:block hyphenate=true.../fo:block Pascal -Message d'origine- De : Lawford, Mark : Enable [mailto:[EMAIL PROTECTED] Envoyé : vendredi 7 janvier 2005 15:33 I'm working on a report PDF export and I've come across a trivial problem with what I suspect wil be a non-trivial solution. I have a table cell which contains an ID value: fo:table-cell padding=1mmfo:block wrap-option=wrapxsl:value-of select=BANK_STMT_ENTRY/BANK_STMT_ID//fo:block/fo:table-cell The ID is 26 characters long with no spaces. This is too long for the target cell so I'd like it to wrap. I notice that this is the default bahaviour for a table cell anyway, but I've added the wrap-action attribute just to make sure. The trouble is, the wrap behaviour seems only to be applied when the string has one or more spaces, slashes etc. How can I force a wrap on a continuous string? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about full page tables
Hi Jon -Message d'origine- De : Jon Steeves [mailto:[EMAIL PROTECTED] fo:table-cell fo:block xsl:apply-templates select=item/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=following-sibling::item[1]/ Here you can use this enstead xsl:apply-templates select=following-sibling::item[1] mode=first_sibling/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=following-sibling::item[2]/ And here you can use this enstead xsl:apply-templates select=following-sibling::item[1] mode=second_sibling/ /fo:block /fo:table-cell /fo:table-row xsl:template match=following-sibling::item[1] xsl:apply-templates/ /xsl:template Your templates should be: xsl:template match=item mode=first_sibling ... /xsl:template xsl:template match=item mode=second_sibling ... /xsl:template Hope this helps you Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [fop] linefeed-treatment=preserve doesn't preserve the linefeed
Hi Gunter, -Message d'origine- De : Gunter D'Hondt [mailto:[EMAIL PROTECTED] Looking at the FAQ I think I don't do anything wrong in my code coz I'm placing the attrbute linefeed-treatment=preserve into it. The attr white-space-collapse I don't need or has nothing to do with the linefeed (I assume). Linefeed-treatment and white-space-collapse are both set to no in the fop compliance chart ( see http://xml.apache.org/fop/compliance.html#fo-property-linefeed-treatment ) I understand that the linefeed-treatment attr is the one to specify this but still something else must go wrong here. And what is meant in the FAQ with: Due to a bug in current versions of FOP, setting white-space-collapse=false will also preserve line breaks in the text. Do not rely on this behavior, as it is non-conformant and will be changed. which current versions is that? 0.20.5? so this has nothing Yes to do with 0.20.4 which I'm using? Any help is welcome, Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: text in vertical direction
Hi You can use a foreing-object to embed svg, that works fine: fo:instream-foreign-objectsvg:svgxmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="7" height="250"svg:g transform="translate(5,250)"svg:g transform="rotate(-90)"svg:text x="0" y="0" style="font-family:'GillSans';font-size:5pt;" Your text here /svg:text/svg:g/svg:g/svg:svg/fo:instream-foreign-objectHope this helps you Pascal De: Dirk Sonne [mailto:[EMAIL PROTECTED] Envoyé: mardi 23 novembre 2004 15:48À: [EMAIL PROTECTED]Objet: text in vertical direction Hello List,I have a little problem.I want to write some text in a vertical direction.FOP don't supports "writing-mode".Is there a little fix?Thank you. -- Dipl.-Inf. Dirk SonneProject Development/ITGETAGwww.get-ag.comKarl-Heine-Straße 9904229 Leipzigmail: [EMAIL PROTECTED]fon: +49 (0) 341 - 49 12 450fax: +49 (0) 341 - 49 12 451mob: +49 (0) 163 - 49 12 473
RE: [work] Re: Avery labels
Hi, A very long time ago, I've tried the following code, witch could give you an answer (this is not very academic): xsl:if test=position() mod 3 =1 !-- new row -- xsl:text disable-output-escaping=yeslt;fo:table-rowgt;/xsl:text /xsl:if xsl:if test=position() mod 3 =1 xsl:text disable-output-escaping=yeslt;/fo:table-rowgt;/xsl:text /xsl:if Bye Pascal -Message d'origine- De : Frank Daly [mailto:[EMAIL PROTECTED] Envoyé : vendredi 24 septembre 2004 19:07 À : [EMAIL PROTECTED] Objet : RE: [work] Re: Avery labels Thanks again. This has to be the most polite and friendly user group around! Frank -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: 24 September 2004 05:31 To: [EMAIL PROTECTED] Subject: Re: [work] Re: Avery labels On Sep 24, 2004, at 9:13 AM, Frank Daly wrote: Many thanks for your thoughtful reply but I can't get it to work. Surely someone has come across this problem before and found a solution. Frank Someone probably has. That's why Jeremias was directing you to the XSLT list where someone probably has already come up with a nifty solution to your problem. The FOP Mailing List page[1] has links to the XSLT List (hosted at Mulberry Tech)[2] where you can ask your question. Better yet, the FOP Resources page has a section called Books, Tutorials, Articles[3] which has links to many resources (online and otherwise), where you can probably find the answer to your question. I recommend Dave Pawson's excellent XSL FAQ[4] (which covers XSLT XSL-FO). Hope this helps! Web Maestro Clay [1] http://xml.apache.org/fop/maillist.html [2] http://www.mulberrytech.com/xsl/xsl-list [3] http://xml.apache.org/fop/resources.html#documents [4] http://www.dpawson.co.uk/xsl/xslfaq.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [work] Re: Avery labels
Hi Jeremias Maerki wrote: This is not only not very academic, it's plain ugly, error-prone, violates XML concepts and works only if you don't connect XSLT and FOP using SAX. You should NEVER do something like that. I agree. Get a good XSLT book. The best for me is XSLT - Working with XML and HTML, by Khun Yee Fung. This is my opinion a I share it. Pascal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error with multi-column page
Hi, In my previous mail, the snipped FO was incomplete and did work fine. Here follows the right FO, witch generates the described error.. Pascal -Message d'origine- De : Pascal Sancho Envoyé : jeudi 23 septembre 2004 10:36 À : [EMAIL PROTECTED] Objet : Error with multi-column page Hi there, When I try to generate a PDF with the following FO, I get an error: [ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 No meaningful layout in block after many attempts. Infinite loop is assumed. Processing halted. I use FOP 0.20.5. If I suppress either a fo:external-graphic or the span=all attribute in the final fo:block, I get no error. - span attribute is used to avoid id already exist error (can't remove it) Is there a solution? Pascal snip ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions; fo:simple-page-master page-height=327mm page-width=240mm margin-top=0mm margin-bottom=0mm margin-left=0mm margin-right=0mm master-name=gauche fo:region-body column-count=2 column-gap=5mm margin-top=79.35mm margin-bottom=42mm margin-left=59.55mm margin-right=34.8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence language=fr master-reference=gauche fo:flow flow-name=xsl-region-body fo:block border=solid red .1mm fo:external-graphic width=800pt height=548pt src=dummy.gif/ /fo:block fo:block border=solid red .1mm fo:external-graphic width=800pt height=548pt src=dummy.gif/ /fo:block fo:block border=solid red .1mm fo:external-graphic width=800pt height=548pt src=dummy.gif/ /fo:block fo:block span=all/fo:block /fo:flow /fo:page-sequence /fo:root /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with multi-column page
Hi there, When I try to generate a PDF with the following FO, I get an error: [ERROR] file:/E:/projets/peugeot/blueTeam/fop3/data.fo:12:35 No meaningful layout in block after many attempts. Infinite loop is assumed. Processing halted. I use FOP 0.20.5. If I suppress either a fo:external-graphic or the span=all attribute in the final fo:block, I get no error. - span attribute is used to avoid id already exist error (can't remove it) Is there a solution? Pascal snip ?xml version=1.0 encoding=ISO-8859-1? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set xmlns:fox=http://xml.apache.org/fop/extensions; fo:simple-page-master page-height=327mm page-width=240mm margin-top=0mm margin-bottom=0mm margin-left=0mm margin-right=0mm master-name=gauche fo:region-body column-count=2 column-gap=5mm margin-top=79.35mm margin-bottom=42mm margin-left=59.55mm margin-right=34.8mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence language=fr master-reference=gauche fo:flow flow-name=xsl-region-body fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block border=solid red .1mmfo:external-graphic width=800pt height=548pt src=dummy.gif//fo:block fo:block/fo:block /fo:flow /fo:page-sequence /fo:root /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi-columns Layout problems
Hi there, While trying multi-columns with fop, I've found some strange behaviours: 1. When I specifie block/span="all", a block/@break-before is not taken into account for the same block. 2. If there is not enough place for a block image in 1 column, sometimes FOP crashes, invoking an infinite loop -- I resolved this problem by inserting some empty blocks before 3. When I declare an ID (using generate-id() function xpath), I get an error if the element is not spanned over the 2 columns (error says that ID cannot be used twice). I suppose that intermediate xml file include a copy of the 1st column (I have not checked it yet), because fo file is *perfect*! I need to span the element over all columns in order to bypass this problem. Cordialement,Pascal SANCHOTakoma, Information Mapping t : +334 90 59 82 90 m : +336 74 94 66 04e : [EMAIL PROTECTED]
RE: XSLT tag needed
Hi, Probably your ns1 namespace is not defined in your XSLT. You sould add appropriate declaration in the stylesheet tag of your XSLT: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform http://www.w3.org/1999/XSL/Transform xmlns:ns1=DbGMLPriceBusHdr Pascal De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 septembre 2004 05:32 À : [EMAIL PROTECTED] Objet : XSLT tag needed Hi everybody, I am sending two tags can anybody please tell me how to get the value of it in XSLT. The tags are: ns1:BusObjectType xmlns:ns1=DbGMLPriceBusHdrMARKETDATA/RISK/CDS/IPV/ns1:BusObjectType ns2:BusObjectOwner xmlns:ns2=DbGMLPriceBusHdrtbd/ns2:BusObjectOwner If try to give xsl:value-of select=ns1:BusObjectType/ xsl:value-of select=ns2:BusObjectOwner/ XALAN parser is giving an error saying : SystemId Unknown; Line #8; Column #44; XSLT Error (javax.xml.transform.Transform erConfigurationException): javax.xml.transform.TransformerException: javax.xml.t ransform.TransformerException: Prefix must resolve to a namespace: ns1 Thanks Bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to write equations for FOP ?
Hi, I think that a good way is to generate svg code embedded in a fo:instream-foreign-object. You can visit http://xml.apache.org/fop/graphics.html#svg-pdf-graphics. Pascal -Message d'origine- De : Vaclav PEROUTKA [mailto:[EMAIL PROTECTED] Envoyé : lundi 13 septembre 2004 14:24 À : [EMAIL PROTECTED] Objet : How to write equations for FOP ? Hello list, I would like to know how can I use FOP with math equations correctly. I currently process equations in LaTeX and insert images but FOP has 72dpi resolution. For PDF documents it is useless. How can I set at least 300dpi resolution or is there any better approach to generate equations in XML ? Thanks, Vasek - 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: How to write equations for FOP ?
I have found elsewhere that J.Pietschmann then Jeremias Maerki wrote respectively following info about MATHML: There is a FOP MathML extension using JEuclid in the CVS repository. You can check it out (from the maintenance branch), build FOP and create a servicec entry for the MathML element mapping (there should be a sample), it should work then. The MathML extension is in CVS HEAD under examples/mathml, not in the maintenance branch. And it will probably take a bit to adjust it for FOP 0.20.5. http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/mathml/ Pascal -Message d'origine- De : Pascal Sancho Envoyé : lundi 13 septembre 2004 14:47 À : [EMAIL PROTECTED] Objet : RE: How to write equations for FOP ? Hi, I think that a good way is to generate svg code embedded in a fo:instream-foreign-object. You can visit http://xml.apache.org/fop/graphics.html#svg-pdf-graphics. Pascal -Message d'origine- De : Vaclav PEROUTKA [mailto:[EMAIL PROTECTED] Envoyé : lundi 13 septembre 2004 14:24 À : [EMAIL PROTECTED] Objet : How to write equations for FOP ? Hello list, I would like to know how can I use FOP with math equations correctly. I currently process equations in LaTeX and insert images but FOP has 72dpi resolution. For PDF documents it is useless. How can I set at least 300dpi resolution or is there any better approach to generate equations in XML ? Thanks, Vasek - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pyjama stripes - for each 5 rows
Hi, You can use a pattern like this: (position() div 5) mod 2 When the result is 0, apply background color #1, When the result is 1, apply background color #2. If you need to know an ancestor element position, you may replace position() with count(ancestor::ref_element/preceding-sibling::ref_element) -- this gives same result as position() - 1 But this looks like an XSLT problem. Ask on the XSL list for better code: http://www.mulberrytech.com/xsl/xsl-list -Message d'origine- De : Avula, Srini [mailto:[EMAIL PROTECTED] Envoyé : lundi 6 septembre 2004 13:59 À : [EMAIL PROTECTED] Objet : Pyjama stripes - for each 5 rows Hi I have long list of students to display for each centre. I would like to change background colour of each 5th row or space between 5 and 6th rows. any ideas how can I do it. Much appreciate your help. Kind Regards Srini - 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: Error while building FOP dev1
I've copied Xalan from my fop dir to my ant dir, and I get now up to 100 errors (the build limit). Here follows pieces of return. Pascal compile-src: [echo] Compiling the sources [javac] Compiling 293 source files to D:\cvs\xml-fop\build\classes [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:134: Undefined variable or class name: WhiteSpaceCollapse [javac] if (textInfo.whiteSpaceCollapse == WhiteSpaceCollapse.FALSE [javac]^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:197: Undefined variable or class name: TextTransform [javac] if (textInfo.textTransform == TextTransform.NONE) { [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\FOText.java:326: Constant expression required. [javac] case TextTransform.NONE: [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\InstreamForeignObject.java:82: Constant expression required. [javac] case TextAlign.CENTER: [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\InstreamForeignObject.java:82: Undefined variable or class name: TextAlign [javac] case TextAlign.CENTER: [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Leader.java:72: Constant expression required. [javac] case LeaderPattern.SPACE: [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Leader.java:72: Undefined variable or class name: LeaderPattern [javac] case LeaderPattern.SPACE: [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Table.java:96: Undefined variable orclass name: TableLayout [javac] this.bAutoLayout = (getPropEnum(PR_TABLE_LAYOUT) == TableLayout.AUTO); [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\Table.java:99: Undefined variable orclass name: TableOmitHeaderAtBreak [javac] == TableOmitHeaderAtBreak.TRUE; [javac]^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\flow\TableCell.java:146: Undefined variable or class name: BorderCollapse [javac] bSepBorders = (getPropEnum(PR_BORDER_COLLAPSE) == BorderCollapse.SEPARATE); [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\pagination\ConditionalPageMasterReference.java:110: Undefined variable or class name: PagePosition [javac] if (pagePosition == PagePosition.REST) { [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\fo\pagination\RegionAfter.java:53: Undefined variable or class name: Precedence [javac] precedence = (getPropEnum(PR_PRECEDENCE) == Precedence.TRUE); [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\BlockContainerLayoutManager.java:77: Undefined variable or class name: AbsolutePosition [javac] if (abProps.absolutePosition == AbsolutePosition.ABSOLUTE) { [javac] ^ [...] [javac] D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\CharacterLayoutManager.java:78: Constant expression required. [javac] case VerticalAlign.MIDDLE: [javac] ^ [javac] D:\cvs\xml-fop\src\java\org\apache\fop\layoutmgr\CharacterLayoutManager.java:78: Undefined variable or class name: VerticalAlign [javac] case VerticalAlign.MIDDLE: [javac] ^ [...] [javac] Too many errors. (The limit on reported errors is 100.) [javac] 105 errors BUILD FAILED D:\cvs\xml-fop\build.xml:447: Compile failed; see the compiler error output for details. -Message d'origine- De : Jeremias Maerki [mailto:[EMAIL PROTECTED] Envoyé : mardi 7 septembre 2004 11:39 À : [EMAIL PROTECTED] Objet : Re: Error while building FOP dev1 Chris, have you tried under JDK 1.3? Because Pascal tries to compile under 1.3. Unfortunately, I'm at work on my notebook where I don't have a current FOP HEAD to try. I can check this out this evening. On 07.09.2004 11:26:08 Chris Bowditch wrote: Pascal Sancho wrote: snip/ codegen: [echo] Resetting codegen directory [echo] Generating the java files from xml resources [style] Processing D:\cvs\xml-fop\src\codegen\encodings.xml to D:\cvs\xml-fop\build\gensrc\o rg\apache\fop\fonts\CodePointMapping.java [style] Loading stylesheet D:\cvs\xml-fop\src\codegen\code-point-mapping.xsl BUILD FAILED I have just run the build now and it was successful
RE: Error while building FOP dev1
I've just tried the latest SDK That works fine with J2 SDK 1.4.2_05 Thx to Jeremias Chris Pascal -Message d'origine- De : Chris Bowditch [mailto:[EMAIL PROTECTED] Envoyé : mardi 7 septembre 2004 15:25 À : [EMAIL PROTECTED] Objet : Re: Error while building FOP dev1 Jeremias Maerki wrote: Looks like we don't have JDK 1.3 compatibility at the moment. I think I have seen this myself under JDk 1.3 lately. Yes, I agree. snip/ Note to Devs: We should see to it that at least the Transcoders compile again under JDK 1.3 as Batik still depends on it. Unless there is a vote on dropping JDK 1.3 support for the rest I regard the current state as a bug. I may have time this week to have a look at it. We should be supporting 1.3, and I agree that it is a bug if FOP no longer compiles on 1.3. snip/ Chris - 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: Table-of-Contents Headlines
Hi, Hmm, when reading back the W3C sample, I have found a mistake: You should replace the fo:simple-link element with the fo:basic-link one. Pascal -Message d'origine- De : Johannes Franz [mailto:[EMAIL PROTECTED] Envoyé : lundi 30 août 2004 00:56 À : [EMAIL PROTECTED] Objet : Re: Table-of-Contents Headlines Hi Pascal, did you ever try the example at this page? Somehow it doesn't seem to work. I always get a java.lang.NullPointerException. Any idea what could be the reason? I would be very glad, if someone could help me. Greetings, Johannes. - Original Message - From: Pascal Sancho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 23, 2004 11:27 AM Subject: RE: Table-of-Contents Headlines Hi, You can find an example it the W3C XSL recommandation, at http://www.w3.org/TR/xsl/slice6.html#section-N13277-Inline-level-Formatting- Objects. There is an example of table of content, with XML, XSLT XSLFO snips. Pascal -Message d'origine- De : Johannes Franz [mailto:[EMAIL PROTECTED] Envoyé : lundi 23 août 2004 00:24 À : [EMAIL PROTECTED] Objet : Re: Table-of-Contents Headlines Do you have an example for a xslt document that creates a table-of-contents which is generated at the end of the document? - Original Message - From: Johannes Franz [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 4:43 PM Subject: Re: Table-of-Contents Headlines Ok, i'll try it. Thx for explanation. By the way do you know if it is possible and how to use the headline function of word/rtf with XSL-FO/JFOR? - Original Message - From: Chris Bowditch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 1:02 PM Subject: Re: Table-of-Contents Headlines Johannes Franz wrote: Hi is it possible to declare certain sentences as a headline and generate autmatically a table-of-contents in JFOR/FOP? Perhaps somebody could send me an example. No this is not possible in general within XSL-FO. You can do something in XSLT. Using markers and page-number-citation its possible create a table of Contents at back of document, but not at the front :-( Chris - 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] - 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] - 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: Table-of-Contents Headlines
Hi, You can find an example it the W3C XSL recommandation, at http://www.w3.org/TR/xsl/slice6.html#section-N13277-Inline-level-Formatting-Objects. There is an example of table of content, with XML, XSLT XSLFO snips. Pascal -Message d'origine- De : Johannes Franz [mailto:[EMAIL PROTECTED] Envoyé : lundi 23 août 2004 00:24 À : [EMAIL PROTECTED] Objet : Re: Table-of-Contents Headlines Do you have an example for a xslt document that creates a table-of-contents which is generated at the end of the document? - Original Message - From: Johannes Franz [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 4:43 PM Subject: Re: Table-of-Contents Headlines Ok, i'll try it. Thx for explanation. By the way do you know if it is possible and how to use the headline function of word/rtf with XSL-FO/JFOR? - Original Message - From: Chris Bowditch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 19, 2004 1:02 PM Subject: Re: Table-of-Contents Headlines Johannes Franz wrote: Hi is it possible to declare certain sentences as a headline and generate autmatically a table-of-contents in JFOR/FOP? Perhaps somebody could send me an example. No this is not possible in general within XSL-FO. You can do something in XSLT. Using markers and page-number-citation its possible create a table of Contents at back of document, but not at the front :-( Chris - 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] - 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: Tables and Columns Question
In your 3 columns document, You can use a block with a span=all attribute between 3rd 4th tables. This should resolve your demand. Bye, Pascal -Message d'origine- De : Michael Sachau [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 août 2004 13:56 À : [EMAIL PROTECTED] Objet : Tables and Columns Question Hi, I want to create a three column document. In this document there are tables, that are generated from an XML file. I want the tables in that order Column 1 | Column 2 | Column 3 Table 1 | Table 2 | Table 3 Table 4 ... I don't want to create a Nx3 Table and put 1 table in one cell, is there a more elegant solution? - 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: tables not indented in lists
Hi, I resolve this emdeding my table in a single cell table, and I compute the table-cell/@padding-left regarding ancestors lists. You can probably find an easier method using from-parent() method. Here follows my code: fo:table table-layout=fixed width=100% start-indent=0mm fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell padding-left={ ($bulletListIndent * count(ancestor::[EMAIL PROTECTED]'BULLET' or not(@TYPE)])) +($numberdedListIndent * count(ancestor::[EMAIL PROTECTED]'NUMBERED'])}mm fo:table table-layout=fixed width=100% xsl:use-attribute-sets=normalTable start-indent=0mm !-- your table content here -- /fo:table /fo:table-cell /fo:table-row /fo:table-body /fo:table Pascal -Message d'origine- De : Sönke Ruempler [mailto:[EMAIL PROTECTED] Envoyé : mardi 10 août 2004 09:24 À : [EMAIL PROTECTED] Objet : tables not indented in lists Hi, I have the problem that tables are not indented within lists. Here the fo sniplet: fo:list-item font-size=10pt space-after=0.2emfo:list-item-label end-indent=label-end()fo:block text-align=end font-size=12pt3./fo:block/fo:list-item-labelfo:list-item-body start-indent=body-start() text-align=justifyfo:block fo:list-block provisional-distance-between-starts=2em provisional-label-separation=0.5em fo:table table-layout=fixed space-before=10pt space-after=10pt inline-progression-dimension=300px fo:table-column column-width=100px/ fo:table-column column-width=200px/ fo:table-body start-indent=0pt end-indent=0pt fo:table-row xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:blockKontonummer: /fo:block/fo:table-cell fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:block fo:leader leader-length=100px leader-pattern=rule rule-thickness=1pt space-end=10pt/#xA0; /fo:block/fo:table-cell/fo:table-row fo:table-row xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:blockBLZ: /fo:block/fo:table-cell fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:block fo:leader leader-length=100px leader-pattern=rule rule-thickness=1pt space-end=10pt/#xA0; /fo:block/fo:table-cell/fo:table-row fo:table-row xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:blockBank: /fo:block/fo:table-cell fo:table-cell padding-start=0.3em padding-end=0.2em padding-before=2pt padding-after=2ptfo:block fo:leader leader-length=100px leader-pattern=rule rule-thickness=1pt space-end=10pt/#xA0; /fo:block/fo:table-cell/fo:table-row/fo:table-body/fo:table ... This code is generated by a XSLT stylesheet. It should be 1. Blah table But it is: 2. Blub table -- Soenke - 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: pdf document info
Hi, You should probably find answer in the FAQ (http://xml.apache.org/fop/faq.html#pdf-doc-properties) or in the post-processing page (http://xml.apache.org/fop/output.html#pdf-postprocess). Tcho -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mardi 22 juin 2004 23:07 À : [EMAIL PROTECTED] Objet : pdf document info does anybody knows a way to add the document info to a pdf-file created with fop? markus - 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: How to handle in fop
Hi, following XML entities should be used when needed: amp; () lt; () gt; () apos; (') quot; () regards, Tcho -Message d'origine- De : Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 juin 2004 11:24 À : [EMAIL PROTECTED] Objet : Re: How to handle in fop [EMAIL PROTECTED] wrote: Hi everybody, When the data contains '' like CUSTOMER_NAME= LG ASSURANCE SOCIETY LTD fop is throwing the following error: Caused By : javax.xml.transform.TransformerException : org.xml.sax.SAXParseExcep tion: The reference to entity G must end with the ';' delimiter. Can anybody help in handling the character ''. Use amp; instead. To ensure that you always generate proper XML regardless of character set, you should change all characters above 127, and , and to #numericvalue; instead. The numeric value is the unicode value of the character. -- Thorbjoern Ravn Andersen ...plus...Tubular Bells! - 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: OutOfMemoryError by large tables: Alternative solution?
Hi, I wonder weither you can easily read a 1 rows table. Even in a pdf form. Probably you should crunch your source file in multiple subtables. Other engines than FOP could be have similar limitations... Beginning with human reader;) Regards, Tcho -Message d'origine- De : Peter B. West [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 juin 2004 11:32 À : [EMAIL PROTECTED] Objet : Re: OutOfMemoryError by large tables: Alternative solution? I would like to answer this question now by saying, Alt-design. However, I cannot - yet. The layout work has just begun, and is aiming initially at a Java 2D solution. When that is complete, unless someone cares to work in parallel on PDF rendering from the Java 2D representation, that PDF rendering work will have to follow. The initial version will require Java 1.4.2, a serious drawback for many, and may move forward from there if the text layout facilities improve in 1.5 and its sub-releases. Alt-design starts page layout as soon as an fo:flow is encountered, and a page is completed as soon as enough of the flow has been read to fill that page. Obviously, forward references cannot be resolved until the reference is resolved in the course of layout (e.g. Page n of m), but the existing solution of caching the incomplete page to disk will apply in alt-design. Anyone who wishes to contribute to the development of alt-design would be most welcome. Experience has already shown that ideas from alt-design can be very fruitfully applied to the main line of development. In saying this I have no desire to distract those, especially those new and productive committers, who are dedicated to HEAD development. I mention this here because of the ongoing concern about memory usage. Peter -- Peter B. West http://www.powerup.com.au/~pbwest/resume.html - 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: Plase Help in solving wrap option
Hi, wrap-option proprety only applies to fo:block, fo:inline, fo:page-number, or fo:page-number-citation elements (see FO rec). Regards Tcho -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : mardi 8 juin 2004 12:13 À : [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : RE: Plase Help in solving wrap option Hi Chris, Thanks for your help now I am getting proper output. With Regards Bhaskar -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: Re: Plase Help in solving wrap option [EMAIL PROTECTED] wrote: Hi Everybody, I have stuck in handling WRAP option, I am using the following code in my table but in the display still I am not able to get the result i.e the data which is more than the column width will be continued to the next column . wrapping only affects text that can be broken up with spaces. So if there are no spaces in the text, it cannot be wrapped. You can either: 1) turn on hyphenation with properties hyphenate=true language=en 2) if you are generating your FO with a XSLT stylesheet then insert zero width spaces in the long text, which will allow FOP to wrap the text to a second line. Chris - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Table Header problem
Hi, The xsl:apply-templates/ in the xsl:template match=Report should be replaced with xsl:apply-templates select=R/. If not, extra text can be added to fo:table-body (due to default xslt rules) Tcho -Message d'origine- De : Kaustuva Narayan Sharma [mailto:[EMAIL PROTECTED] Envoyé : vendredi 28 mai 2004 06:15 À : [EMAIL PROTECTED] Objet : RE: Table Header problem I got it thanksa sily mistake on may part :-) This is my whole xsl file. And tables with headers r generating fine : = ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.1 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo xsl:output method=xml version=1.0 omit-xml-declaration=no indent=yes/ xsl:template match=Report fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 fo:flow flow-name=xsl-region-body fo:block font-size=10pt fo:table table-layout=fixed fo:table-column column-width=4cm/ fo:table-column column-width=4cm/ fo:table-column column-width=5cm/ fo:table-header fo:table-row fo:table-cell fo:block font-size=12pt font-weight=boldHeader1/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader2/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader3/fo:block /fo:table-cell /fo:table-row /fo:table-header fo:table-body xsl:apply-templates/ /fo:table-body /fo:table /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=R fo:table-row fo:table-cell fo:block xsl:value-of select=Data1/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data2/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data3/ /fo:block /fo:table-cell /fo:table-row /xsl:template /xsl:stylesheet === -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 7:50 PM To: [EMAIL PROTECTED] Subject: Re: Table Header problem On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote: Hi, I am a beginner to FOP. I am trying to convert an XML to PDF from a Java app. The data is to be displayed in a table. But when I try to put headers into the table i am getting the following error: org.apache.fop.apps.FOPException: Currently only Table Rows are supported in table body, header and footer My xsl looks like this: == fo:table fo:table-header fo:table-row fo:table-cell fo:block font-size=12pt font-weight=boldHeader1/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader2/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader3/fo:block /fo:table-cell /fo:table-row /fo:table-header fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select=Data1/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data2/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data3/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table = I am using fop-0.20.5. Can you pls suggest as to what could be the cause? Thanks. Regards, Kaustuv Sharma One problem I notice is that you do not have fo:table-column column-width=XXcm /. You can see an example of a complete table here: http://xml.apache.org/fop/faq.html#keep-with I don't know if it's a problem but there was a lot of extra white space in the table-body. Whitespace is OK, but perhaps there's a bad character in there? Hope this helps! Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
RE: Table Header problem
Hi, Your fo output seems to be correct (except that there is no fo:table-column, witch are required by fop to set column width) It could be a wrong transformation (ie there is no table-header or table-body markup in your xml source file). (I suppose that your example is expected result, but not actual output) tcho -Message d'origine- De : Clay Leeds [mailto:[EMAIL PROTECTED] Envoyé : jeudi 27 mai 2004 16:20 À : [EMAIL PROTECTED] Objet : Re: Table Header problem On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote: Hi, I am a beginner to FOP. I am trying to convert an XML to PDF from a Java app. The data is to be displayed in a table. But when I try to put headers into the table i am getting the following error: org.apache.fop.apps.FOPException: Currently only Table Rows are supported in table body, header and footer My xsl looks like this: == fo:table fo:table-header fo:table-row fo:table-cell fo:block font-size=12pt font-weight=boldHeader1/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader2/fo:block /fo:table-cell fo:table-cell fo:block font-size=12pt font-weight=boldHeader3/fo:block /fo:table-cell /fo:table-row /fo:table-header fo:table-body fo:table-row fo:table-cell fo:block xsl:value-of select=Data1/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data2/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:value-of select=Data3/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table = I am using fop-0.20.5. Can you pls suggest as to what could be the cause? Thanks. Regards, Kaustuv Sharma One problem I notice is that you do not have fo:table-column column-width=XXcm /. You can see an example of a complete table here: http://xml.apache.org/fop/faq.html#keep-with I don't know if it's a problem but there was a lot of extra white space in the table-body. Whitespace is OK, but perhaps there's a bad character in there? Hope this helps! Web Maestro Clay - 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: Symbol ZapfDingats font doesn't render
Hi,* I had a similar problem. These 2 special fonts are only available in a normal format (neither bold nor italic). You should check if inherited properties affect thes 2 traits. If this is the source problem, just add appropriate text-decoration=none and font-weight=normal. Tcho -Message d'origine- De : Clay Leeds [mailto:[EMAIL PROTECTED] Envoyé : mardi 25 mai 2004 19:07 À : [EMAIL PROTECTED] Objet : Re: Symbol ZapfDingats font doesn't render Paul, On May 25, 2004, at 9:52 AM, Paul Tremblay wrote: I cannot get Symbol font to render. Here is a snippet of my code: fo:block font-family = Symbol Hello world in Symbol /fo:block I don't get an error message when fop runs, but when I open the resulting file in a PDF viewer, I see: # # ## ## I get a simlar problem when I use ZapfDingbats: rather than differnet characters, I see the scissors symbol repeated for each letter. I believe Symbol and ZapfDingbats are built into fop, right? (By the way, are there any other fonts built it, besides Times, Helvitical, and Courrier?) Thanks Paul I don't know why it's not working for you. Is it possible you don't have Symbol on *your* system? (Do you get errors when running FOP? Try running FOP with the '-d' debug flag...). Try loading it on another computer. BTW, the definitive source for information is the FOP Fonts page[1]. Web Maestro Clay p.s. It's also possible you 'typed' 'Symbol' incorrectly. I notice that you've misspelled 'Helvetica' and 'Courier'. As for others, there are 14 'base fonts', but they are normal, bold, italic, bold italic variants of Helvetica, Times Courier, plus Symbol ZapfDingbats. [1] http://xml.apache.org/fop/fonts.html - 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: Symbol ZapfDingats font doesn't render
Hi (2) Alternative source problem: The native charsets are limited to some characters. For example, in the symbol font, normal letters (#x41; to #x7A;) are not implemented. If you need to use greek characters, you must use appropriate charcodes (i.e. #x0391; as Alpha to #x03D6; as omega). I send you attached pdf file that shows the 14 default charsets (helvetica, courrier and times fonts needs 4 charsets each). By Tcho -Message d'origine- De : Pascal Sancho Envoyé : mercredi 26 mai 2004 05:00 À : [EMAIL PROTECTED] Objet : RE: Symbol ZapfDingats font doesn't render Hi,* I had a similar problem. These 2 special fonts are only available in a normal format (neither bold nor italic). You should check if inherited properties affect thes 2 traits. If this is the source problem, just add appropriate text-decoration=none and font-weight=normal. Tcho -Message d'origine- De : Clay Leeds [mailto:[EMAIL PROTECTED] Envoyé : mardi 25 mai 2004 19:07 À : [EMAIL PROTECTED] Objet : Re: Symbol ZapfDingats font doesn't render Paul, On May 25, 2004, at 9:52 AM, Paul Tremblay wrote: I cannot get Symbol font to render. Here is a snippet of my code: fo:block font-family = Symbol Hello world in Symbol /fo:block I don't get an error message when fop runs, but when I open the resulting file in a PDF viewer, I see: # # ## ## I get a simlar problem when I use ZapfDingbats: rather than differnet characters, I see the scissors symbol repeated for each letter. I believe Symbol and ZapfDingbats are built into fop, right? (By the way, are there any other fonts built it, besides Times, Helvitical, and Courrier?) Thanks Paul I don't know why it's not working for you. Is it possible you don't have Symbol on *your* system? (Do you get errors when running FOP? Try running FOP with the '-d' debug flag...). Try loading it on another computer. BTW, the definitive source for information is the FOP Fonts page[1]. Web Maestro Clay p.s. It's also possible you 'typed' 'Symbol' incorrectly. I notice that you've misspelled 'Helvetica' and 'Courier'. As for others, there are 14 'base fonts', but they are normal, bold, italic, bold italic variants of Helvetica, Times Courier, plus Symbol ZapfDingbats. [1] http://xml.apache.org/fop/fonts.html - 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] fonts.fo.pdf Description: fonts.fo.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]