RE: Validation error with stable version FOP 2.9
Joao Andre Goncalves <[email protected]> Wed, 14 Aug 2024 16:47:47 +0000
| Newsgroups | gmane.text.xml.fop.user |
|---|---|
| Message-ID | <AM9PR04MB86047420A969C4A2780DC7D9DD872@AM9PR04MB8604.eurprd04.prod.outlook.com> |
--_000_AM9PR04MB86047420A969C4A2780DC7D9DD872AM9PR04MB8604eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I tried replicating the issue with your code but I wasn't able to. I replac= ed the xsl:value-of with blank values. I can't see how the dates would caus= e an issue. If you could share the complete fo to test would be appreciated. Regards, Joao Andre Goncalves From: Anirban De <[email protected]> Sent: Wednesday, August 14, 2024 12:31 PM To: [email protected] Subject: Validation error with stable version FOP 2.9 You don't often get email from [email protected]<mailto:anirban.de20= [email protected]>. Learn why this is important<https://aka.ms/LearnAboutSenderI= dentification> Hi team, We have a requirement for converting XSL-FO to PDF. Recently we have migrat= ed from FOP 0.95 FOP 2.9. We are facing a problem with nested <fo:table>'s = with the current version. The exception that we are getting is: org.apache.fop.fo.ValidationException:the column-number or number of cells = in the row overflows the number of fo:table-columns specified for the table= . (See position 0:0). Sample XSL file code like below: <fo:table font-size=3D"8px" table-layout=3D"fixed" width=3D"100%"> <fo:table-column column-width=3D"proportional-column-width(1)"/= > <fo:table-column column-width=3D"proportional-column-width(1)"/= > <fo:table-body> <fo:table-row> <fo:table-cell number-columns-spanned=3D"2"> <fo:table table-layout=3D"fixed" width=3D"100%"> <fo:table-column column-width=3D"proportional-c= olumn-width(1)"/> <fo:table-column column-width=3D"proportional-c= olumn-width(1)"/> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:block color=3D"#0a70b6" font-we= ight=3D"bold" font-size=3D"9px">Individual Case Report</fo:block> <fo:block font-weight=3D"bold"> <fo:wrapper color=3D"#0a70b6">D= ate Learned:</fo:wrapper> <fo:wrapper> <xsl:value-of select=3D"dat= eFormat:format($dateLearned, 'yyyy-MM-dd')"/> </fo:wrapper> </fo:block> </fo:table-cell> <fo:table-cell text-align=3D"right"> <fo:block data-path=3D"studyId" fon= t-weight=3D"bold" font-size=3D"9px"> <fo:wrapper color=3D"#0a70b6"> Protocol # </fo:wrapper> <fo:wrapper> <xsl:value-of select=3D"jav= a:getStudyId($trial)"/> </fo:wrapper> </fo:block> <fo:block font-weight=3D"bold"> <fo:wrapper color=3D"#0a70b6"> Initial Date Learned: </fo:wrapper> <fo:wrapper> <xsl:value-of select=3D"dat= eFormat:format($initialDateLearned, 'yyyy-MM-dd')"/> </fo:wrapper> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> Please guide me what changes need to be done to address the bug or exceptio= n. Regards Anirban ________________________________ Joao Andre Goncalves Customer Developer t | m 07733161880 [email protected] smartcommunications.com<https://www.smartcommunications.com/> [https://scale.smartcommunications.com/rs/041-BQO-927/images/INV24-Email-Si= gnature-450x160_v2.png]<https://www.smartcommunications.com/resources/event= s/innovate/innovate-24-london/> INNOVATE is back and bigger than ever! Join us October 8, 2024 at the Royal= Lancaster, London. Register now!<https://www.smartcommunications.com/resou= rces/events/innovate/innovate-24-london/> Smart Communications is a trading= name of SmartComms SC Limited which is registered in England under No. 430= 3041 whose registered office is at Suite 23, LCLB, 95 Mortimer Street, Lond= on, W1W 7GB. Please consider the environment before printing. The contents = of this e-mail are intended for the named addressee only. It contains confi= dential information. Unless you are the named addressee or an authorized de= signee, you may not copy or use it, or disclose it to anyone else. If you r= eceived it in error please notify us immediately and then destroy it. Smart= Communications will process your data as described in the Smart Communicat= ions' External Privacy Policy.<https://www.smartcommunications.com/external= -privacy-policy/> Follow us on LinkedIn<https://www.linkedin.com/company/15166060/admin/> and= Twitter<https://twitter.com/ccminnovators?lang=3Den> --_000_AM9PR04MB86047420A969C4A2780DC7D9DD872AM9PR04MB8604eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= > <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Aptos;} @font-face {font-family:"Segoe UI"; panose-1:2 11 5 2 4 2 4 2 2 3;} @font-face {font-family:Hack; panose-1:0 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:12.0pt; font-family:"Aptos",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Aptos",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-GB" link=3D"blue" vlink=3D"purple" style=3D"word-wrap:brea= k-word"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US">Hi, <br> <br> I tried replicating the issue with your code but I wasn’t able to. I = replaced the xsl:value-of with blank values. I can’t see how the date= s would cause an issue. <br> If you could share the complete fo to test would be appreciated.<br> <br> Regards, <br> Joao Andre Goncalves<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US"><o:p> </o:p></span></p> <div> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:11.0pt;fo= nt-family:"Calibri",sans-serif">From:</span></b><span lang=3D"EN-= US" style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif"> = Anirban De <[email protected]> <br> <b>Sent:</b> Wednesday, August 14, 2024 12:31 PM<br> <b>To:</b> [email protected]<br> <b>Subject:</b> Validation error with stable version FOP 2.9<o:p></o:p></sp= an></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding= =3D"0" align=3D"left" width=3D"100%" style=3D"width:100.0%"> <tbody> <tr> <td style=3D"background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt 1.5pt"></td> <td width=3D"100%" style=3D"width:100.0%;background:#EAEAEA;padding:5.25pt = 3.75pt 5.25pt 11.25pt"> <div> <p class=3D"MsoNormal" style=3D"mso-element:frame;mso-element-frame-hspace:= 2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-el= ement-anchor-horizontal:column;mso-height-rule:exactly"> <span style=3D"font-size:9.0pt;font-family:"Segoe UI",sans-serif;= color:#212121">You don't often get email from <a href=3D"mailto:[email protected]">[email protected]</a>. <= a href=3D"https://aka.ms/LearnAboutSenderIdentification"> Learn why this is important</a><o:p></o:p></span></p> </div> </td> <td width=3D"75" style=3D"width:56.25pt;background:#EAEAEA;padding:5.25pt 3= .75pt 5.25pt 3.75pt;align:left"> </td> </tr> </tbody> </table> <div> <div> <p class=3D"MsoNormal">Hi team, <o:p></o:p></p> <div> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ha= ck",serif;color:#222233">We have a requirement for converting XSL-FO t= o PDF. Recently we have migrated from FOP 0.95 FOP 2.9. We are facing a pro= blem with nested <fo:table>'s with the current version. The exception that we are getting is: </span><o:p></o:p></p> </div> <div> <p class=3D"MsoNormal">org.apache.fop.fo.ValidationException:the column-num= ber or number of cells in the row overflows the number of fo:table-columns = specified for the table. (See position 0:0).<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> <div> <p class=3D"MsoNormal">Sample XSL file code like below:<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"> <fo:table font-size=3D"8px" table= -layout=3D"fixed" width=3D"100%"><br> <fo:table-column column-width= =3D"proportional-column-width(1)"/><br> <fo:table-column column-width= =3D"proportional-column-width(1)"/><br> <br> <fo:table-body><br> <fo:table-row>= ;<br> <f= o:table-cell number-columns-spanned=3D"2"><br>  = ; <fo:table table-layout=3D"fixed" width=3D"100%&q= uot;><br>  = ; <fo:table-column column-width=3D"proportiona= l-column-width(1)"/><br>  = ; <fo:table-column column-width=3D"proportiona= l-column-width(1)"/><br> <br>  = ; <fo:table-body><br>  = ; <fo:table-row><br>  = ; <fo:table-cell><br= >  = ; <fo:blo= ck color=3D"#0a70b6" font-weight=3D"bold" font-size=3D&= quot;9px">Individual Case Report</fo:block><br>  = ; <fo:blo= ck font-weight=3D"bold"><br>  = ; &nb= sp; <fo:wrapper color=3D"#0a70b6">Date Learned:</fo:wrap= per><br>  = ; &nb= sp; <fo:wrapper><br>  = ; &nb= sp; <xsl:value-of select=3D"dateFormat:format($dateLe= arned, 'yyyy-MM-dd')"/><br>  = ; &nb= sp; </fo:wrapper><br>  = ; </fo:bl= ock><br>  = ; </fo:table-cell><b= r>  = ; <fo:table-cell text-a= lign=3D"right"><br>  = ; <fo:blo= ck data-path=3D"studyId" font-weight=3D"bold" font-size= =3D"9px"><br>  = ; &nb= sp; <fo:wrapper color=3D"#0a70b6"><br>  = ; &nb= sp; Protocol #<br>  = ; &nb= sp; </fo:wrapper><br>  = ; &nb= sp; <fo:wrapper><br>  = ; &nb= sp; <xsl:value-of select=3D"java:getStudyId($trial)&q= uot;/><br>  = ; &nb= sp; </fo:wrapper><br>  = ; </fo:bl= ock><br>  = ; <fo:blo= ck font-weight=3D"bold"><br>  = ; &nb= sp; <fo:wrapper color=3D"#0a70b6"><br>  = ; &nb= sp; Initial Date Learned:<br>  = ; &nb= sp; </fo:wrapper><br>  = ; &nb= sp; <fo:wrapper><br>  = ; &nb= sp; <xsl:value-of select=3D"dateFormat:format($initia= lDateLearned, 'yyyy-MM-dd')"/><br>  = ; &nb= sp; </fo:wrapper><br>  = ; </fo:bl= ock><br>  = ; </fo:table-cell><b= r>  = ; </fo:table-row><br>  = ; </fo:table-body><br>  = ; </fo:table><br> </= fo:table-cell><br> </fo:table-row&g= t;<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> <div> <p class=3D"MsoNormal">Please guide me what changes need to be done to= address the bug or exception.<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> <div> <p class=3D"MsoNormal">Regards<o:p></o:p></p> </div> <div> <p class=3D"MsoNormal">Anirban<br> <span style=3D"font-size:10.0pt;font-family:"Hack",serif;color:#2= 22233"> </span><o:p></o:p></p> </div> </div> </div> </div> <style type=3D"text/css">=0A= a:link {color:#20407f;text-decoration:none;}=0A= a:visited {color:#20407f;text-decoration:none;}=0A= </style> <table style=3D"width:400px"> <tbody> <tr> <td colspan=3D"2"> <hr size=3D"4" color=3D"fec432" width=3D"30%" align=3D"left"> </td> </tr> <tr> <td width=3D"65%" ;=3D"" style=3D"FONT-FAMILY: Arial Black; COLOR: #20407f;= FONT-SIZE: 11px"> Joao Andre Goncalves<br> Customer Developer<br> <br> </td> </tr> <tr> <td style=3D"FONT-FAMILY: Arial; COLOR: #20407f; FONT-SIZE: 9px">t | m 0773= 3161880<br> [email protected]<br> <a href=3D"https://www.smartcommunications.com/">smartcommunications.com</a= ><br> <br> </td> </tr> </tbody> </table> <table style=3D"width:400px"> <tbody> <tr> <td width=3D"100%" ;=3D"" colspan=3D"2"><a href=3D"https://www.smartcommuni= cations.com/resources/events/innovate/innovate-24-london/"><img src=3D"http= s://scale.smartcommunications.com/rs/041-BQO-927/images/INV24-Email-Signatu= re-450x160_v2.png" width=3D"" 450=3D"" height=3D"160"></a><br> <br> </td> </tr> <tr> <td width=3D"28%" ;=3D"" style=3D"FONT-FAMILY: Arial Black; COLOR: #20407f;= FONT-SIZE: 10px"> <a href=3D"https://www.smartcommunications.com/resources/events/innovate/in= novate-24-london/">INNOVATE is back and bigger than ever! Join us October 8= , 2024 at the Royal Lancaster, London. Register now!</a></td> <td width=3D"72%" ;=3D"" style=3D"FONT-FAMILY: Arial; COLOR: #939597; line-= height: 13px; FONT-SIZE: 9px"> Smart Communications is a trading name of SmartComms SC Limited which is re= gistered in England under No. 4303041 whose registered office is at Suite 2= 3, LCLB, 95 Mortimer Street, London, W1W 7GB. Please consider the environme= nt before printing. The contents of this e-mail are intended for the named addressee only. It contains conf= idential information. Unless you are the named addressee or an authorized d= esignee, you may not copy or use it, or disclose it to anyone else. If you = received it in error please notify us immediately and then destroy it. Smart Communications will process your= data as described in the Smart Communications' <a href=3D"https://www.smartcommunications.com/external-privacy-policy/">Ex= ternal Privacy Policy.</a></td> </tr> <tr> <td width=3D"100%" ;=3D"" colspan=3D"2" style=3D"FONT-FAMILY: Arial Black; = COLOR: #20407f; FONT-SIZE: 10px"> <br> Follow us on <a href=3D"https://www.linkedin.com/company/15166060/admin/">L= inkedIn</a> and <a href=3D"https://twitter.com/ccminnovators?lang=3Den">Twitter</a></td> </tr> </tbody> </table> </body> </html> --_000_AM9PR04MB86047420A969C4A2780DC7D9DD872AM9PR04MB8604eurp_--