[GH-ISSUE #303] SVG Syntax for bo.svg and fj.svg causes problem when parsing it with Apache Batik #189

Closed
opened 2026-03-03 14:35:17 +03:00 by kerem · 8 comments
Owner

Originally created by @cnsgithub on GitHub (Sep 21, 2016).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/303

Hi, i don't know if i should post it here or at batik, but since it happens only with 2 files, maybe something with the svg syntax of those two files is wrong (or non-standard)

  1. bo.svg -> The attribute "xlink:href" of the element is required
  2. fj.svg -> "#c"
    specified on the element - may be a problem of 'id'

As for 1. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
The 2. has some strange tag: clip-path="url(#c)"

Kind regards

Originally created by @cnsgithub on GitHub (Sep 21, 2016). Original GitHub issue: https://github.com/lipis/flag-icons/issues/303 Hi, i don't know if i should post it here or at batik, but since it happens only with 2 files, maybe something with the svg syntax of those two files is wrong (or non-standard) 1. bo.svg -> The attribute "xlink:href" of the element <use> is required 2. fj.svg -> "#c" specified on the element <path> - may be a problem of 'id' As for 1. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use The 2. has some strange tag: clip-path="url(#c)" Kind regards
kerem closed this issue 2026-03-03 14:35:17 +03:00
Author
Owner

@lipis commented on GitHub (Sep 21, 2016):

Can you check if they are better now?!

<!-- gh-comment-id:248706939 --> @lipis commented on GitHub (Sep 21, 2016): Can you check if they are better now?!
Author
Owner

@cnsgithub commented on GitHub (Sep 22, 2016):

The Bolivia flag still has the error (same xlink) but the Fiji flag passed.

<!-- gh-comment-id:248818543 --> @cnsgithub commented on GitHub (Sep 22, 2016): The Bolivia flag still has the error (same xlink) but the Fiji flag passed.
Author
Owner

@lipis commented on GitHub (Sep 22, 2016):

@cnsgithub that is very strange.. because there are no references to xlink or href or anything in those files:

<!-- gh-comment-id:249019163 --> @lipis commented on GitHub (Sep 22, 2016): @cnsgithub that is very strange.. because there are no references to xlink or href or anything in those files: - https://github.com/lipis/flag-icon-css/blob/master/flags/1x1/bo.svg - https://github.com/lipis/flag-icon-css/blob/master/flags/4x3/bo.svg
Author
Owner

@cnsgithub commented on GitHub (Sep 23, 2016):

probably <use tag requires xlink (see the mozilla link above) ?

<!-- gh-comment-id:249110232 --> @cnsgithub commented on GitHub (Sep 23, 2016): probably <use tag requires xlink (see the mozilla link above) ?
Author
Owner

@lipis commented on GitHub (Sep 27, 2016):

Well not sure what to do.. if you find a solution to the "problem" let us know.. until then it looks good from my side..

<!-- gh-comment-id:249740128 --> @lipis commented on GitHub (Sep 27, 2016): Well not sure what to do.. if you find a solution to the _"problem"_ let us know.. until then it looks good from my side..
Author
Owner

@cnsgithub commented on GitHub (Sep 27, 2016):

What i did to fix it: Removed those two tags completely. Didn't see a difference on the flag itself.

<!-- gh-comment-id:249771573 --> @cnsgithub commented on GitHub (Sep 27, 2016): What i did to fix it: Removed those two <use> tags completely. Didn't see a difference on the flag itself.
Author
Owner

@hulufei commented on GitHub (Oct 28, 2016):

@lipis Can you publish 2.6.0 to npm please, seems the issue solved, but npm package haven't update, thx

<!-- gh-comment-id:256819192 --> @hulufei commented on GitHub (Oct 28, 2016): @lipis Can you publish 2.6.0 to npm please, seems the issue solved, but npm package haven't update, thx
Author
Owner

@lipis commented on GitHub (Oct 31, 2016):

@hulufei Published 2.8.0 :)

<!-- gh-comment-id:257446978 --> @lipis commented on GitHub (Oct 31, 2016): @hulufei Published 2.8.0 :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#189
No description provided.