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 best solutions below
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in XSLT
- Why does a function show up as not defined
- CSV to XML XSLT: How to quote excape
- how to apply templates within xsl:for-each
- Java StreamSource from file in web application project
- How to move an attribute and its value from one element to another
- current index value in xsl
- XSLT list item position issue
- Error including one xslt to another
- xsl:fo how to check new page appears and special ouput
- Limit XSLT Variable to single character
- count the nodes ignoring blank nodes
- Sharepoint 2007 / Jquery - Replace all text on body or render HTML
- XML to XML using XSLT: How to check that element exists in output xml and if not create element with default value
- Visual Studio 2013 XSLT Profile
- Xml to html using xslt of inspect code of VS Projects
Related Questions in XSL-FO
- xsl:fo how to check new page appears and special ouput
- xsl fo list block dynamic numbering
- Altova Stylevision 2011 inserting ​ zero width space blocks
- How to generate PDF on the browser using JSF(Java) and Apache FOP
- Formatting table columns to ignore duplicates XSLT-1.0
- XSL-FO Stylesheets & Xalan XSLTransformation Engine
- How to split table after certain number of columns
- Summing based on matching values XSLT-1.0
- XSL keep-together and page-break-inside not working
- How to dynamically generate row color in XSL:FO without xsl:for-each
- XSL-FO table-cell with superscript and vertical alignment
- FOP table with cell having two blocks top and bottom aligned
- Best Windows XSLT Processor for conditional PDF output?
- How to get rid of the '\n' character while reading string from xsl?
- HashMap iteration in XSLT 2.0
Related Questions in CSS-TO-PDF
- CSS HTML Generate PDF file from image with text under it
- Using CSS print media with Xporability/css-to-pdf
- How do I show a section when download div as PDF but hide it on screen
- Add non chart content in highchart pdf
- css2pdf xepOnline Cloudformatter - Hide elements in html but display in PDF
- IE (or possibly Javascript library) Adding SVG namespace twice
- How to generate a pdf from html web page?
- Java generating PDF from XML
- Morris Graphs Export as PDF?
- How do I save the PDF to server? css2pdf@cloudformatter xeponline
- Export Google Chart to PDF using Cloudformatter, generates blank PDF
- Blank page when certain size of content is reached
- domPDF dynamic input values to PDF
- htmlToFo Transformer (an XSL file which should have logic to copy even style attributes of HTML to FO)
- How to transform XHTML+CSS with embedded images to XSL-FO?
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)
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?
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