- Properly copy XHTML fragments by adding namespace

- Allow disabling last modified date by setting the date variable to
  empty text
- Only disable last modified date in old news, press, events pages since
  it makes sense for recent entries

Approved by:	doceng (implicit)
This commit is contained in:
Gabor Kovesdan 2012-08-15 21:50:43 +00:00
parent 06db13014c
commit f77daa56e0
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/sgml2xml/; revision=39383
24 changed files with 84 additions and 45 deletions

View file

@ -9,6 +9,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf1="http://my.netscape.com/rdf/simple/0.9/"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="rdf rdf1" version="1.0">
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
@ -49,7 +50,7 @@
<xsl:value-of select="title"/><br/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="p"/><br/>
<xsl:apply-templates select="p" mode="copy.html"/><br/>
</xsl:otherwise>
</xsl:choose>
</a></li>

View file

@ -86,7 +86,7 @@
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:copy-of select="p"/>
<xsl:apply-templates select="p" mode="copy.html"/>
</p>
</li>