Commit 1a9f2ec9 authored by Wendell Piez's avatar Wendell Piez

Another adjustment to empty element handling

parent 8f570ad0
......@@ -17,15 +17,13 @@
<!-- Strip these, retaining their contents. -->
<xsl:template match="position | iCs | lang | vertAlign | noProof">
<!-- Strip these, retaining their contents.
Note some at least may also be suppressed in the extraction,
so "gloves and mittens" -->
<xsl:template match="position | iCs | lang | vertAlign | noProof | kern">
<!-- Matching b, i and u if they have only whitespace text content
this includes <b> </b> and <b><tab/></b> -->
<xsl:template match="caps | strike">
......@@ -43,7 +41,7 @@
<!-- Inline elements that are truly empty can be stripped. -->
<xsl:template match="p//*[empty(.//* except (.//tab|.//span|.//b|.//i|.//u)) and not(matches(.,'\S'))]">
<xsl:template match="p//*[empty(.//* except (.//tab|.//span|.//b|.//i|.//u)) and not(string(.))]">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment