[Clipart] invalid SVG in OpenClipArtLibrary collection

Gerald Ganson Gerald.Ganson at rdc.ab.ca
Mon Oct 16 08:10:39 PDT 2006


 
Even my most recent files seem to have this in them....

xml:space="preserve"

These files got cenverted to SVG in Adobe, but then saved as Plain SVG
in Inkscape.

It seems adobe does put this in.

Below is the most simple adobe file I could make. I drew one rectangle
and the saved it as SVG turning OFF all the options in the save dialog.
The "preserve" is  still there. In fact I could not find a combination
of save options that did not include this in the file.

Apperently this tag has to do with how white space is handled. I found
this in a mail list archive.

Following is a link to an article which talks about this.

I'm not sure Adobe users can create files without this tag, unless we
manually remove it.

http://www.samspublishing.com/articles/article.asp?p=22154&seqNum=3&rl=1


<<SNIP>>

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG
Version: 6.00 Build 51448)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
	<!ENTITY ns_svg "http://www.w3.org/2000/svg">
	<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>
<svg  version="1.1" id="Layer_1" xmlns="&ns_svg;"
xmlns:xlink="&ns_xlink;" width="180.311" height="189.506"
	 viewBox="0 0 180.311 189.506" overflow="visible"
enable-background="new 0 0 180.311 189.506" xml:space="preserve">
<rect x="0.5" y="0.5" fill="#FFFFFF" stroke="#000000" width="179.311"
height="188.506"/>
</svg>

<</SNIP>>



Gerald G.

-----Original Message-----
From: clipart-bounces at lists.freedesktop.org
[mailto:clipart-bounces at lists.freedesktop.org] On Behalf Of Jon Phillips
Sent: Saturday, October 14, 2006 5:59 PM
To: Stephen Silver
Cc: Ruud Steltenpool
Subject: Re: [Clipart] invalid SVG in OpenClipArtLibrary collection

On Thu, 2006-10-12 at 17:53 +0100, Stephen Silver wrote:
> Ruud Steltenpool wrote:
> 
> > One of the errors that showed up often was space="preserve",
> 
> I filed a bug report about this over a year ago:
> 
>   https://bugs.freedesktop.org/show_bug.cgi?id=4061
> 
> > Based on the source code of those files it was most likely Adobe 
> > Illustrator that introduced the invalid code and i've filed a bug.
> 
> The problem I saw was caused by a buggy script that OCAL used, as 
> files that were OK in earlier releases had the problem in later 
> releases.

Do we still have these files in our collection? There is a tool I
believe that Jonadab created. Jonadab, could you enlighten us please :)

J

--
Jon Phillips

San Francisco, CA
USA PH 510.499.0894
jon at rejon.org
http://www.rejon.org

MSN, AIM, Yahoo Chat: kidproto
Jabber Chat: rejon at gristle.org
IRC: rejon at irc.freenode.net

_______________________________________________
clipart mailing list
clipart at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/clipart



More information about the clipart mailing list