- Streamlined test for p/paragraph nodes in "definition-item" template.
- Fixed otherwise in "definition-item" template; it now processes _all_
  sub-nodes, not just elements.
1 parent d792138 commit 43b0203a42d85f00eb2329dcbd78957444544dc1
nstanger authored on 13 Oct 2004
Showing 1 changed file
View
4
format-master.xml
modes for this, but it killed embedded <itemize>s,
because there isn't an <itemize> template with the
appropriate mode (nor is there a need for one). Grr.
-->
<xsl:when test="(name(child::node()[2]/child::node()[1]) = 'p') or (name(child::node()[2]/child::node()[1]) = 'paragraph')">
<xsl:when test="child::node()[2]/child::node()[1][self::p] or child::node()[2]/child::node()[1][self::paragraph]">
<P CLASS="definition1">
<xsl:apply-templates select="child::node()[1]"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="child::node()[2]/child::node()[1]/node()"/>
<xsl:otherwise>
<P CLASS="definition1">
<xsl:apply-templates select="child::node()[1]"/>
</P>
<xsl:apply-templates select="child::node()[2]/*">
<xsl:apply-templates select="child::node()[2]/node()">
<xsl:with-param name="HTMLStyle">definition2</xsl:with-param>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>