Use <xhtml:base> to fix resolution of relative document URIs.

This commit is contained in:
Hiroki Sato 2012-12-24 19:14:15 +00:00
parent c38d19d921
commit 23c714aa51
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40473
2 changed files with 3 additions and 0 deletions
en_US.ISO8859-1/htdocs
share/xml

View file

@ -9,6 +9,8 @@
<title>&title;</title> <title>&title;</title>
<cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword> <cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>
<base href="/" />
</head> </head>
<body class="navinclude.about"> <body class="navinclude.about">

View file

@ -37,6 +37,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title><xsl:value-of select="$title" /></title> <title><xsl:value-of select="$title" /></title>
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:base" />
<meta http-equiv="Content-Type" content="text/html; charset=&xml.encoding;" /> <meta http-equiv="Content-Type" content="text/html; charset=&xml.encoding;" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" /> <meta name="MSSmartTagsPreventParsing" content="TRUE" />
<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:meta"/> <xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:meta"/>