diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-25 20:29:12 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-02-25 20:29:12 +0000 |
commit | 2b7aded20eea8f5d4dfe9e22f3d77132a0b66bf4 (patch) | |
tree | 7b548bf7f362813c2e1f0f1d87a4de66f0828934 /common/entities/entities.xsl | |
parent | 760927191338d0cfdda7edd369dd12d35941cd07 (diff) | |
download | fedora-doc-utils-2b7aded20eea8f5d4dfe9e22f3d77132a0b66bf4.tar.gz fedora-doc-utils-2b7aded20eea8f5d4dfe9e22f3d77132a0b66bf4.tar.xz fedora-doc-utils-2b7aded20eea8f5d4dfe9e22f3d77132a0b66bf4.zip |
Added <ulink url="foo"/> construct to avoid all that hideous escaping
and ampersanding when entering a URL. Note that we only support the
EMPTY content model of the <ulink/> element because it renders
consistently with current practice.
Diffstat (limited to 'common/entities/entities.xsl')
-rw-r--r-- | common/entities/entities.xsl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/entities/entities.xsl b/common/entities/entities.xsl index 9275a25..b28dbac 100644 --- a/common/entities/entities.xsl +++ b/common/entities/entities.xsl @@ -36,7 +36,7 @@ <xsl:variable name="body"> <xsl:apply-templates/> </xsl:variable> - <xsl:value-of select="concat( '<!ENTITY ', @name, ' ', normalize-space($extra), ' "', 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"> @@ -60,4 +60,11 @@ <xsl:text> </xsl:text> </xsl:comment> </xsl:template> + + <xsl:template match="ulink"> + <xsl:text disable-output-escaping="yes"><ulink url='</xsl:text> + <xsl:value-of select="normalize-space(@url)" disable-output-escaping="yes"/> + <xsl:text disable-output-escaping="yes">'/></xsl:text> + </xsl:template> + </xsl:stylesheet> |