mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
news: Remove handling of random HTML tags
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.
This commit is contained in:
parent
f3a8e80c13
commit
f6332457b3
@ -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"><</xsl:text>
|
||||
<xsl:value-of select="name()"/>
|
||||
<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
<!-- <code> HTML tag -->
|
||||
<xsl:template match="code">
|
||||
<xsl:text disable-output-escaping="yes"><code></xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text disable-output-escaping="yes"></</xsl:text>
|
||||
<xsl:value-of select="name()"/>
|
||||
<xsl:text disable-output-escaping="yes">></xsl:text>
|
||||
<xsl:text disable-output-escaping="yes"></code></xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user