diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-25 04:51:56 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-25 04:51:56 +0000 |
commit | 760927191338d0cfdda7edd369dd12d35941cd07 (patch) | |
tree | 1b9856a4db7169ed7197029f58149598e6acfe5c /common/entities/entities.xsl | |
parent | 0c434ea59ffa766526ed7f8bb2185ed5063bf3f8 (diff) | |
download | fedora-doc-utils-760927191338d0cfdda7edd369dd12d35941cd07.tar.gz fedora-doc-utils-760927191338d0cfdda7edd369dd12d35941cd07.tar.xz fedora-doc-utils-760927191338d0cfdda7edd369dd12d35941cd07.zip |
Added support for SYSTEM entities.
Diffstat (limited to 'common/entities/entities.xsl')
-rw-r--r-- | common/entities/entities.xsl | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/common/entities/entities.xsl b/common/entities/entities.xsl index 952f9e4..9275a25 100644 --- a/common/entities/entities.xsl +++ b/common/entities/entities.xsl @@ -13,11 +13,30 @@ <xsl:template match="entity"> <xsl:variable name="name" select="name"/> - <xsl:variable name="desc" select="comment"/> + <xsl:variable name="desc"> + <xsl:choose> + <xsl:when test="comment = ''"> + WHO AM I? WHAT AM I? I CAN'T REMEMBER! + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="comment"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:variable name="extra"> + <xsl:choose> + <xsl:when test="@kind = 'system'"> + <xsl:text> SYSTEM</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text></xsl:text> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> <xsl:variable name="body"> <xsl:apply-templates/> </xsl:variable> - <xsl:value-of select="concat( '<!ENTITY ', @name, ' "', normalize-space($body), '" > <!-- ', normalize-space($desc), '-->')" disable-output-escaping="yes"/> + <xsl:value-of select="concat( '<!ENTITY ', @name, ' ', normalize-space($extra), ' "', normalize-space($body), '" > <!-- ', normalize-space($desc), ' -->')" disable-output-escaping="yes"/> </xsl:template> <xsl:template match="use"> |