浏览代码

In XHTML output, readded the XML declaration
and changed the media type from text/html to application/xhtml+xml.
Done here to test possibles mirrors issues.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4171 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Manuel Canales Esparcia 21 年之前
父节点
当前提交
3879ebc975
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 3 0
      Makefile
  2. 2 2
      stylesheets/lfs-chunked2.xsl

+ 3 - 0
Makefile

@@ -26,6 +26,9 @@ lfs:
 
 	sh goTidy $(BASEDIR)/
 
+	for filename in `find $(BASEDIR) -name "*.html"`; do \
+	  sed -i -e "s@text/html@application/xhtml+xml@g" $$filename; \
+	done;
 #
 # This is the old "pdf" target. The old "print" target below has been
 # renamed to "pdf" and will be used. This commented out previous_pdf

+ 2 - 2
stylesheets/lfs-chunked2.xsl

@@ -23,8 +23,8 @@
     <!-- Dropping some unwanted style attributes -->
   <xsl:param name="ulink.target" select="''"></xsl:param>
   <xsl:param name="css.decoration" select="0"></xsl:param>
-  
+
     <!-- No XML declaration -->
-  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
+<!--  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> -->
 
 </xsl:stylesheet>