https://issues.apache.org/bugzilla/show_bug.cgi?id=54061
--- Comment #8 from spao <spao...@gmail.com> --- (In reply to comment #6) > Hi, > > Initially I tried going through the code and implementing the fix you > suggested which does appear to be incorrect in the source, but unfortunately > it trips up later on with another null pointer exception. I then put in a > check for that to avoid it but I got a further NoSuchElement exception. It > was at this stage I looked at the FO and the validation warnings I tried to > circumvent by using the -r flag. It appears there is a lot wrong with the > file. The warnings / errors are all like the following: > > "fo:table-body" is missing child elements. Required content model: marker* > (table-row+|table-cell+) (See position 895:37) > > After looking through the FO there were numerous instances of tables with > table-body elements with no contents or similarly declared empty > table-headers. These are rules which both FOP and the FO must abide [1], so > I can see why FOP is falling over. I went through the FO removing all of the > blank tables with the problematic body and header's elements. After I had > done this I could successfully render the document. It may not be how it was > intended to look, but it did render. > > In order to get yours to render, I would recommend going through the FO file > and instead of removing the tables, add the necessary missing table-rows / > table-cells if these are used for formatting purposes. This should prevent > FOP from complaining whilst allowing you to render the document correctly. > > [1] http://www.w3.org/TR/xsl/#fo_table-body > > In the meantime, this bug can relate to the incorrect sublings usage you > specified in your original post. The fact is that I wanted to avoid to fix errors (example: fo: table-body missing childs) in the FO because I thought that strictValidation = false ignored them. But since FOP gave me NullPointer, so I proceeded as you said, that I corrected all errors as specified in http://www.w3.org/TR/xsl/, but this cost me a lot of trouble because the FO file is generated on a few lines, but very long, and therefore the error is of the type: "see position 3:56753"! But how do I find the column 56753? and after that I found it how do I compare it with my XSLT file that is indented? All this to say: there is a FOP option to create a FO file indented, which indicates the position of errors based on the file indented? Thanks a lot -- You are receiving this mail because: You are the assignee for the bug.