Re: Weird message when using custom shapes
- From: Valek Filippov <frob gnome org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Weird message when using custom shapes
- Date: Fri, 29 Jul 2011 11:27:08 -0400
Hej Chris,
Looks like you need to add 'xmlns:xlink="http://www.w3.org/1999/xlink"
' to your
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
--
Cheers,
Valek
On Fri, Jul 29, 2011 at 11:21 AM, Chris Nelson <cnelson nycap rr com> wrote:
I've created some custom shapes that use a background image. They
work fine but when I place them in my diagram, I get warning messages
on my console:
/home/chrisn/.dia/shapes/sixnet/5ES.shape:15: namespace error :
Namespace prefix xlink for href on image is not defined:image x="0"
y="0" width="2.72852" height="10.2135" xlink:href="./5ES-image.png"
The shape file is pretty simple:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w
3.org/2000/svg">
<name>sixnet - 5ES</name>
<icon>5ES.png</icon>
<connections>
<point x="1.5" y="0"/>
<point x="1.5" y="2.9"/>
<point x="1.5" y="4.3"/>
<point x="1.5" y="5.7"/>
<point x="1.5" y="7.1"/>
<point x="1.5" y="8.5"/>
</connections>
<aspectratio type="fixed"/>
<svg:svg>
<svg:image x="0" y="0" width="2.72852" height="10.2135"
xlink:href="./5ES-image.png"/>
<svg:text style="fill: #ff0000; font-size: 0.8; text-anchor:start;
font-family: sans; font-style: italic; font-weight: normal" x=".8"
y="1.75" textLength="3.955">5ES</svg:text>
</svg:svg>
</shape>
What am I doing wrong?
Chris
--
A: Top-posting.
Q: What is the most annoying thing in e-mail?
_______________________________________________
dia-list mailing list
dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]