Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000499graphvizNeatopublic2001-10-18 15:582011-04-28 04:02
ReporterArthur Barstow 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000499: SVG does not include Namespace declaration for xlink elements
Description



When dotneato creates a SVG file, the file may include
xlink attributes such as:



 <a xlink:href="http://purl.org/dc/elements/1.1/title"> [^]



but the SVG does not contain a namespace declaration for
xlink. The missing declaration may cause an XML parser to
throw an error.



In the 1.7.7 release, dotneato/common/svggen.c has some
code to insert xlink's namespace declaration in the SVG
but that code is only done if TESTFAILED is defined.



One possible solution is to add the xlink namespace declaration
to the root SVG element. That is:



 <svg width="442pt" height="126pt" >



would become:



 <svg xmlns:xlink="http://www.w3.org/1999/xlink" [^]
      width="442pt" height="126pt" >



Art Barstow
[email protected]
---
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
In dotneato/common/svggen.c::begin_page(), change:
<CD>
 fprintf(Outfile,'<svg width='%dpx' height='%dpx'',
</CD>
to:
<CD>
 fprintf(Outfile,'<svg xmlns:xlink='http://www.w3.org/1999/xlink' [^]
                 width='%dpx' height='%dpx'',
</CD>
FORMER-ID54
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     1.7.7
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker