thank's I had a problem of namespace.
On Tue, Dec 15, 2009 at 11:53 AM, <[email protected]> wrote: > Hi Dao, > > dao <[email protected]> wrote on 12/15/2009 02:45:18 AM: > > > Is it possible? > Yes, it is possible. > > > what's wrong with my example? nothing displayed :-( > > Nothing obvious. Does it work if warningIcon is in the > same file? Why don't you create two very simple files (you > almost have them) and try loading the base file in the Batik > Squiggle SVG browser, and see if that works. > > We use this fairly widely in our samples (for example > almost all of the top level samples use the 'Batik_Tag_Box' > from the batikLogo.svg file). > > > <svg xmlns:xlink="http://www.w3.org/1999/xlink" ... xmlns=" > http://www.w3.org/2000/svg"> > > <style type="text/css" xml:space="preserve"> > > <use x="-53.175" y="-194.283" transform="matrix(0.5084 0 0 -0.5084 > 796.3025 487.9082)" > > width="106.349" xmlns:xlink="http://www.w3.org/1999/xlink" > > xlink:href="warning.svg#warningIcon" xlink:type="simple" > > xlink:actuate="onLoad" id="warn" height="388.566"/> > > </svg> > > > > knowing that in my folder I have the warning.svg file containing the > symbol. > > > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > > <!-- Created with Inkscape (http://www.inkscape.org/) --> > > <svg ... /> > > <defs > > id="defs4"> > > ... > > </defs> > > <symbol preserveAspectRatio="xMidYMid meet" id="warningIcon" > > viewBox="-53.175 -194.283 106.349 388.566"> > > <path > > style="font-size:333.22640991px;font-style:normal;font- > > variant:normal;font-weight:bold;font-stretch:normal;text- > > align:start;line-height:125%;writing-mode:lr-tb;text- > > anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width: > > 1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font- > > family:Angsana New" > > d="M ... z " > > id="text2171" /> > > </symbol> > > </svg> > > > > -- > > Dao Hodac > -- Dao Hodac
