referencing elements within an external SVG
SVG 1.1 spec says that:
http://www.w3.org/TR/SVG11/struct.html#URIReference 5.3 References and the 'defs' element 5.3.1 Overview:
*the 'use' http://www.w3.org/TR/SVG11/struct.html#UseElement element can reference any local or non-local resource
http://www.w3.org/TR/SVG11/struct.html#ImageElement Section 5.7 The 'image' element:
*Unlike 'use' http://www.w3.org/TR/SVG11/struct.html#UseElement, the 'image' element cannot reference elements within an SVG file.
So... I imagine that the 'use' element should allow me to reference elements within an external SVG (i.e. a non-local resource)
but I try to do that and I get nothing! Any clue on that?
**************** This is my use.svg file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:svg="http://www.w3.org/2000/svg"> <use xlink:href="file:///home/aluno/Desktop/circle.svg" /> </svg>
**************** This is my circle.svg file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg"> <circle id="mycircle" cx="300" cy="225" r="150" fill="red"/> </svg>
participants (1)
-
Felipe Sanches