Inkscape.org
Beyond the Basics File Save -- Errors -- w3c Validator
  1. #1
    FridgeDefend FridgeDefend @FridgeDefend

    See the SVG I made here, it contains links (<a> tags):

    https://www.arprv.com/#fishbone

    QUESTION:  I saved the file as an 'Inkscape SVG' type. Is there a way I can save this file so that it is smaller, the links still work, my server can use it without me modifying it, and there are no errors when checking with w3c HTML checker?

    I made a graphic and had to do the following to get my server GoDaddy to display the SVG file and to be able to control the scaling of the graphic:

    Remove this tag to get Godaddy to display the SVG:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    Control scaling remove these parameters:

       width="320"
       height="200"

    All was good until I use the w3c HTML checker:

    https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.arprv.com%2F 

    Note all the errors that say:  

    Attribute xmlns:dc not allowed here.

    Attribute xmlns:cc not allowed here.

    Warnings:

    Attribute with the local name xmlns:dc is not serializable as XML 1.0.

    I really am tired of trial and error, as I am getting more errors than success.

    Thanks in advance, Paul 

  2. #2
    FridgeDefend FridgeDefend @FridgeDefend

    I need to include:

    OS = W-10;  Inkscape 1.0.2 (e86c870879, 2021-01-15, custom)

    downloaded from Microsoft.

    Also, I am doing a direct include into my HTML file with PHP like this:

    <div  style="clear:both; max-width: 650px;">
               

              <?php include("image-arp/SVG/dometic-norcold-problem-solution-diagram(350x263).svg"); ?>
    </div>

    Hope someone can help, Inkscape is awesome, I have been doing graphical communication as a mechanical engineer for a long time. Inkscape is the way to go for internet communications of complex ideas! 

  3. #3
    FridgeDefend FridgeDefend @FridgeDefend

    Looks like I surpassed the skill level of this forum?

    If anyone has the skill to answer this question, we are eager to learn!

  4. #4
    Tyler Durden Tyler Durden @TylerDurden
    *

    Above my paygrade, but I will note that the non-Inkscape specific and non-rdf elements validate ok.

    I ran just the svg as a file in the validators and they returned:

    •  Line 15, Column 1: This validator does not validate Inkscape extensions properly. Inkscape-specific errors may go unnoticed.
    • Line 352, Column 13: This validator does not validate RDF. RDF subtrees go unchecked.

    Congratulations

    The uploaded document "fishbone.svg" was successfully checked as SVG 1.1 + URL + HTML + MathML 3.0. This means that the resource in question identified itself as "SVG 1.1 + URL + HTML + MathML 3.0" and that we successfully performed a formal validation of it. The parser implementations we used for this check are based on Compound XML and libxml2 (XML).

     

    So the files themselves may be ok. Maybe a web-jockey can chime in.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics File Save -- Errors -- w3c Validator