W3C home > Mailing lists > Public > www-svg@w3.org > November 2004

Re: SVG 1.2 Comment: 4 Flowing text and graphics

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 04 Nov 2004 14:56:30 +0100
To: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Cc: www-svg@w3.org
Message-ID: <419b3308.867276527@smtp.bjoern.hoehrmann.de>

* Cameron McCormack wrote:
>I think in general XSLT is not so good for generating SVG from XML data,
>simply because to decide where to lay out objects you need to have some
>idea about the dimensions of certain objects.  Text is probsbly the main
>culprit here, since you can't know ahead of time exactly what dimensions
>your text will have--a different font may be chosen, for example.  And
>it isn't always best to simply say "well just emebed your font so you
>know exactly what it will be"; sometimes you don't want to do this.

Indeed, it is most disappointing that the SVG Working Group was so
far unable to come up with a proper solution for this problem.

>But it is possible.  Your XSLT could generate a bunch of script to adapt
>to potential font changes.  With sXBL this would be better, since the
>script is contained in an sXBL definition, and your XSLT only has to
>output sXBL component instantiation elements.

You could also use script alone, I wrote a simple charting component
that generates bar charts from SVG documents with lots of


data that adapts to font sizes, etc. which can be specified e.g. using a
style element in the SVG document. But this sucks quite a lot...
Received on Thursday, 4 November 2004 13:57:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:01 UTC