xsl-list
[Top] [All Lists]

Re: [xsl] DITA tables to SVG

2022-02-26 11:36:52
To follow up on Paul Tyson’s suggestion of using XSL-FO as a basis:

With both FOP and Antenna House you can render to an intermediate “area tree” 
format that represents the rendered content in XML.

That gives you everything you need to then render the result in SVG (or any 
other graphical format) because you can treat the area tree as a set of drawing 
instructions and you also have all the typographic details (fonts, x/y position 
of the text, etc.) that you would need to render the table accurately in SVG.

In addition, Antenna House offers direct SVG output as a separately-priced 
feature: https://www.antennahouse.com/svg-output

Cheers,

E.

_____________________________________________
Eliot Kimber
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com<https://www.servicenow.com>
LinkedIn<https://www.linkedin.com/company/servicenow> | 
Twitter<https://twitter.com/servicenow> | 
YouTube<https://www.youtube.com/user/servicenowinc> | 
Facebook<https://www.facebook.com/servicenow>

From: rick(_at_)rickquatro(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
Date: Saturday, February 26, 2022 at 11:04 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: Re: [xsl] DITA tables to SVG
[External Email]


A little further background: I have a series of DITA topics that need to be 
combined in a single chapter and opened with Adobe FrameMaker. FrameMaker is 
choking when trying to open the chapter (it has over 300 tables in it). The 
client is fine with having the tables as SVG graphics because the text renders 
as text in the resulting PDF. And thus my proposed task.

-----Original Message-----
From: rick(_at_)rickquatro(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Saturday, February 26, 2022 12:00 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] DITA tables to SVG

Thanks for all of the generous replies. I did more investigation on the svg 
format and, as Liam said, it is a format for rendering graphics. I need to 
render some dense tables as graphics and I have some examples that I can 
reverse engineer. Thanks again.

Rick

-----Original Message-----
From: Liam R. E. Quin liam(_at_)fromoldbooks(_dot_)org 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Friday, February 25, 2022 9:19 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] DITA tables to SVG

On Fri, 2022-02-25 at 17:27 +0000, rick(_at_)rickquatro(_dot_)com wrote:
HI All,



I have a series of DITA tables that I would like to convert to SVG.
Is there
a schema for SVG tabular data that I could use to create a stylesheet?

SVG doesn't really have tabular data. It's a vector graphics format.

Are you sure you mean SVG and not CSV?  Or are you trying to plot a graph or 
turn the table into a diagram of some sort?

Liam
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>