Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] SodiPodi V 0.25 available

Expand Messages
  • Tobias Reif
    Hi, ... ror example: [inserted err#s] ###################################################################### C: tmp vdc kersti.svg FPI is listed in catalog ...
    Message 1 of 6 , Sep 12, 2002
    • 0 Attachment
      Hi,

      David Nimmons wrote:

      > Just saw that a new version of SodiPodi is available. Can be found here:
      >
      > http://sodipodi.sourceforge.net/
      >
      > While there, I noticed a gallery of images drawn with SodiPodi, but, most
      > of them would not display under ASV 3.
      > Anybody know why?


      ror example:

      [inserted err#s]
      ######################################################################
      C:\tmp>vdc kersti.svg
      FPI is listed in catalog ... and the DTD is available locally.
      Xerces:
      1.
      Error at file C:\tmp\kersti.svg.159765, line 7, char 21
      Message: Attribute 'sodipodi:docbase' is not declared for element 'svg'
      2.
      Error at file C:\tmp\kersti.svg.159765, line 8, char 21
      Message: Attribute 'sodipodi:docname' is not declared for element 'svg'
      3.
      Error at file C:\tmp\kersti.svg.159765, line 9, char 21
      Message: Attribute 'sodipodi:version' is not declared for element 'svg'
      4.
      Error at file C:\tmp\kersti.svg.159765, line 10, char 38
      Message: Attribute 'xmlns' has a value, 'http://www.w3.org/2000.svg',
      that does not match its #FIXED value, 'http://www.w3.org/2000/svg'
      5.
      Error at file C:\tmp\kersti.svg.159765, line 11, char 19
      Message: Attribute 'xmlns:sodipodi' is not declared for element 'svg'
      6.
      Error at file C:\tmp\kersti.svg.159765, line 12, char 16
      Message: Attribute 'xmlns:xlink' is not declared for element 'svg'
      7.
      Error at file C:\tmp\kersti.svg.159765, line 17, char 22
      Message: Unknown element 'sodipodi:namedview'
      8.
      Error at file C:\tmp\kersti.svg.159765, line 18, char 9
      Message: Attribute 'id' is not declared for element 'sodipodi:namedview'
      9.
      Error at file C:\tmp\kersti.svg.159765, line 296, char 7
      Message: Element 'sodipodi:namedview' is not valid for content model:
      '(desc|t
      itle|metadata|defs|path|text|rect|circle|ellipse|line|polyline|polygon|use|image
      |svg|g|view|switch|a|altGlyphDef|script|style|symbol|marker|clipPath|mask|linear
      Gradient|radialGradient|pattern|filter|cursor|font|animate|set|animateMotion|ani
      mateColor|animateTransform|color-profile|font-face)*'
      10.
      Fatal Error at file C:\tmp\kersti.svg.159765, line 297, char 1
      Message: Expected comment or processing instruction

      Errors occurred, no output available
      ######################################################################

      The last error message (10) refers to the following stuff after the root
      element, which shouldn't be there:
      #####
      <br>
      <b>Warning</b>: 1 is not a valid File-Handle resource in
      <b>/home/groups/s/so/sodipodi/htdocs/showsvg.php3</b> on line <b>16</b><br>
      #####

      1-3, 5, and 7-9 is due to namespaces vs. DTDs, but I'd still prefer SVG
      output that can be validated against a DTD (SVG1.0 only has a normative
      DTD, no XSD etc), and is pure SVG, without additional namespaces; At
      least as an option onSave.

      6 is the bug in the DTD which can be fixed in the internal subset, see
      http://www.pinkjuice.com/txt/basictemplate.svg

      Error message 4 refers to a typo in the URI.

      Below is libxml:xmllint's output:

      Tobi

      ######################################################################
      C:\tmp>xmllint kersti.svg --noout --valid --catalogs
      kersti.svg:14: validity error: No declaration for attribute docbase on
      element s
      vg
      height="210mm">
      ^
      kersti.svg:14: validity error: No declaration for attribute docname on
      element s
      vg
      height="210mm">
      ^
      kersti.svg:14: validity error: No declaration for attribute version on
      element s
      vg
      height="210mm">
      ^
      kersti.svg:18: validity error: No declaration for attribute id on
      element namedv
      iew
      id="base" />
      ^
      kersti.svg:18: validity error: No declaration for element namedview
      id="base" />
      ^
      kersti.svg:296: validity error: Element svg content doesn't follow the DTD
      Expecting (desc | title | metadata | defs | path | text | rect | circle
      | ellips
      e | line | polyline | polygon | use | image | svg | g | view | switch |
      a | altG
      lyphDef | script | style | symbol | marker | clipPath | mask |
      linearGradient |
      radialGradient | pattern | filter | cursor | font | animate | set |
      animateMotio
      n | animateColor | animateTransform | color-profile | font-face)*, got
      (defs sod
      ipodi:namedview g )
      </svg>
      ^
      kersti.svg:296: validity error: Element svg namespace name for default
      namespace
      does not match the DTD
      </svg>
      ^
      kersti.svg:297: error: Extra content at the end of the document
      <br>
      ^
      ######################################################################

      --
      http://www.pinkjuice.com/
    • Rick Bullotta
      The default namespace declaration in the svg element is freaking ASV out... Sodipodi puts in: xmlns=http://www.w3.org/2000.svg ...and it should be...
      Message 2 of 6 , Sep 12, 2002
      • 0 Attachment
        The default namespace declaration in the svg element is freaking ASV out...

        Sodipodi puts in:

        xmlns=http://www.w3.org/2000.svg

        ...and it should be...

        xmlns=http://www.w3.org/2000/svg

        Note the / versus the . in the URI.
        Rick Bullotta
        CTO
        Lighthammer Software (www.lighthammer.com)


        -----Original Message-----
        From: David Nimmons [mailto:David_Nimmons@...]
        Sent: Thursday, September 12, 2002 1:16 PM
        To: svg-developers@yahoogroups.com
        Subject: [svg-developers] SodiPodi V 0.25 available




        Just saw that a new version of SodiPodi is available. Can be found here:

        http://sodipodi.sourceforge.net/

        While there, I noticed a gallery of images drawn with SodiPodi, but, most
        of them would not display under ASV 3.
        Anybody know why?


        [Non-text portions of this message have been removed]
      • Rick Bullotta
        There is also some garbage HTML being attached to the end of the SVG stream by what appears to be a bug in the PHP scripts that generate the SVG... Rick
        Message 3 of 6 , Sep 12, 2002
        • 0 Attachment
          There is also some garbage HTML being attached to the end of the SVG stream
          by what appears to be a bug in the PHP scripts that generate the SVG...

          Rick Bullotta
          CTO
          Lighthammer Software (www.lighthammer.com)


          -----Original Message-----
          From: David Nimmons [mailto:David_Nimmons@...]
          Sent: Thursday, September 12, 2002 1:16 PM
          To: svg-developers@yahoogroups.com
          Subject: [svg-developers] SodiPodi V 0.25 available



          Just saw that a new version of SodiPodi is available. Can be found here:

          http://sodipodi.sourceforge.net/

          While there, I noticed a gallery of images drawn with SodiPodi, but, most
          of them would not display under ASV 3.
          Anybody know why?


          [Non-text portions of this message have been removed]
        • Tobias Reif
          Hi, ... Error #6 ist still there; can be fixed by inserting this [ ] into the doctype.
          Message 4 of 6 , Sep 12, 2002
          • 0 Attachment
            Hi,

            Lauris Kaplinski wrote:


            > Thank you for pointing these out.
            > Webpage should be fixed by now.


            Error #6 ist still there; can be fixed by inserting this
            [
            <!ATTLIST svg
            xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
            ]
            into the doctype.


            > (4) is fixed in CVS
            > Pure SVG option is planned for sodipodi.


            Awesome! 2 hours response time, and some fixes made. That's OS/FS culture :)

            Tobi


            --
            http://www.pinkjuice.com/
          • Tobias Reif
            Hi, ... It s a bug in the SVG1.0 DTD, which will go away with 1.1+. Only the above is needed, and only when xlink: is used. No additional attlist decls are
            Message 5 of 6 , Sep 20, 2002
            • 0 Attachment
              Hi,

              Lauris Kaplinski wrote:


              >>Error #6 ist still there; can be fixed by inserting this
              >>[
              >> <!ATTLIST svg
              >> xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
              >>]
              >>into the doctype.
              >>
              >
              > Now I added this, but does it really help? Shouldn't we include
              > attlist entries for <image> <linearGradient>...
              > But this makes header bigger than I'd like...


              It's a bug in the SVG1.0 DTD, which will go away with 1.1+. Only the
              above is needed, and only when xlink: is used.

              No additional attlist decls are needed to work around this bug; it's
              this one line that's missing in the DTD.

              ctrl-f for

              xmlns:xlink CDATA #FIXED 'http://www.w3.org/1999/xlink'
              xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"

              in

              http://www.pinkjuice.com/txt/expandedsvg-1.0.dtd


              yields many matches.


              With the workaround:
              For non-validating processors, the xlink prefix is mapped to the XLink
              namespace URI, on the root element, and is used to qualify all instances
              of xlink attributes (it doesn't see all the fixed decls in he DTD).
              For validating processors, the declaration on the root element is valid,
              due to the workaround.

              What do you use to validate the SVGs generated by SodiPodi?

              I use Xerces-C's DOMCount via

              http://www.pinkjuice.com/ruby/vdc/vdc

              , and libxml's xmllint.

              Tobi


              --
              http://www.pinkjuice.com/
            Your message has been successfully submitted and would be delivered to recipients shortly.