Annotum/Annotum — Issue #27: Invalid ref id in xml output
Author: carlthewebmaster
Created: 2011-12-12 03:52:08+00:00
State: open
Labels: verified, xml-import

The output XML is `(1)` but the references are ``.

XML validator complains that the rids don't match the ref ids.

Possible fix:

See line 1699 in tinymce.php (`anno_xml_to_html_replace_references` function) and note how `#ref` is being inserted.

Then see around line 75 in annoreferences.js:

````
//TODO proper reference (text)
id = $(checkbox).attr('id').replace('reference-checkbox-', '');
text = $('label[for="reference-checkbox-' + id + '"]').html();
id = parseInt(id) + 1;
xml += '' + id + '';
````

Possibly insert string `ref` in last line above as the `rid` attribute of the `xref` element.

> attribute can be text not number?