I haven't head of a java object mapping library specific for xsl-fo. Aleksi created one for flex documents. You can find it under the package se.excosoft.flexdtd if you are interested.
Here is an example of how it is used: final FlexDocument document = new FlexDocument(doc); FlexBody body = document.getBody(); String fontFam = body.getFontFamily(); You would have to create a similar package and create appropriate mappings between java object and xsl-fo nodes. In case you do decide to do that make sure to create a separate project outside of skribenta repo. Make the project independent from skribenta and use maven to handle dependencies and building. You might be using the terms incorrectly. We use XML transformers to apply xslt stylesheets and transform XML into XSL-FO. Apache FOP then renders the XSL-FO into a PDF. You wouldn't transform fo to a PDF. BR Thomas [1467204888818_logo-sm.png] Excosoft • Thomas Sörensen Cell +46 (0)76-199 3184 Email [email protected]<mailto:[email protected]> www.excosoft.se<http://www.excosoft.se/> ________________________________ From: Daniel Norberg <[email protected]> Sent: 07 May 2026 19:07 To: [email protected] <[email protected]> Subject: Is there a property resolver in the FOP API? Hi, I am developing support for transformation of FO to PDF with FOP using Java. I wonder if there is an API method that I can call that resolves a property? Here is one example: <fo:block font-size="12pt"> <fo:inline font-size="2em">Lorem ipsum</fo:inline> </fo:block> I want to call a method that can resolve the font-size on the <fo:inline> in pt, for instance with a similar code to this: float fontSize = FOP.getDimensionValue(element, "font-size"); Is there such a method available in FOP that I can use, or do I have to write my own code to resolve the value? Best regards/Vänliga hälsningar Daniel Norberg -- [X] Excosoft • Daniel Norberg • Developer • Application Consultant Södervägen 70, SE-183 64 Täby, SWEDEN Cell +46 (0)76-199 31 85 Email [email protected]<mailto:[email protected]> www.excosoft.se<http://www.excosoft.se/>
