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

referencing remote patterns

From: Peter Fry <Peter.Fry@oracle.com>
Date: Tue, 29 Jun 2004 10:25:29 +0100
To: <www-svg@w3.org>


I am using the Adobe SVG plugin 3.0 and wish
to reference patterns held in a remote resource i.e.
The main svg doc would contain

<rect x="2800" y="334.125" width="200.0" height="82.5"
fill="url(/upsell/patterns/patterns.svg#hatchGREEN)" stroke="white"

The contents of /upsell/patterns/patterns.svg is

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
<svg width="18.0cm" height="15.0cm" viewBox="0 0 208.0 169.0"
<pattern id="hatchGREEN" patternUnits="userSpaceOnUse" x="0" y="0"
width="50" height="50">
    <rect x="0" y="0" width="15" height="50"
      fill="rgb(255,99,71)" stroke="none"
    <rect x="15" y="0" width="35" height="50"
      fill="yellow" stroke="none"

Is this valid? Are there other ways of doing this.
The majority of the SVG document is programatically
constructed and having the patterns as a web resource
aids maintainability and in this case performance.

Peter Fry
Received on Wednesday, 7 July 2004 14:50:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:01 UTC