I am using javax.xml.transform.Transformer to transform XHTML to XSL-FO using an XSL parser. But the parser I have is not able to copy style attributes to XSL-FO. So, can you help with valid parser which should be able to parse XHTML with style attributes to XSL-FO.
htmlToFo Transformer (an XSL file which should have logic to copy even style attributes of HTML to FO)
150 views Asked by user2006613 At
1
There are 1 answers
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in XSLT
- Sorting items after building an XML feed?
- link href to website css does not work since upgrading to Windows Server 2019
- Chaining templates in XSLT 2.0
- XPath - how to exclude text from child node
- Reuse XSLT for different XML inputs using parameters in nodeJS with saxon-js
- How to iterate XSL and get nodes
- XSLT to tun flat xml structure into hierarchical
- transform '?oxy_comments' into xml tag
- xslt transform hierarchy into new hierarchy
- Convert element tags to key value pair in OIC map
- Converting characters in XML text node to subscript or superscript with XSLT
- Saxon HE 12.4 Fails to provide the error location in ErrorReporter
- how can I use net.sf.saxon.s9api.XsltTransformer in multiple threads to avoid impacting perfromance and throughput?
- Issue with XSL Display since Chrome 123 Update
- 'XML External Entity Injection' issue isn't resolving even after fortify recommended suggestion
Related Questions in XSL-FO
- How to retrieve and use chapter numbers in AntennaHouse PDF generation with DITA Open Toolkit?
- XSL-FO Table rows page breaks
- XSL FO: <FO:inline-container> overflowing table content
- FOP pdf generation : display table side by side based on its content
- Display part of a table in one page and the rest in another page in XSL-FO
- How to avoid unwanted empty page
- How do i wrap the unparsed-text function in a condition so that it is not called all the time?
- How do i pass a dynamic filename to unparsed-text function in xslt?
- FOP if before fox:external-document
- XSL Formatting Objects don't honor attributes for header or footer in page masters
- xsl-fo: remove empty (header/footer-only) page in page-sequence
- How to convert XSL FO to XSLT template
- Add additional text pages in XSL FO (FOP) without header
- customizing xsl-fo page-sequences in ditac
- Same page number on front and back of card
Related Questions in CSS-TO-PDF
- How to transform XHTML+CSS with embedded images to XSL-FO?
- htmlToFo Transformer (an XSL file which should have logic to copy even style attributes of HTML to FO)
- domPDF dynamic input values to PDF
- Converting SVG with styles to PDF
- Can XEP online print a wide table without cutting it off?
- css2pdf xepOnline Cloudformatter - Hide elements in html but display in PDF
- Blank page when certain size of content is reached
- Export Google Chart to PDF using Cloudformatter, generates blank PDF
- Add non chart content in highchart pdf
- css to PDF using css2pdf@cloudformatter
- How do I save the PDF to server? css2pdf@cloudformatter xeponline
- How do I show a section when download div as PDF but hide it on screen
- how to insert xmlns and xlink attributes into svg element/tag generated by c3 charts?
- Linking service Xportability/css-to-pdf to a JavaScript spinner
- Email xepOnline generated file
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can expand on this simple example, using a choose structure to eliminate/change the names to recognized XSL FO attributes. There are things in HTML like a style that starts-with "-moz" that likely has no meaning in XSL FO. Some others need adjustments made. You would also need to handle direct attributes (like
@colspanor@rowspan) that are not in the@styleattribute.Given this simple input:
Using this XSL:
You get this output:
You can see the
tokenize()function split the@styleattribute into parts and those parts are used to create appropriate XSL FO attributes.The site using similar methods is linked below. It has a very complex XSL for handling inline
@styleto XSL FO attributes.Cloudformatter CSStoPDF