I'm testing the latest alpha build on OS X (with -i xml, -i html and without both) with an <html> document.
Suppose the following element:
and the following snippet which should contain the page number of <p>:
The result is:
Also, the link isn't clickable in the generated PDF. If i change the id and href to "fuenf" then the result is correct.
As far as I know there are almost no restrictions on the characters which can be used in id attributes (according to the HTML 5 specification, and probably also in XML). The problem is that I can't control the id easily because it is auto-generated.
Suppose the following element:
<p id="fünf">lorem ipsum ...</p>
and the following snippet which should contain the page number of <p>:
<p> See page <a href="#fünf" style="content: target-counter(attr(href), page);"></a> for lorem description.</p>
The result is:
See page 0 for lorem description.
Also, the link isn't clickable in the generated PDF. If i change the id and href to "fuenf" then the result is correct.
As far as I know there are almost no restrictions on the characters which can be used in id attributes (according to the HTML 5 specification, and probably also in XML). The problem is that I can't control the id easily because it is auto-generated.