DocBook tables output to Excel
-
- Posts: 10
- Joined: Tue Aug 24, 2010 6:49 pm
DocBook tables output to Excel
Is there a way to transform the tables in a DocBook document into Excel files?
I have a long DocBook document that contains many tables. The content of the tables ultimately comes from a UML/SysML model. I already transform this document into HTML and PDF. As part of our baseline transformation process, I'd like to output the tables (and only the tables) into an Excel file or files.
The best manual workaround I have now is to copy the tables from the HTML page and paste them into Excel. Excel actually does a reasonable job at this. But, there are too many tables for this to be a routine solution.
Once I can get the raw data into Excel, it would be great to have some control over the formatting, in particular column widths.
Thanks,
Marc
I have a long DocBook document that contains many tables. The content of the tables ultimately comes from a UML/SysML model. I already transform this document into HTML and PDF. As part of our baseline transformation process, I'd like to output the tables (and only the tables) into an Excel file or files.
The best manual workaround I have now is to copy the tables from the HTML page and paste them into Excel. Excel actually does a reasonable job at this. But, there are too many tables for this to be a routine solution.
Once I can get the raw data into Excel, it would be great to have some control over the formatting, in particular column widths.
Thanks,
Marc
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook tables output to Excel
Post by sorin_ristache »
Hi,
If you have many tables and you want to do the Docbook to Excel conversion automatically then one possible way would be an XSLT stylesheet. I think there is no widely known XSLT stylesheet for this conversion, you can try to create one following the model of the XSLT stylesheets for the Docbook to Word conversion (the stylesheets for the Word conversion are located in [Oxygen-install-dir]/frameworks/docbook/xsl/roundtrip).
If a manual conversion would be also acceptable you can do the conversion indirectly: Docbook -> CSV (comma separated values) -> Excel or Docbook -> XHTML -> Excel, because Excel can import from CSV and XHTML files.
Would a conversion to Word instead of Excel be acceptable? In this case you can use the stylesheets from the [Oxygen-install-dir]/frameworks/docbook/xsl/roundtrip directory and I can give you more details about that.
Regards,
Sorin
If you have many tables and you want to do the Docbook to Excel conversion automatically then one possible way would be an XSLT stylesheet. I think there is no widely known XSLT stylesheet for this conversion, you can try to create one following the model of the XSLT stylesheets for the Docbook to Word conversion (the stylesheets for the Word conversion are located in [Oxygen-install-dir]/frameworks/docbook/xsl/roundtrip).
If a manual conversion would be also acceptable you can do the conversion indirectly: Docbook -> CSV (comma separated values) -> Excel or Docbook -> XHTML -> Excel, because Excel can import from CSV and XHTML files.
Would a conversion to Word instead of Excel be acceptable? In this case you can use the stylesheets from the [Oxygen-install-dir]/frameworks/docbook/xsl/roundtrip directory and I can give you more details about that.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service