Various fixes to XSLT and decisions on markup
Posted by mholmes on 21 Jun 2012 in Activity log
Changes and decisions are being tracked both in SVN and in Flow, so I'm not going to go into as much detail as I'd like to on the blog, but basically today we:
- Implemented many XSLT changes, some relating to the handling of punctuation following quotation marks. This now applies to the
<quote>
and<title level="a">
elements, but will in future also apply to<soCalled>
,<mentioned>
, and possibly others. - Made a decision to use the U+2019 exclusively for apostrophes. This means creating a way to type it, which I've done using Code Templates in Oxygen and documented on Flow; a transformation to add it into all the documents, which I'll do tomorrow; and a Schematron rule to enforce it, which I'll add tomorrow (along with adding Schematron to the head of every file).
- Fixed some TOC rendering issues and normalized some document structures for complex documents that need TOCs.
- Found a bug in (I think) eXist, or maybe Saxon, whereby the
@xml:id
of the finalchild::text
of a<group>
is apparently inaccessible to XSLT. I don't know how or why this is the case, but it's making TOC rendering problematic. One solution would be to update the version of Saxon in the web application to see if that fixes it; if not, try the same algorithm in XQuery to see if eXist is really having an issue.