Table header are not displayed
Hi All, I am parsing an xml having information of CD. In xsl file in xsl-region-body referring tag cd and then I am displaying headers of pdf (title, artist.. etc). But in pdf output the headers are not displayed. I am attaching the xml and xsl files and also output pdf file. Can any body help in getting headers in pdf file? Regards, Bhaskar DISCLAIMER: This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. catalog.xsl Description: catalog.xsl catalog.pdf Description: catalog.pdf ?xml version=1.0 encoding=ISO-8859-1 ? ?xml-stylesheet type=text/xsl? catalog cd titleEmpire Burlesque/title artistBob Dylan/artist countryUSA/country companyColumbia/company price10.90/price year1985/year /cd cd titleHide your heart/title artistBonnie Tyler/artist countryUK/country companyCBS Records/company price9.90/price year1988/year /cd cd titleGreatest Hits/title artistDolly Parton/artist countryUSA/country companyRCA/company price9.90/price year1982/year /cd cd titleStill got the blues/title artistGary Moore/artist countryUK/country companyVirgin records/company price10.20/price year1990/year /cd cd titleEros/title artistEros Ramazzotti/artist countryEU/country companyBMG/company price9.90/price year1997/year /cd cd titleOne night only/title artistBee Gees/artist countryUK/country companyPolydor/company price10.90/price year1998/year /cd cd titleSylvias Mother/title artistDr.Hook/artist countryUK/country companyCBS/company price8.10/price year1973/year /cd cd titleMaggie May/title artistRod Stewart/artist countryUK/country companyPickwick/company price8.50/price year1990/year /cd cd titleRomanza/title artistAndrea Bocelli/artist countryEU/country companyPolydor/company price10.80/price year1996/year /cd cd titleWhen a man loves a woman/title artistPercy Sledge/artist countryUSA/country companyAtlantic/company price8.70/price year1987/year /cd cd titleBlack angel/title artistSavage Rose/artist countryEU/country companyMega/company price10.90/price year1995/year /cd cd title1999 Grammy Nominees/title artistMany/artist countryUSA/country companyGrammy/company price10.20/price year1999/year /cd cd titleFor the good times/title artistKenny Rogers/artist countryUK/country companyMucik Master/company price8.70/price year1995/year /cd cd titleBig Willie style/title artistWill Smith/artist countryUSA/country companyColumbia/company price9.90/price year1997/year /cd cd titleTupelo Honey/title artistVan Morrison/artist countryUK/country companyPolydor/company price8.20/price year1971/year /cd cd titleSoulsville/title artistJorn Hoel/artist countryNorway/country companyWEA/company price7.90/price year1996/year /cd cd titleThe very best of/title artistCat Stevens/artist countryUK/country companyIsland/company price8.90/price year1990/year /cd cd titleStop/title artistSam Brown/artist countryUK/country companyA and M/company price8.90/price year1988/year /cd cd titleBridge of Spies/title artistT`Pau/artist countryUK/country companySiren/company price7.90/price year1987/year /cd cd titlePrivate Dancer/title artistTina Turner/artist countryUK/country companyCapitol/company price8.90/price year1983/year /cd cd titleMidt om natten/title artistKim Larsen/artist countryEU/country companyMedley/company price7.80/price year1983/year /cd cd titlePavarotti Gala Concert/title artistLuciano Pavarotti/artist countryUK/country companyDECCA/company price9.90/price year1991/year /cd cd titleThe dock of the bay/title artistOtis Redding/artist countryUSA/country companyAtlantic/company price7.90/price year1987/year /cd cd titlePicture book/title artistSimply Red/artist countryEU/country companyElektra/company price7.20/price year1985/year /cd cd titleRed/title artistThe Communards/artist
RE: Error - java.lang.UnsatisfiedLinkError: no cmm in java.library.path
DISCLAIMER: This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.
RE: Tag value inside the fo:table tag not visible
Hi Chris, Thanks a lot I was under assumption the fo:table-header will display only header of the table. fo:table-body will have the content. The error message that you got is very much informative. But we won't get such a message if we run using fop batch file. How you are executing? Are you using any tools? Thanks and Regards Bhaskar -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 3:49 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Tag value inside the fo:table tag not visible [EMAIL PROTECTED] wrote: Hi, I have typical fo:table problem. When ever I tried to print tag value, outside the fo:table the value will be displayed. However value won't be display inside the fo:table. I generated the XSL-FO from the XML and XSL files you provided. I then ran the XSL-FO through FOP and got the error: SEVERE: Exception javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: file:///D:/samples/xsl/bhaskar.fo:15:37: Error(15/37): fo:table is missing child elements. Required Content Model: (marker*,table-column*,table-header?,table-footer?,table-body+) this means you have created a table with a header row but no body rows. When I added a table-body with a single row then the values CUSIP and ISIN Number appeared in the table header! 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]
Tag value inside the fo:table tag not visible
Hi, I have typical fo:table problem. When ever I tried to print tag value, outside the fo:table the value will be displayed. However value won't be display inside the fo:table. xsl:template match=headings fo:block font-family=Times font-size=12pt font-weight=bold text-align=center xsl:value-of select=col1/ !-this value is visible in pdf -- xsl:value-of select=col2/ !-this value is visible in pdf -- /fo:block fo:table table-layout=fixed fo:table-column column-width=40mm wrap-option=no-wrap/ fo:table-column column-width=40mm/ fo:table-column column-width=45mm/ fo:table-header fo:table-row fo:table-cell fo:block fo:leader leader-length=100% leader-pattern=rule rule-style=double rule-thickness=4pt color=black/ /fo:block fo:block font-family=Times font-size=12pt font-weight=bold text-align=center xsl:value-of select=col1/ !-this value is not visible in pdf -- /fo:block fo:block fo:leader leader-length=100% leader-pattern=rule rule-style=double rule-thickness=4pt color=black/ /fo:block /fo:table-cell fo:table-cell fo:block fo:leader leader-length=100% leader-pattern=rule rule-style=double rule-thickness=4pt color=black/ /fo:block fo:block font-family=Times font-size=12pt font-weight=bold text-align=center xsl:value-of select=col2/ !-this value is not visible in pdf -- /fo:block fo:block fo:leader leader-length=100% leader-pattern=rule rule-style=double rule-thickness=4pt color=black/ /fo:block /fo:table-cell /fo:table-row /fo:table-header /fo:table I have attached the xml and xsl for the reference. Please help me in this regard. Thanks and Regards KSB test.xsl Description: test.xsl ?xml version=1.0 encoding=utf-8? header client nameSwiss test client/name numberU5AD, U5AG/number StartPeriod01.09.2006/StartPeriod EndPeriod30.09.2006/EndPeriod FinalReport24.09.2006/FinalReport /client information headings col1CUSIP/col1 col2ISIN Number/col2 col3Security Name/col3 col4Investment Type Name/col4 col5Incorporated Country Code/col5 col6Broker Name/col6 col7Blue card/col7 col8Cash Broker Flag/col8 col9Trade Date/col9 col10Post Date/col10 col11Transaction Type/col11 col12Original Trade Id/col12 /headings /information /header- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ERROR] null while running FOP
Hi, I have done transformation of xml to html. I am getting desired output using xalan parer. No I have replace html with xsl-fo tags so that I should get pdf output. 1) Is there any site which gives the html equivalent of xsl-fo tags? 2) I am getting null error while parsing. I have attached xsl and xml files please suggests me where is the actual problem. Thanks and Regards Bhaskar K S ?xml version=1.0 encoding=utf-8? header client nameSwiss test client/name numberU5AD, U5AG/number StartPeriod01.09.2006/StartPeriod EndPeriod30.09.2006/EndPeriod FinalReport24.09.2006/FinalReport /client /header test.xsl Description: test.xsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ERROR] null while running FOP
Hi Chris, After sending the mail I realized that there is typo error. I appreciate for your view of converting xml to pdf using xsl-f instead html in between. Thanks a lot. Is there any better sites that teaches xsl:fo with examples? Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: [EMAIL PROTECTED] -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 7:51 PM To: fop-users@xmlgraphics.apache.org Subject: Re: [ERROR] null while running FOP [EMAIL PROTECTED] wrote: Hi, I have done transformation of xml to html. I am getting desired output using xalan parer. No I have replace html with xsl-fo tags so that I should get pdf output. 1) Is there any site which gives the html equivalent of xsl-fo tags? A quick search on google revealed the html2fo project: http://html2fo.sourceforge.net/ BTW, I believe what you are doing is not the best approach. A better solution is to generate 2 separate XSLT stylesheets; 1 to transform your own XML to HTML and another to tranform the XML to XSL-FO. Creating a chain like XML-HTML-XSL-FO means some features may be lost in translation. 2) I am getting null error while parsing. I have attached xsl and xml files please suggests me where is the actual problem. You dont say what version of FOP you are using? I had a quick look at your XSLT and there is a typo in the client template: xsl:template match=client fo:block xsl:value select=name/ xsl:value select=number/ /fo:block /xsl:template The xsl:value element doesnt exist. I believe you meant xsl:value-of BTW, this is a pure XSLT problem, which you would have spotted yourself if you ran the XSLT in a separate step before presenting FOP with the XSL-FO. If you call FOP with an XML and XSL file then it calls xalan to generate the XSL-FO first. 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: Assigning value to html tag
Hi Mahmoudi, Thanks a lot it is working fine. Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: mahmoudi ould abdel vetah [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 13, 2006 4:29 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Assigning value to html tag hi, you can do it with : xsl:variable name=width select=colsize1/ th width={$width} i home this help! you. 2006/12/13, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I am reading one of the tag values (name colsize1) from xml. How can I assign this tag value to html attribute? Example colsize112/colsize1 then I want set the column width (th width=12) to 12 units. Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: ks.bhaskar @iflexsolutions.com mailto:[EMAIL PROTECTED]
RE: Width issue
Hi Jay, This is what I was looking. Thanks a lot. Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] From: Jay Bryant [mailto:[EMAIL PROTECTED] Sent: Saturday, December 09, 2006 10:05 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Width issue Do you mean that you want to spread the 31 columns into more than one row in the output and then separate each set of output rows with a horizontal bar? If so, look at fo:leader. Here's an example: fo:blockfo:leader xsl:use-attribute-sets=headerleader//fo:block And here's the attribute set that controls the leader's appearance: xsl:attribute-set name=headerleader xsl:attribute name=leader-patternrule/xsl:attribute xsl:attribute name=rule-styledouble/xsl:attribute xsl:attribute name=rule-thickness3.0pt/xsl:attribute xsl:attribute name=leader-length10.5in/xsl:attribute xsl:attribute name=space-before.optimum0pt/xsl:attribute xsl:attribute name=space-after.optimum24pt/xsl:attribute xsl:attribute name=colorblack/xsl:attribute /xsl:attribute-set (In case you wonder about the length, it was for a report that was printed landscape on 8.5x11in paper and had quarter-inch margins.) HTH Jay Bryant Bryant Communication Services - Original Message - From: [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Thursday, December 07, 2006 10:58 PM Subject: Width issue Hi, I need generate pdf report having 31 columns. Since size of pdf is confined all the 31 columns are not visible in the same line. Is there anything horizontal bar in pdf so, that I can over come the above issue? Please help me in this regard. Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Width issue
Hi, I need generate pdf report having 31 columns. Since size of pdf is confined all the 31 columns are not visible in the same line. Is there anything horizontal bar in pdf so, that I can over come the above issue? Please help me in this regard. Thanks and Regards Bhaskar K S Associate Consultant - Investment Banking i-flex solutions limited - Bangalore i-flex center, Kundalahalli Tel. Office: 91-80-66596589 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]