[Bug 29516] [ser31] Definitions spanning paragraphs

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29516

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Solving this is tricky if only because of the complexity of the DTD design and
the fact that few of us write DTDs every day. The fact that there is quite a
bit of stylesheet machinery around termref/xtermref/termdef means we need to be
cautious.

I'm inclined to the following rather clunky solution:

(a) add an attribute <termdef open="true"> to indicate that the termdef
continues beyond the end of the actual termdef element;

(b) add the markup <p role="closetermdef"/> to signal the end of the most
recent open termdef.

The only stylesheet changes are then, I think

(i) Change or override the match="termdef" template (xmlspec line 2145),
currently

  <xsl:template match="termdef">
    <xsl:text>[</xsl:text>
    <a name="{@id}" id="{@id}" title="{@term}">
      <xsl:text>Definition</xsl:text>
    </a>
    <xsl:text>: </xsl:text>
    <xsl:apply-templates/>
    <xsl:text>]</xsl:text>
  </xsl:template>

to omit the closing "]" if open="true"

(ii) Add a template rule

<xsl:template match="p[@role='closetermdef']">
  <p>]</p>
</xsl:template>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 3 March 2016 12:20:57 UTC