> > After following the good advice from this thread, I copied the Logic
> > shapes and sheet from the cvs tree into my ~.dia and started dia
> > recieving these messages:
> >
> > *** WARNING **: could not find svg namespace
> >
> > ** WARNING **: could not load shape file
> > /home/kan4/.dia/shapes/Logic/<any shape here>
> On Fri, 27 Apr 2001, Lars Clausen wrote:
> It would be easier if you showed us the start of the sheet and shape file.
> I'm guessing that your naming is wrong.
I think it is important to note that the sheets I am trying to use are
from the cvs tree. Here are the details:
This is the shape file:
<?xml version="1.0"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
<name>Logic - And</name>
<icon>and.png</icon>
<connections>
<point x="6" y="4"/>
<point x="6" y="9"/>
<point x="5" y="9"/>
<point x="7" y="9"/>
</connections>
<aspectratio type="fixed"/>
<svg:svg>
<svg:path style="fill: #ffffff" d="M 6 4 C 8,4 8,7 8,9 C 7,9 5,9 4,9 C 4,7 4,4
6,4z"/>
<svg:path style="stroke-width: 0.1; stroke: #000000" d="M 6 4 C 8,4 8,7 8,9 C 7,9
5,9 4,9 C 4,7 4,4 6,4"/>
</svg:svg>
</shape>
this is the pertinent section of the sheet:
<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*- xml -*- -->
<sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns">
<name>Logic</name>
<name xml:lang="fr">Logique</name>
<name xml:lang="nl">Logica</name>
<description>Boolean Logic</description>
<description xml:lang="fr">Portes logiques</description>
<description xml:lang="nl">Booleaanse logica</description>
<contents>
<object name="Logic - And">
<description>An And gate</description>
<description xml:lang="fr">Une porte ET</description>
<description xml:lang="nl">Een AND poort</description>
</object>
</contents>
</sheet>
-- Karim Nassar
> > * Some .shapes seems to have different xmlns attributes in the shape tag
> > Examples:
> >
> > from Logic/and.shape: xmlns:svg="http://www.w3.org/2000/svg"
> >
> > from Circuit/ground.shape:
> >
>xmlns:svg="http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"
> >
> > putting the existing xmlns into the Logic files made no difference.
>
> Dia actually ignores this field, it's just there if somebody needs to find
> the syntax or run it through a checker.
>
>