#479 tei:ref/@xml:id not converted when @target is file

closed-fixed
5
2012-12-06
2012-12-06
No

== Versions ==

OS: Ubuntu 12.10

I'm using a checkout of the svn tree:

ldd@karma:~/src/tei/trunk$ svn update
Updating '.':
At revision 11205.

== How to Reproduce ==

1. Download the attached zip file.

2. Unzip. Cd into new directory.

3. Adapt the Makefile so that APPHOME points to your svn tree.

4. Execute:

$ make

This will produce test{1,2}.html file from test{1,2}.xml, and test{1,2}-fmt.html which are the same as the corresponding html but with xmllint --format applied to help diagnosis.

The test1.xml contains the following relevant features. Its first paragraph contains a reference to TARGET1, which is a later paragraph. Its second paragraph contains a reference to TARGET2 which is a <ref> element which in turns point to TARGET1.

The only difference between test1.xml and test2.xml is that the target of the reference which has an xml:id is a file instead of an internal target.

$ diff test1.xml test2.xml
52c52
< <p>And a <ref xml:id="TARGET2" target="#TARGET1">target which is also a reference</ref>.</p>
---
> <p>And a <ref xml:id="TARGET2" target="/blah/blah">target which is also a reference</ref>.</p>

== Expected Results ==

Working links in the HTML produced from test2.xml. (Just like in the HTML produced from test1.xml).

== Actual Results ==

The links in the HTML produced from test1.xml work fine.

However, link with an xml:id in test2.xml is not converted correctly. The only difference from what is produced from test1.xml should be that its target is a file, but it also loses its @id:

$ diff test1-fmt.html test2-fmt.html
55c55
< <p>And a <a id="TARGET2" href="#TARGET1" class="link_ref">target which is also a reference</a>.</p>
---
> <p>And a <a class="link_ref" href="/blah/blah">target which is also a reference</a>.</p>
63c63
< on 2012-12-06T11:11:05Z--></address>
---
> on 2012-12-06T11:11:09Z--></address>

== Observations ==

This a special case of bug ID 3590105.

Discussion

  • files illustrating the bug

     
    Attachments
  • You are right, of course. Fixed.

     
    • status: open --> closed-fixed