mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-24 22:57:03 +00:00
Minor whitespace and div fixes for XSLT
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1667 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
39be09ee14
commit
8708c0617a
@ -56,10 +56,12 @@
|
|||||||
<xsl:template match="title" />
|
<xsl:template match="title" />
|
||||||
|
|
||||||
<xsl:template match="namespace">
|
<xsl:template match="namespace">
|
||||||
|
<div class="namespace">
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
<xsl:if test="count(directive)=0">
|
<xsl:if test="count(directive)=0">
|
||||||
<p>No configuration directives defined for this namespace.</p>
|
<p>No configuration directives defined for this namespace.</p>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="namespace/name">
|
<xsl:template match="namespace/name">
|
||||||
<h2 id="{../@id}"><xsl:value-of select="." /></h2>
|
<h2 id="{../@id}"><xsl:value-of select="." /></h2>
|
||||||
@ -72,11 +74,7 @@
|
|||||||
|
|
||||||
<xsl:template match="directive">
|
<xsl:template match="directive">
|
||||||
<div>
|
<div>
|
||||||
<xsl:attribute name="class">
|
<xsl:attribute name="class">directive<xsl:if test="deprecated"> deprecated</xsl:if>
|
||||||
directive
|
|
||||||
<xsl:if test="deprecated">
|
|
||||||
deprecated
|
|
||||||
</xsl:if>
|
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user