You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by louis lefevre <lu...@yahoo.fr> on 2003/05/19 09:52:01 UTC
[batik-dev] forever big problem with xlink:href
Concerning the problem with xlink:href, i tried all the possibilities but i ahve always en error. The most correct code i wrote (i think) is:
...
String svgNS = "http://www.w3.org/2000/svg";
String xmlNS= "http://www.w3.org/1999/xlink";
...
svgRoot.setAttributeNS(null, "xmlns:xlink", xmlNS);
...
Element symbol_offpage=doc.createElementNS(svgNS,"symbol");
symbol_offpage.setAttributeNS(null, "id", "symbol_offpage");
...
Element use=doc.createElementNS(svgNS, "use");
use.setAttributeNS(xmlNS,"href","#symbol_offpage"); use.setAttributeNS(xmlNS,"xlink:href","#symbol_offpage");
but then i get this error message, in a popup:
org.apache.batik.bridge.BridgeException: null:-1
The URI '' specified on the element <use> is invalid
for information, i use batik 1.1.1 and JSVGCanvas. Thx.
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
[batik-dev] JSVGCanvas tutorial ?!
Posted by louis lefevre <lu...@yahoo.fr>.
A complete JSVGCanvas tutorial would be very usefull !!!
Someone knows thing like that, or examples,...
ThX.
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
[batik-dev] URI of a resource
Posted by louis lefevre <lu...@yahoo.fr>.
I want to display an image .GIF with SVG in a JSVGCanvas. But it seems that the system do not find the URI. There is not any error message but instead of the correct image i get a "broken image".!!!
(batik1.5beta5)
Element bg2=doc.createElementNS(svgNS,"image");
...
bg2.setAttributeNS(xmlNS, "xlink:href", "paris.gif");
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
[batik-dev] JSVGCanvas and update of renderring
Posted by louis lefevre <lu...@yahoo.fr>.
is there another method to refresh the rendering of JSVGCanvas than this one : svgCanvas.setSVGDocument(mySVGDoc_i) ;
I think that this method is not appropriate and takes too much time if the renderring has to be refreshed frequently.
What should i do ? Thx.
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Re: [batik-dev] JSVGCanvas and update of document
Posted by louis lefevre <lu...@yahoo.fr>.
i have to developp this functionnality in a JSVGCanvas: to drag an object.
So, i change the attribute 'transform' when the mouse moves. then i update the JSVGCanvas:
element_i.setAttribute("transform",transformString_i);
svgCanvas.setSVGDocument(mySVGDoc_i) ;
the problem is that the result is correct since the element moves, but the screen is updated each time and it blinks when the element moves. I think i do not use the correct method, do i ?
---------------------------------
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
Re: [batik-dev] forever big problem with xlink:href
Posted by Vincent Hardy <vi...@sun.com>.
Hi Louis,
I recommend that you use Batik 1.5beta5 as it is better than 1.1.1, even
for static support.
Vincent.
louis lefevre wrote:
> Concerning the problem with xlink:href, i tried all the possibilities
> but i ahve always en error. The most correct code i wrote (i think) is:
>
> ...
> String svgNS = "http://www.w3.org/2000/svg";
> String xmlNS= "http://www.w3.org/1999/xlink";
> ...
> svgRoot.setAttributeNS(null, "xmlns:xlink", xmlNS);
> ...
> Element symbol_offpage=doc.createElementNS(svgNS,"symbol");
> symbol_offpage.setAttributeNS(null, "id", "symbol_offpage");
> ...
> Element use=doc.createElementNS(svgNS, "use");
> use.setAttributeNS(xmlNS,"href","#symbol_offpage");
> use.setAttributeNS(xmlNS,"xlink:href","#symbol_offpage");
>
>
> but then i get this error message, in a popup:
>
> org.apache.batik.bridge.BridgeException: null:-1
> The URI '' specified on the element <use> is invalid
>
> for information, i use batik 1.1.1 and JSVGCanvas. Thx.
>
>
> ------------------------------------------------------------------------
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Testez le nouveau Yahoo! Mail <http://fr.mail.yahoo.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org