>  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to