xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helder Magalhães" <helder.magalh...@gmail.com>
Subject Re: Filling a rectangle with a tiled pattern of .png files
Date Tue, 01 Apr 2008 09:23:19 GMT
>  However I am getting the following error:
>  java.net.MalformedURLException: no protocol: defs.svg#fpatid

Although I'm not sure if the specification states it as mandatory,
elements which are to be reused should generally be enclosed within a
"defs" element [1].

Given your sample will lead to:
<?xml version="1.0" encoding="UTF-8"?>
<svg height="297mm" width="210mm">
  <defs>
    <pattern width="0.5in" x="0.5in" height="0.5in" id="fpatid" y="0.5in"
     xlink:href="file:///volumes/pbook/users/user/images/image.png"/>
  </defs>
  <rect fill="url(#fpatid)" x="0.0in" width="0.5in"
   height="0.5in" y="0.0in" stroke="none"/>
</svg>

Please consider including Jonathan Chetwynd's suggestions for improved
accessibility and standards compliance.

Regards,

  Helder Magalhães

[1] http://www.w3.org/TR/SVG/struct.html#DefsElement

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message