| |
---|
| | <!-- |
---|
| | Check whether there are actual paragraphs or things that should be treated like paragraphs inside the item (there are rather a lot of these!). If so, let them worry about inserting the <p> tags. |
---|
| | --> |
---|
| | <xsl:when test="count(paragraph|para|p|question|answer|code-block|itemised-list|itemize|unordered-list|bulleted-list|bullet-list|bullet-points|UL|ul|enumerated-list|enumerate|ordered-list|numbered-list|question-list|OL|ol|definition-list|description-list|DL|dl) != 0"> |
---|
| | <li> |
---|
| | <xsl:attribute name="value" select="@value" /> |
---|
| | <li value="{@value}"> |
---|
| | <xsl:apply-templates /> |
---|
| | </li> |
---|
| | </xsl:when> |
---|
| | <!-- |
---|
| | Otherwise, insert <p> tags surrounding the item content |
---|
| | so that the item spacing looks OK. |
---|
| | --> |
---|
| | <xsl:otherwise> |
---|
| | <li> |
---|
| | <xsl:attribute name="value" select="@value" /> |
---|
| | <li value="{@value}"> |
---|
| | <p><xsl:apply-templates /></p> |
---|
| | </li> |
---|
| | </xsl:otherwise> |
---|
| | </xsl:choose> |
---|
| |
---|
|