TEIC / Stylesheets

TEI XSL Stylesheets
228 stars 124 forks source link

process `@xml:id` wherever the output of a <list> is generated #617

Closed sydb closed 9 months ago

sydb commented 11 months ago

I am hoping this fixes #616 … Relatively minor update to html/html_core.xsl: Just added a call to process the @xml:id attribute to each of the possible output elements generated for <list>. Just chose one when two elements were generated (despite my comment on the ticket : -). My main surprise is that the tests all seemed to pass on my system. I would have expected diff errors when a test input file had a <list xml:id="DUCK"> whose output used to be <ul> but is now <ul id="DUCK">. Harumph.

tuurma commented 11 months ago

What do you mean "just chose one when two elements were generated"? Like, nested elements, e.g. p/dl or p/table in which case it seems the only sensible option.

sydb commented 11 months ago

Yes, @tuurma, that is what I think I meant.