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

what is wrong with this svg file

Expand Messages
  • narendra sisodiya
    Message 1 of 5 , Jun 7, 2009
    • 0 Attachment
      <?xml version="1.0" standalone="no"?>
      <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
      "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
      <svg id="svgroot" height="480" width="640">
      <path stroke="black" fill="none" id="svg_1" d="M113,125 l10,-4 l2,0 l14,0" />
      <path opacity="0.5" stroke="black" fill="none" id="svg_2" d="M167,133
      l-20,18 l0,0 l-22,20 l-1,1 l-1,1 l-2,0 l-1,1 l-1,1" />
      <path stroke="black" fill="none" id="svg_2" d="M119,175" />
      <path stroke="black" fill="none" id="svg_3" d="M171,207 l2,-1 l42,-17
      l8,-4 l2,0 l11,-1" />
      <path stroke="black" fill="none" id="svg_4" d="M247,179" />
      </svg>

      in firefox , it give me this error

      This XML file does not appear to have any style information
      associated with it. The document tree is shown below.

      --
      ┌─────────────────────────┐
      │ Narendra Sisodiya ( नरेन्द्र सिसोदिया )
      │ R&D Engineer
      │ Web : http://narendra.techfandu.org
      │ Twitter : http://tinyurl.com/dz7e4a
      └─────────────────────────┘


      [Non-text portions of this message have been removed]
    • narendra sisodiya
      On Mon, Jun 8, 2009 at 12:12 PM, narendra sisodiya Thanks , Problem solved
      Message 2 of 5 , Jun 7, 2009
      • 0 Attachment
        On Mon, Jun 8, 2009 at 12:12 PM, narendra sisodiya <
        narendra.sisodiya@...> wrote:

        > <?xml version="1.0" standalone="no"?>
        > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
        >
        > <svg id="svgroot" height="480" width="640">
        >
        > just figured out -- I need to modify this line to
        <svg id="svgroot" xmlns="http://www.w3.org/2000/svg" height="480"
        width="640">
        Thanks , Problem solved

        --
        ┌─────────────────────────┐
        │ Narendra Sisodiya ( नरेन्द्र सिसोदिया )
        │ R&D Engineer
        │ Web : http://narendra.techfandu.org
        │ Twitter : http://tinyurl.com/dz7e4a
        └─────────────────────────┘


        [Non-text portions of this message have been removed]
      • Frank Bruder
        Also, you ve got a duplicate id svg_2 . I don t know if any user agent would show an error message because of that, but it is incorrect. Regards Frank
        Message 3 of 5 , Jun 8, 2009
        • 0 Attachment
          Also, you've got a duplicate id "svg_2". I don't know if any user agent would show an error message because of that, but it is incorrect.


          Regards
          Frank

          --- In svg-developers@yahoogroups.com, narendra sisodiya <narendra.sisodiya@...> wrote:
          >
          > On Mon, Jun 8, 2009 at 12:12 PM, narendra sisodiya <
          > narendra.sisodiya@...> wrote:
          >
          > > <?xml version="1.0" standalone="no"?>
          > > <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
          > >
          > > <svg id="svgroot" height="480" width="640">
          > >
          > > just figured out -- I need to modify this line to
          > <svg id="svgroot" xmlns="http://www.w3.org/2000/svg" height="480"
          > width="640">
          > Thanks , Problem solved
          >
          > --
          > â"Œâ"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"
          > â"‚ Narendra Sisodiya ( नरेन्द्र सिसोदिया )
          > â"‚ R&D Engineer
          > â"‚ Web : http://narendra.techfandu.org
          > â"‚ Twitter : http://tinyurl.com/dz7e4a
          > â""â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"€â"˜
          >
          >
          > [Non-text portions of this message have been removed]
          >
        • ddailey
          Replace your line below with and it should work in Firefox. FF, like
          Message 4 of 5 , Jun 8, 2009
          • 0 Attachment
            Replace your <svg ...> line below with
            <svg id="svgroot" height="480" width="640" xmlns="http://www.w3.org/2000/svg">

            and it should work in Firefox.

            FF, like Safari and Chrome, is more fussy. Opera and IE/ASV don't seem to require the namespace attribute.

            JWatt's Authoring Guidelines at http://jwatt.org/svg/authoring/ gives some idea of other things one has to do to be cross-browser compliant.

            hope this helps
            David

            ----- Original Message -----
            From: narendra sisodiya
            To: svg-developers@yahoogroups.com
            Sent: Monday, June 08, 2009 2:42 AM
            Subject: [svg-developers] what is wrong with this svg file





            <?xml version="1.0" standalone="no"?>
            <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
            "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
            <svg id="svgroot" height="480" width="640">
            <path stroke="black" fill="none" id="svg_1" d="M113,125 l10,-4 l2,0 l14,0" />
            <path opacity="0.5" stroke="black" fill="none" id="svg_2" d="M167,133
            l-20,18 l0,0 l-22,20 l-1,1 l-1,1 l-2,0 l-1,1 l-1,1" />
            <path stroke="black" fill="none" id="svg_2" d="M119,175" />
            <path stroke="black" fill="none" id="svg_3" d="M171,207 l2,-1 l42,-17
            l8,-4 l2,0 l11,-1" />
            <path stroke="black" fill="none" id="svg_4" d="M247,179" />
            </svg>

            in firefox , it give me this error

            This XML file does not appear to have any style information
            associated with it. The document tree is shown below.

            --
            ┌─────────────────────────┐
            │ Narendra Sisodiya ( नरेन्द्र सिसोदिया )
            │ R&D Engineer
            │ Web : http://narendra.techfandu.org
            │ Twitter : http://tinyurl.com/dz7e4a
            └─────────────────────────┘

            [Non-text portions of this message have been removed]





            [Non-text portions of this message have been removed]
          • narendra sisodiya
            Thanks problem solved by add xmlns @duplicating id : Id assignment in my svgfile is automated, I have to check it. Thanks for pointing this mistake. [Non-text
            Message 5 of 5 , Jun 8, 2009
            • 0 Attachment
              Thanks problem solved by add xmlns
              @duplicating id : Id assignment in my svgfile is automated, I have to check
              it. Thanks for pointing this mistake.


              [Non-text portions of this message have been removed]
            Your message has been successfully submitted and would be delivered to recipients shortly.