RE: [xep-support] Using SVG in FO

From: Arjan Loeffen (arjan@salience.nl)
Date: Sun Jun 15 2003 - 08:45:23 PDT

  • Next message: Arjan Loeffen: "RE: [xep-support] Using SVG in FO"

    This is the FO document that I had the problem with.

    <?xml version="1.0"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:svg="http://www.w3.org/2000/svg">
    <fo:layout-master-set>
      <fo:simple-page-master master-name="one">
        <fo:region-body margin-top="25pt" margin-bottom="25pt"
    margin-left="50pt" margin-right="50pt" />
      </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="one">
    <fo:flow flow-name="xsl-region-body">
          <fo:block>This is used to show how foreign objects are placed in a
    line area.</fo:block>
          <fo:block>
            Some block text to separate instream objects.
          </fo:block>
          <fo:block>
            Some text before
    <fo:instream-foreign-object>
    <svg:svg width="20" height="20">
      <svg:g style="fill:red; stroke:#000000">
         <svg:rect x="0" y="0" width="15" height="15"/>
         <svg:rect x="5" y="5" width="15" height="15"/>
      </svg:g>
    </svg:svg>
    </fo:instream-foreign-object>
            and some after the svg element.
          </fo:block>
          <fo:block>
            A text line below the instream object.
          </fo:block>
        </fo:flow>
      </fo:page-sequence>
    </fo:root>

    arjan

    Arjan Loeffen

    Mail: arjan@salience.nl <mailto:arjan@salience.nl>
    Mobiel: 06-51364196
    Salience BV
    Coltbaan 27b 3439NG Nieuwegein 030-6056675
    Web: http://www.salience.nl

    -----Original Message-----
    From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]On
    Behalf Of David Tolpin
    Sent: Sunday, June 15, 2003 12:48 PM
    To: xep-support@renderx.com
    Subject: Re: [xep-support] Using SVG in FO

    > =
    > how can I use XEP to process SVG (<fo:instream-foreign-object><svg:svg
    > width="20" height="20">...etc) without XEP validating the FO? That doesn't
    > work; XEP returns a validation error as it doesn't accept any of the svg
    > elements......
    > =
    > Arjan Loeffen

    Did you define namespace and namespace prefix binding for svg:?

    David
    -------------------
    (*) 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

    -------------------
    (*) 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 : Sun Jun 15 2003 - 08:50:43 PDT