== Summary ==
The stylesheets do not handle multiple values in @target.
== Versions ==
$ dpkg-query -W tei-p5-xsl2
== How to Reproduce ==
1. Download the attached zip file.
2. Unzip. Cd into directory.
This will produce a test.html file and a test.ltx file.
== Expected Results ==
The test.xml file contains <ptr target="#P1 #P2"/>. The test.html file should have a corresponding structure to link to P1 and P2. It should probably be a pair of <a href=...>...</a> elements.
Similarly, the test.ltx file should contain a corresponding structure to link to P1 and P2. It should probably be a pair of \hyperlink commands.
== Actual Results ==
<ptr target="#P1 #P2"/> is converted in test.html as:
<a href="#P1" class="link_ptr" itemprop="ptr">here</a>
... and in test.ltx as the rather humorous:
== Observations ==
The P5 documentation gives at least one example of multiple target values and also explicitly mentions the possibility of multiple values in the explanation of @target. (This is the example given with the <ptr> element: <ptr target="#p143 #p144"/>.)
The test.ltx file also lacks appropriate \hypertarget commands to mark where \hyperlink commands should point to, hence none of the links work.
Upon cursory inspection of the stylesheets, I believe the problem is present in the common2 files, and thus common to most, if not all, conversions.
I've tried teitoodt, just to see, and find the problem is present there too. The problematic link has a target of "P1 #P2".