- Fix ($user-html-header$) to support <script src="foo">. While the rendered
result of <script> end tag by the DSSSL stylesheet was </script\n> to avoid unnecessary spaces after the tag, most of the www browsers and HTML processors cannot recognize it as the end of <script>. To workaround this, ($user-html-headers$) now outputs the start and the end tag independently in each single line. - Add %html-header-script% to control if <script> is included in <head>. - Add html.header.script.google knob for SGML and XML documents in non-DocBook DTD. %html.header.script.google; and $html.header.script.google. - Add WWWFREEBSDORG make(1) knob to control the <script> inclusion. Note that <script> is disabled temporarily. Discussed with: gjb and core Tested by: gjb
This commit is contained in:
parent
6d66f15a84
commit
d4e4d91864
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=38352
4 changed files with 19 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<!ENTITY title "The FreeBSD Project">
|
||||
]>
|
||||
|
||||
<!-- $FreeBSD: www/en/index.xsl,v 1.175 2012/01/10 04:38:05 gjb Exp $ -->
|
||||
<!-- $FreeBSD: www/en/index.xsl,v 1.176 2012/01/12 20:42:22 hrs Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
<xsl:param name="news.project.xml" select="'none'"/>
|
||||
<xsl:param name="events.xml-master" select="'none'"/>
|
||||
<xsl:param name="events.xml" select="'none'"/>
|
||||
<xsl:param name="html.header.script.google" select="'IGNORE'"/>
|
||||
|
||||
<xsl:output type="html" encoding="&xml.encoding;"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
|
||||
|
|
@ -44,7 +45,9 @@
|
|||
<link rel="stylesheet" media="screen" href="&base;/layout/css/fixed.css?20060509" type="text/css" title="Normal Text" />
|
||||
<link rel="alternate stylesheet" media="screen" href="&base;/layout/css/fixed_large.css" type="text/css" title="Large Text" />
|
||||
<script type="text/javascript" src="&base;/layout/js/styleswitcher.js"></script>
|
||||
<script type="text/javascript" src="&base;/layout/js/google.js"></script>
|
||||
<xsl:if test="$html.header.script.google != 'IGNORE'">
|
||||
<script type="text/javascript" src="&base;/layout/js/google.js"></script>
|
||||
</xsl:if>
|
||||
<link rel="alternate" type="application/rss+xml"
|
||||
title="FreeBSD Project News" href="&base;/news/rss.xml" />
|
||||
<link rel="alternate" type="application/rss+xml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue