Test ticket #2
CodeSharing: a simple API for disseminating our TEI encoding
Brought to you by:
martindholmes
This is a test ticket I'm going to reply to, then close. This has some XML <tag>s in it, and a block of code:
<xsl:template match="rng:text" mode="simple">
<xsl:choose>
<xsl:when test="parent::tei:content/parent::tei:dataSpec">
<xsl:text> CDATA</xsl:text>
</xsl:when>
<xsl:when test="parent::tei:content/parent::tei:macroSpec[@type='dt']">
<xsl:text> CDATA</xsl:text>
</xsl:when>
<xsl:when test="parent::tei:content/parent::tei:macroSpec[@type='pe']">
<xsl:text>#PCDATA</xsl:text>
</xsl:when>
<xsl:when test="parent::tei:content and not(following-sibling::rng:*) and not (preceding-sibling::rng:*)">
<xsl:text>(#PCDATA)</xsl:text>
</xsl:when>
<xsl:when test="parent::tei:content and not(following-sibling::rng:*) and not (preceding-sibling::rng:*)">
<xsl:text>(#PCDATA)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>#PCDATA</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Responding and closing the ticket.