The SVG output from rrdtool (1.2.10) is great except that the top-level svg element is declared something like:
<svg width="1286" height="421" x="0" y="0" viewBox="-0.5 -0.5 1285.5 420.5" preserveAspectRatio="xMidYMid" font-family="Courier" stroke-linecap="round" stroke-linejoin="round"> and to follow the spec (excerpt provided below), it should include xmlns="http://www.w3.org/2000/svg" otherwise it doesn't render correctly in some viewers (notably the most recent Firefox 1.5 update which became a lot more strict when parsing svg) so it looks like: <svg width="1286" height="421" x="0" y="0" viewBox="-0.5 -0.5 1285.5 420.5" preserveAspectRatio="xMidYMid" font-fami\ ly="Courier" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> the xmlns:xlink="http://www.w3.org/1999/xlink" is optional, but probably a fine thing to have in there in case regions of an rrdtool graph are in future links to other documents. from http://www.w3.org/TR/SVG11/struct.html In all cases, for compliance with the "Namespaces in XML" Recommendation [XML-NS], an SVG namespace declaration must be provided so that all SVG elements are identified as belonging to the SVG namespace. The following are possible ways to provide a namespace declaration. An xmlns attribute without a namespace prefix could be specified on an 'svg' element, which means that SVG is the default namespace for all elements within the scope of the element with the xmlns attribute: <svg xmlns="http://www.w3.org/2000/svg"...> <rect .../> </svg> Thanks, Adi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
