I have to following code in html5 and i want to embed it in my jsf 2 application but the tag simply doesn´t work:
<svg><use xlink:href="img/svgdefs.svg#icon-test"></use></svg>
Anybody an idea?
Make sure you have this xmlns:xlink="http://www.w3.org/1999/xlink"
in your html tag.
Example:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
xmlns:xlink="http://www.w3.org/1999/xlink"
lang="pt_BR">