Forum How do I...?

CSS content property and SVG text

esef
Hi,

I'd like to use SVG for running content.
So I need to put for example the page number into SVG.

Seems like prince cant handle that.
In the following example, the page number will be put into the div, but not into the SVG tspan.

.page-count-target {
    content: "PAGE " counter(page);
}

<div class="page-count-target"></div>
...
<svg...>
<text x="15" y="55" class="label ">
    Page
    <tspan class="page-count-target"></tspan>
  </text>
...