Forum How do I...?

Overwriting a named string

hsivonen
Under what circumstances are named strings overwritable? Here’s a case that does not work for me:

Markup:
<table class="abstract" id="abstract">
...
</table>
<table class="abstract" id="abstract-fi" xml:lang="fi">
...
</table>
Style:
.abstract {
page-break-before: always;
page-break-after: always;
page: abstract;
}

#abstract {
string-set: university "HELSINKI UNIVERSITY OF TECHNOLOGY", abstract "ABSTRACT OF MASTER’S THESIS";
}

#abstract-fi {
string-set: university "TEKNILLINEN KORKEAKOULU", abstract "DIPLOMITYÖN TIIVISTELMÄ";
}
@page abstract {
@top-right {
content: string(abstract, last);
}
@top-left {
content: string(university, last);
}
}


I've tried first and last with string(), but I always get the document-first value.

Have I found a bug or is there a mistake that I have made?

Test case files:
http://hsivonen.iki.fi/test/string-set/
"Twice" has both rules described above. "Once" has the English string-set commented out.
mikeday
That looks like a bug specific to tables, because if I change the abstract element to a div or something else it works fine. Thanks for reporting the issue! :)