[PATCH 1/2] news: Remove handling of random HTML tags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that the source file is validated against a schema that
only allows the <code> HTML tag to be used, we can rely on
that assumption to simplify our XSLT stylesheet.
---
 docs/news-html.xsl | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/docs/news-html.xsl b/docs/news-html.xsl
index 2961106..dcbab86 100644
--- a/docs/news-html.xsl
+++ b/docs/news-html.xsl
@@ -82,15 +82,11 @@
     <xsl:apply-templates/>
   </xsl:template>
 
-  <!-- Misc HTML tags, add more as they are needed -->
-  <xsl:template match="code|i|tt">
-    <xsl:text disable-output-escaping="yes">&lt;</xsl:text>
-    <xsl:value-of select="name()"/>
-    <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
+  <!-- <code> HTML tag -->
+  <xsl:template match="code">
+    <xsl:text disable-output-escaping="yes">&lt;code&gt;</xsl:text>
     <xsl:apply-templates/>
-    <xsl:text disable-output-escaping="yes">&lt;/</xsl:text>
-    <xsl:value-of select="name()"/>
-    <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
+    <xsl:text disable-output-escaping="yes">&lt;/code&gt;</xsl:text>
   </xsl:template>
 
 </xsl:stylesheet>
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux