Re: [xep-support] XEP and SVG

From: Nikolai Grigoriev (grig@renderx.com)
Date: Fri Oct 24 2003 - 07:11:28 PDT

  • Next message: Chris Lilley: "Re: [xep-support] XEP and SVG"

    Chris,

    > NG> Your image uses CSS selectors for styling. We don't support CSS stylesheets
    > NG> in SVG.
    >
    > A pity.

    The work is underway.

    > NG> a specific styling technology like CSS; I wonder if there is a switch
    > NG> somewhere in CorelDraw to disable it).
    >
    > There is. Tell it to use formatting attributes instead.

    A pity that CSS is on by default.

    > !! so, its still using CSS !! but a part of CSS that you implement,
    > since the selector is implicit.

    We support 'style' attribute, but not yet stylesheets. CSS is embedded
    too deep into SVG for any implementation to ignore it completely.
    SVG 1.1 Recommendation uses CSS 'style' attribute in samples
    throughout the text (not necessarily to illustrate CSS styling); and
    W3C SVG test suite contains CSS constructs even in tests unrelated
    to CSS proper. We would like not to implement CSS at all since
    there is XSL; it looks however that we have no chance :-).

    > NG> moving all styling info to entities;
    >
    > Why?

    Because it can be done with a ten-line Perl script,
    and I had the script at hand. No special meaning here.

    > Corel Draw, like Illustrator and many other originally
    > print-oriented tools, makes the author select a 'paper size'
    > for a new drawing. The width and height here are those
    > of A4 paper.

    When a graphic is put onto a page in XSL, it receives
    a half-leading white space before and after the image
    (because it is an inline element). When you insert
    an A4-sized image on an A4 page, it does not fit.
    This mistake is very common, and I suspect that Stefan
    felt into the trap (otherwise XEP would have drawn
    something - even without styling). That's why I felt
    useful to remind about the necessity to scale the image.

    Regards,
    Nikolai Grigoriev
    RenderX

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Fri Oct 24 2003 - 07:07:06 PDT