Stylesheets default handling of tei:milestone not very useful
merged today
Pull request created: https://github.com/EpiDoc/Stylesheets/pull/18 Note: same as described before, except for the spaces flanking the pipe '|' when not inword that was preserved in the final fix.
I'm not ready. I think we should postpone it.
That's seems coherent to me. Here's how I would translate this solution in the XSL files: teimilestone.xsl display a pipe when @unit is 'fragment' or 'block' -- no spaces around if @n exists, displays as exposant <xsl:template match="t:milestone[@unit='block' or @unit='fragment']"> <!-- adds pipe for block or fragment--> <xsl:text>|</xsl:text> <xsl:if test="@n"> <sup><xsl:value-of select="@n"/></sup> </xsl:if> </xsl:template> instead of: <xsl:template match="t:milestone[@unit='block' or @unit='fragment']">...
That's seems coherent to me. Here's how I would translate this solution in the XSL files: teimilestone.xsl display a pipe when @unit is 'fragment' or 'block' -- no spaces around if @n exists, displays as exposant ~~~ <xsl:template match="t:milestone<span>[klzzwxh:0002='block' or klzzwxh:0003='fragment']</span>"> <xsl:text>|</xsl:text> <xsl:if test="@n"> <xsl:value-of select="@n"></xsl:value-of> </xsl:if> </xsl:template> ~~~ instead of: <xsl:template match="t:milestone[@unit='block'...
That's seems coherent to me. Here's how I would translate this solution in the XSL files: teimilestone.xsl display a pipe when @unit is 'fragment' or 'block' -- no spaces around if @n exists, displays as exposant ~~~ <xsl:template match="t:milestone<span>[klzzwxh:0002='block' or klzzwxh:0003='fragment']</span>"> <xsl:text>|</xsl:text> <xsl:if test="@n"> <xsl:value-of select="@n"></xsl:value-of> </xsl:if> </xsl:template> instead of: <xsl:template match="t:milestone<span>[klzzwxh:0022='block'...
That's seems coherent to me. Here's how I would translate this solution in the XSL files: teimilestone.xsl display a pipe when @unit is 'fragment' or 'block' -- no spaces around if @n exists, displays as exposant ~~~ <xsl:template match="t:milestone<span>[klzzwxh:0052='block' or klzzwxh:0053='fragment']</span>"> <xsl:text>|</xsl:text> <xsl:if test="@n"> <xsl:value-of select="@n"></xsl:value-of> </xsl:if> </xsl:template> instead of: <xsl:template match="t:milestone<span>[klzzwxh:0001='block'...