- From: Peter Fry <Peter.Fry@oracle.com>
- Date: Tue, 29 Jun 2004 10:25:29 +0100
- To: <www-svg@w3.org>
Hi,
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"
stroke-width="10"
/>
The contents of /upsell/patterns/patterns.svg is
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="18.0cm" height="15.0cm" viewBox="0 0 208.0 169.0"
xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="hatchGREEN" patternUnits="userSpaceOnUse" x="0" y="0"
width="50" height="50">
<g>
<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"
/>
</g>
</pattern>
</defs>
</svg>
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