XML SPY 在转XHTML 应该如何生成声明。。。
XML SPY 在转HTML 应该如何生成声明。。。比如
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> @@@@ </title>
<meta name= "Description " content= "@@@@ " />
<meta name= "Keywords " content= "@@@ " />
<link rel= "stylesheet " rev= "stylesheet " href= "@@@@.css " type= "text/css " media= "all " title= "001 " />
<script type= "text/javascript " src= "js/@@@@.js " > </script>
<link type= "image/ico " rel= "shortcut icon " href= "images/@@@@@.ico " />
</head> 。。。
这个 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml "> 应该如何生成呀!
[解决办法]
转XHTML的语句:
<?xml version= "1.0 " encoding= "GB2312 "?>
<xsl:stylesheet version= "1.0 " xmlns:xsl= "http://www.w3.org/1999/XSL/Transform ">
<xsl:output method= "xml " media-type= "text/html " encoding= "gb2312 " indent= "yes " doctype-system= "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " doctype-public= "-//W3C//DTD XHTML 1.0 Transitional//EN " />
主要是xsl:output,前面两句是让你知道位置。
这里没直接用xhtml值,是考虑IE的兼容问题。