CSS Cross Referencing

Hi All

I have the following code in my CSS:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cross_reference[ID*="ALDF_"] {
-xpp-xref-refer: attr(ID) foot this none;
}
cross_reference[ID*="ALDF_"]::before {
content: -xpp-macro(ri, '%refpg4');
}
footnote {
display: block;
-xpp-xref-mark: attr(id);
}
footnote::before {
content: -xpp-macro(i1, '16pt') -xpp-macro(sup) -xpp-macro(ri, '%refnum') -xpp-macro(reset) "\2009";
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

And this works fine - however if I change %refpg4 to %refnum each cross reference reports the "current" footnote %refnum rather than the one the the id reference is pointing to.

Just to reassure you the footnote has an attribute id= but the cross ref has ID=.

Any suggestions very welcome!

Chris