Menu

#475 tei:ref/@xml:id not converted

closed-fixed
5
2012-12-03
2012-11-26
No

== Summary ==

tei:ref/@xml:id not converted

== Versions ==

OS: Ubuntu 12.10

$ dpkg-query -W tei-p5-xsl2
tei-p5-xsl2 6.18

== How to Reproduce ==

1. Download the attached zip file.

2. Unzip. Cd into new directory.

3. Execute:

$ make

This will produce a test1.html file from test1.xml.

The test1.xml file from which the html file is produced 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.

== Expected Results ==

Working links.

== Actual Results ==

The reference in the 2nd paragraph does not work. It appears to be due to a bug which prevents tei:ref/@xml:id from being converted to an appropriate HTML hyperlink target.

== Observations ==

teitodocx and teitoodt show the same problem: the reference to TARGET2 is left dangling.

Discussion

  • Louis-Dominique Dubeau

    files illustrating the bug

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-03
    • status: open --> closed-fixed
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2012-12-03

    I have set the code in common2/linking.xsl to add an ID to the linking element if there is an xml:id on the ptr or ref it came from