Apologies if this is a duplicate... I sent this out from the wrong
email address so it probably didn't make it to the list...

---------- Forwarded message ----------
From: Archie Cobbs <[EMAIL PROTECTED]>
Date: Oct 24, 2006 8:48 AM
Subject: Re: Optimizing SVG via XSL
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Cc: [email protected]


On 10/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> then consolidated consecutive <path> elements into a single
> <path> element.

   How do you determine if it's safe to consolidate consecutive
<path> elements?  Since styling is done by CSS this would seem
essentially impossible in the general case (selectors) so what
assumptions do you make?

My algorithm may very well be wrong in the general case but works for
the documents I've been using. The logic is simply that two
consecutive path elements will be consolidated if they have the exact
same set of attributes, other than the "d" and "pathLength"
attributes.

I'm not familiar enough with CSS and selectors (what are those? :-) to
know if this logic would break documents using them. I had assumed
that if two <path>'s had the same attributes then you could
consolidate them, but maybe this is not true?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


--

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to