[xep-support] Using SVG in FO

Arjan Loeffen arjan at salience.nl
Sun Jun 15 08:45:23 PDT 2003


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 at salience.nl <mailto:arjan at salience.nl>
Mobiel: 06-51364196
Salience BV
Coltbaan 27b 3439NG Nieuwegein 030-6056675
Web: http://www.salience.nl



-----Original Message-----
From: owner-xep-support at renderx.com [mailto:owner-xep-support at renderx.com]On
Behalf Of David Tolpin
Sent: Sunday, June 15, 2003 12:48 PM
To: xep-support at 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 at 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 at 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



More information about the Xep-support mailing list