<svg xmlns="http://www.w3.org/2000/svg">

<pattern id="pat1" />
<pattern id="pat2" />

<rect x="10" y="10" width="100" height="100" stroke="url(#pat1)" fill="url(#pat2)" />

</svg>