I am generating PDF using XSL/FO which converts HTML to PDF.
I am using XSL/FO stylesheet, that generates a .fo file. Apache FOP generates a pdf from the .fo file.
In my html file there are so many tag which contains "display" inline css property due to this below error occurs :
javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; systemId: file:/E:/Projects/PDF/xhtml2fo.xsl; lineNumber: 484; columnNumber: 44; Invalid property encountered on "fo:block": display (No context info available)
Caused by: org.apache.fop.fo.ValidationException: Invalid property encountered on "fo:block": display (No context info available) at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38) at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58) at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173) at com.sun.proxy.$Proxy65.invalidProperty(Unknown Source) at org.apache.fop.fo.PropertyList.handleInvalidProperty(PropertyList.java:557) at org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:476) at org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:386) at org.apache.fop.fo.FObj.processNode(FObj.java:124) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179) at org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.java:860) ... 72 more
html code with display property:
<div id="something" style="display:block;">Some value</div>
How can we include "display" style part processing in xsl:
<xsl:template name="process-style">