summaryrefslogtreecommitdiffstats
path: root/common/entities/entities.xsl
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-25 20:29:12 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-02-25 20:29:12 +0000
commit2b7aded20eea8f5d4dfe9e22f3d77132a0b66bf4 (patch)
tree7b548bf7f362813c2e1f0f1d87a4de66f0828934 /common/entities/entities.xsl
parent760927191338d0cfdda7edd369dd12d35941cd07 (diff)
downloadfedora-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.xsl9
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( '&lt;!ENTITY ', @name, ' ', normalize-space($extra), ' &quot;', normalize-space($body), '&quot; &gt; &lt;!-- ', normalize-space($desc), ' --&gt;')" disable-output-escaping="yes"/>
+ <xsl:value-of select="concat( '&lt;!ENTITY ', @name, ' ', normalize-space($extra), ' &quot;', normalize-space($body), '&quot; &gt; &lt;!-- ', normalize-space($desc), ' --&gt;')" 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">&lt;ulink url=&apos;</xsl:text>
+ <xsl:value-of select="normalize-space(@url)" disable-output-escaping="yes"/>
+ <xsl:text disable-output-escaping="yes">&apos;/&gt;</xsl:text>
+ </xsl:template>
+
</xsl:stylesheet>