有关xml显示问题请教

李睿_Lee 2006-01-04 08:10:27
昨天晚上在试用礼拜八留言本(用xml和xsl技术控制显示的)。发现一个问题:
我用地址:
http://192.168.123.103/shuma/gu
图片就会没法正确显示,所有通过xsl格式化的超链接也不正常,查看其属性发现其地址不正确,少了一个gu,而如果我用下面的地址打开
http://192.168.123.103/shuma/gu/
一切正常。
这是什么原因呢?
请各位指点。
...全文
256 17 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
李睿_Lee 2006-01-17
  • 打赏
  • 举报
回复
搞定了!
谢谢九维兄(应该是男的吧?呵呵)
我走入迷途了,怎么没想到这么简单的方法呢?
结帖!
jouwei 2006-01-16
  • 打赏
  • 举报
回复
在XSL文件的
<title><xsl:value-of select="/GuestBook/Config/GuestbookName"/></title>
后加一行:
<base href="http://192.168.123.103/shuma/gu/" />
李睿_Lee 2006-01-15
  • 打赏
  • 举报
回复
没办法,只能再顶!!
李睿_Lee 2006-01-14
  • 打赏
  • 举报
回复
没人给个好点的解释或解决办法???
jouwei 2006-01-11
  • 打赏
  • 举报
回复
cds27(冰封) 说的情况我也有遇到,不知道可有解决的办法?是不是IIS设置的问题?
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
但是我输入http://192.168.123.103/shuma/gu回车后,地址栏里会自动变成
http://192.168.123.103/shuma/gu/
有时能正常显示,有时不正常。
cds27 2006-01-04
  • 打赏
  • 举报
回复
http://192.168.123.103/shuma/gu
和http://192.168.123.103/shuma/gu/是不一样的
它们本来就是不同的地址。所以也不存在你上面说的什么原因,因为它们不一样。

前者路径是http://192.168.123.103/shuma/,后者是前者下面的gu/

举个例子,你看:
http://www.google.com/intl/zh-CN/mobile

http://www.google.com/intl/zh-CN/mobile/

前者会提示找不到网页。
yangliangwang 2006-01-04
  • 打赏
  • 举报
回复
style内容应该用<![CDATA[ xxx]>包住
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
<xsl:template match="Content" >
<xsl:for-each select="Message" >
<table width="664" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="31"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_1_1.jpg</xsl:attribute><xsl:attribute name="width">31</xsl:attribute><xsl:attribute name="height">33</xsl:attribute></xsl:element></td>
<td width="614" class="ctbg"> </td>
<td width="19"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_1_3.jpg</xsl:attribute><xsl:attribute name="width">19</xsl:attribute><xsl:attribute name="height">33</xsl:attribute></xsl:element></td>
</tr>
</table>
<table width="664" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3" class="cclbg"></td>
<td width="655"><table width="655" height="20" border="0" cellpadding="8" cellspacing="1" bgcolor="#D68A29">
<tr>
<td height="20" colspan="2" class="ccbg"><table width="636" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="con"><xsl:if test=".[IsAdmin='1']">(版主)</xsl:if>(ID:<xsl:value-of select="ID"/>)<xsl:value-of select="UserName"/> 留言于 <xsl:value-of select="PostTime"/></td>
<td width="20" align="right"><xsl:if test=".[Email='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/email1.gif</xsl:attribute><xsl:attribute name="width">24</xsl:attribute><xsl:attribute name="height">11</xsl:attribute><xsl:attribute name="title">没有填写Email</xsl:attribute></xsl:element></xsl:if> <xsl:if test=".[Email!='']"><xsl:element name="a"><xsl:attribute name="href">mailto:<xsl:value-of select="Email"/></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="Email"/></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/email.gif</xsl:attribute><xsl:attribute name="width">24</xsl:attribute><xsl:attribute name="height">11</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></xsl:element></xsl:if></td>
<td width="20" align="right"><xsl:if test=".[HomePage='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/home1.gif</xsl:attribute><xsl:attribute name="width">14</xsl:attribute><xsl:attribute name="height">14</xsl:attribute><xsl:attribute name="title">没有填写主页地址</xsl:attribute></xsl:element></xsl:if><xsl:if test=".[HomePage!='']"> <xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="HomePage"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="HomePage"/></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/home.gif</xsl:attribute><xsl:attribute name="width">14</xsl:attribute><xsl:attribute name="height">14</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></xsl:element></xsl:if></td>
<td width="20" align="right"><xsl:if test=".[QQ='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/qq1.gif</xsl:attribute><xsl:attribute name="width">16</xsl:attribute><xsl:attribute name="height">16</xsl:attribute><xsl:attribute name="border">0</xsl:attribute><xsl:attribute name="title">没有填写QQ</xsl:attribute></xsl:element></xsl:if><xsl:if test=".[QQ!='']"><xsl:element name="a"><xsl:attribute name="href">http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<xsl:value-of select="QQ"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="QQ"/></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/qq.gif</xsl:attribute><xsl:attribute name="width">16</xsl:attribute><xsl:attribute name="height">16</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></xsl:element></xsl:if></td>
<td width="20" align="right"><xsl:if test=".[ICQ='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/icq1.gif</xsl:attribute><xsl:attribute name="width">18</xsl:attribute><xsl:attribute name="height">18</xsl:attribute><xsl:attribute name="title">没有填写ICQ</xsl:attribute></xsl:element></xsl:if><xsl:if test=".[ICQ!='']"><xsl:element name="a"><xsl:attribute name="href">http://wwp.icq.com/<xsl:value-of select="ICQ"/>#pager</xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="ICQ"/></xsl:attribute><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/icq.gif</xsl:attribute><xsl:attribute name="width">18</xsl:attribute><xsl:attribute name="height">18</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></xsl:element></xsl:if></td>
<td width="20" align="right"><xsl:if test=".[MSN='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/msn1.gif</xsl:attribute><xsl:attribute name="width">20</xsl:attribute><xsl:attribute name="height">20</xsl:attribute><xsl:attribute name="title">没有填写MSN</xsl:attribute></xsl:element></xsl:if><xsl:if test=".[MSN!='']"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/msn.gif</xsl:attribute><xsl:attribute name="width">20</xsl:attribute><xsl:attribute name="height">20</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="MSN"/></xsl:attribute></xsl:element></xsl:if></td>
<td width="20" align="right"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/ip.gif</xsl:attribute><xsl:attribute name="width">16</xsl:attribute><xsl:attribute name="height">15</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="IPStr"/><xsl:value-of select="IPFrom"/></xsl:attribute></xsl:element> </td>
<td width="8" align="right"> </td>
</tr>
</table></td>
</tr>
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#D68A29">
<form action="index.asp" method="get" name="page">
<tr>
<td class="ccbg"><span class="con">总计留言 <xsl:value-of select="/GuestBook/Navigate/RecordCount"/> 条,当前第<xsl:value-of select="/GuestBook/Navigate/BegPage"/>/<xsl:value-of select="/GuestBook/Navigate/PageCount"/>页 <xsl:if test="/GuestBook/Navigate/PrevPage">
<xsl:element name="a">
<xsl:attribute name="class">con</xsl:attribute>
<xsl:attribute name="href">index.asp?Begpage=<xsl:value-of select="/GuestBook/Navigate/PrevPage"/></xsl:attribute>
上一页
</xsl:element>
</xsl:if>
<xsl:if test=" /GuestBook/Navigate/NextPage">
<xsl:element name="a">
<xsl:attribute name="class">con</xsl:attribute>
<xsl:attribute name="href">index.asp?Begpage=<xsl:value-of select="/GuestBook/Navigate/NextPage"/></xsl:attribute>
下一页</xsl:element>
</xsl:if>
转到:</span>
<INPUT class="myform" onkeyup="this.value=this.value.replace(/\D/g,'')" maxLength="10" size="4" value="1" name="begpage"
onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
<xsl:element name="input">
<xsl:attribute name="type">image</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/submit.jpg</xsl:attribute>
<xsl:attribute name="align">middle</xsl:attribute>
<xsl:attribute name="width">70</xsl:attribute>
<xsl:attribute name="height">29</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="Onclick">JavaScript:document.page.submit();</xsl:attribute>
</xsl:element>
</td>
</tr>
</form>
</table> <br/></td>
<td width="55" class="crbg"></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="79"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/b_1_1.jpg</xsl:attribute><xsl:attribute name="width">79</xsl:attribute><xsl:attribute name="height">76</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></td>
<td align="center" class="ccbg"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="155" height="30" align="left" class="con">版权所有:<xsl:value-of select="/GuestBook/Config/CopyRight"/></td>
<td width="240" height="30" align="center" class="con">模板来源:<a href="http://my.jz918.com" target="_blank">秋枫的个人世界</a></td>
<td width="216" height="30" align="right" class="con">版本:<a href="http://my.jz918.com/gbdownload/index.asp" target="_blank" class="con"><xsl:value-of select="/GuestBook/Config/Version"/></a></td>
</tr>
<tr align="center">
<td height="20" colspan="3" class="con">页面执行时间:<xsl:value-of select="/GuestBook/RunTime"/>毫秒</td>
</tr>
</table></td>
<td width="74"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/b_1_2.jpg</xsl:attribute><xsl:attribute name="width">74</xsl:attribute><xsl:attribute name="height">76</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/b_2.jpg</xsl:attribute><xsl:attribute name="width">776</xsl:attribute><xsl:attribute name="height">51</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></td>
</tr>
</table>
</body>
</html>
</xsl:template>
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
<body>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_1.jpg</xsl:attribute><xsl:attribute name="width">776</xsl:attribute><xsl:attribute name="height">69</xsl:attribute></xsl:element></td>
</tr>
</table><table width="776" height="91" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="bottom" class="titlebg" height="91"><span class="gbtitle"><xsl:value-of select="/GuestBook/Config/GuestbookName"/></span></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="77"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_3_1.jpg</xsl:attribute><xsl:attribute name="width">77</xsl:attribute><xsl:attribute name="height">39</xsl:attribute></xsl:element></td>
<td width="625" class="top3bg"><table width="625" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="ann"> 版主:<xsl:element name="span">
<xsl:attribute name="title">网名: <xsl:value-of select="/GuestBook/Config/AdminName"/>
性别 :<xsl:value-of select="/GuestBook/Config/AdminSex"/>
年龄 :<xsl:value-of select="/GuestBook/Config/AdminAge"/>
来自 :<xsl:value-of select="/GuestBook/Config/AdminComeFrom"/>
QQ :<xsl:value-of select="/GuestBook/Config/AdminQQ"/>
MSN :<xsl:value-of select="/GuestBook/Config/AdminMSN"/>
ICQ :<xsl:value-of select="/GuestBook/Config/AdminICQ"/>
Email:<xsl:value-of select="/GuestBook/Config/AdminEmail"/>
主页 :<xsl:value-of select="/GuestBook/Config/HomePageURL"/>
</xsl:attribute>
<xsl:value-of select="/GuestBook/Config/AdminName"/></xsl:element></span></td>
<td><span class="ann">公告:</span><a
href="disnote.asp"
target="_blank" class="ann"><xsl:value-of select="/GuestBook/Config/NoticeTitle"/></a></td>
<td width="63" align="center"><xsl:element name="a">
<xsl:attribute name="class">ann</xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="/GuestBook/Config/HomePageURL"/></xsl:attribute>网站首页</xsl:element></td>
</tr>
</table></td>
<td width="74"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_3_3.jpg</xsl:attribute><xsl:attribute name="width">74</xsl:attribute><xsl:attribute name="height">39</xsl:attribute></xsl:element></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_4.jpg</xsl:attribute><xsl:attribute name="width">776</xsl:attribute><xsl:attribute name="height">41</xsl:attribute></xsl:element></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="57"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_5_1.jpg</xsl:attribute><xsl:attribute name="width">57</xsl:attribute><xsl:attribute name="height">41</xsl:attribute></xsl:element></td>
<td width="664" class="top5bg"><table width="664" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="110"><a href="index.asp"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_1.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
<td width="110"><a href="#" onclick="location.reload()"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_2.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
<td width="110"><a
href="search.asp"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_3.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
<td width="110"><a href="admin_login.asp"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_4.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
<td width="110"><a
href="add.asp"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_5.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
<td width="110"><a
href="help.asp"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bt_6.jpg</xsl:attribute><xsl:attribute name="width">107</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></a></td>
</tr>
</table></td>
<td width="55"><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_5_2.jpg</xsl:attribute><xsl:attribute name="width">55</xsl:attribute><xsl:attribute name="height">41</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></td>
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><xsl:element name="img"><xsl:attribute name="src"><xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_6.jpg</xsl:attribute><xsl:attribute name="width">776</xsl:attribute><xsl:attribute name="height">30</xsl:attribute><xsl:attribute name="border">0</xsl:attribute></xsl:element></td>
</tr>
</table>

<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="57" class="clbg"></td>
<td width="664" class="ccbg">
<!--已有留言开始//-->
<xsl:if test="/GuestBook/NoContent">
<xsl:apply-templates select="/GuestBook/NoContent"/>
</xsl:if>
<xsl:if test="/GuestBook/Content">
<xsl:apply-templates select="/GuestBook/Content"/>
</xsl:if>
<!--已有留言结束//-->
ice_berg16 2006-01-04
  • 打赏
  • 举报
回复
看看xsl文件中的路径是否正确
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
xsl文件:
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title><xsl:value-of select="/GuestBook/Config/GuestbookName"/></title>
<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/bg.jpg);
}
.gbtitle {
font-family: "楷体_GB2312", "仿宋_GB2312", Verdana;
font-size: 20pt;
line-height: 30pt;
}
.ann {
font-family: "宋体";
font-size: 9pt;
line-height: 14pt;
color: #ffff99;
text-decoration: none;
}
a.ann:link {
font-family: "宋体";
text-decoration: none;
cursor: hand;
color: #ffff99;
}
a.ann:visited {
font-family: "宋体";
text-decoration: none;
cursor: hand;
color: #ffff99;
}
a.ann:hover {
font-family: "宋体";
text-decoration: underline overline;
cursor: hand;
color: #ffff99;
}
.con {
font-family: "宋体";
font-size: 9pt;
line-height: 14pt;
color: #734529;
}
a.con:link {
font-family: "宋体";
text-decoration: none;
cursor: hand;
color: #734529;
}
a.con:visited {
font-family: "宋体";
text-decoration: none;
cursor: hand;
color: #734529;
}
a.con:hover {
font-family: "宋体";
text-decoration: underline overline;
cursor: hand;
color: #734529;
}
.tit {
color: #EFDBBD;
font-family: "宋体";
font-size: 9pt;
line-height: 14pt;

}
.myform {
background-color: #FFFFCC;
border: 1px solid #EFDBBD;
}
.titlebg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_2.jpg);
}
.top3bg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_3_2.jpg);
}
.top5bg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/top_5_bg.jpg);
}
.clbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/left_bg.jpg);
}
.ccbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_c_bg.jpg);
}
.crbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/right_bg.jpg);
}
.ctbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_1_2.jpg);
}
.cclbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_left_bg.jpg);
}
.ccrbg {
background-image: url(<xsl:value-of select="/GuestBook/Config/XSLPath"/>/images/c_right_bg.jpg);
}
</style>
</head>
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
我对这个是初学,不是很明白,请问是哪个相对路径?
xml文件:
<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet type='text/xsl' href='xsl/wow1/index.xsl'?>
<GuestBook>

<Config>
<XSLPath>xsl/wow1</XSLPath>
<AdminName>秋枫</AdminName>
<AdminQQ>0</AdminQQ>
<AdminMSN>-</AdminMSN>
<AdminICQ>0</AdminICQ>
<AdminEmail>-</AdminEmail>
<AdminComeFrom>-</AdminComeFrom>
<AdminSex>

</AdminSex>
<AdminAge>
保密</AdminAge>
<GuestbookName>老虎留言簿</GuestbookName>
<HomePageURL>http://my.jz918.com</HomePageURL>
<Secret>1</Secret>
<Censor>0</Censor>
<BanIP>1</BanIP>
<BanIPStatus>1</BanIPStatus>
<Smile>1</Smile>
<UBB>1</UBB>
<EmailReply>0</EmailReply>
<MinLength>20</MinLength>
<MaxLength>800</MaxLength>
<PageSize>10</PageSize>
<BusyTime>120</BusyTime>
<NoticeTitle>魔兽争霸主题界面发布</NoticeTitle>
<NoticeContent>魔兽争霸主题界面发布</NoticeContent>
<NoticeTime>2005-3-13 17:17:05</NoticeTime>
<CopyRight>秋枫</CopyRight>
<Version>简体中文1.4.0</Version>
</Config>

<Content>

<Message>
<ID>1</ID>
<UserName>Lee</UserName>
<ComeFrom></ComeFrom>
<Sex>
男</Sex>
<Age>0</Age>
<QQ></QQ>
<MSN></MSN>
<ICQ></ICQ>
<Email></Email>
<HomePage></HomePage>
<FaceID>6</FaceID>
<Topic><P>Just a test<BR/>Just a test<BR/>Just a test<BR/>Just a test<BR/>Just a test</P>
</Topic>
<PostTime>2006-1-3 21:48:02</PostTime>
<IPStr>192.168.*.*</IPStr>
<IPFrom>荷兰</IPFrom>
<IsAdmin>0</IsAdmin>

</Message>

</Content>
<Navigate >
<RecordCount>1</RecordCount>
<BegPage>1</BegPage>
<PageCount>1</PageCount>

</Navigate>

<RunTime>46.875</RunTime>
</GuestBook>
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
再顶!
孟子E章 2006-01-04
  • 打赏
  • 举报
回复
你相对路径设置错误
李睿_Lee 2006-01-04
  • 打赏
  • 举报
回复
顶上去!
一个牛人提供的GIS源码(很好 下面文字非本人所写,文件提到的下载的东西我全部放包里了。 最后的礼物:校园多媒体系统和校园WEBGIS系统 为什么说是最后的礼物,大概是因为我突然想这个blog不更新了。为什么呢?可能是今天晚上喝多了酒,呵呵,原因等下一篇中也许会阐述,同时我会对这个blog的文章等做个总结。其实,这两个东西至少我暂时是不大想放出来的,只是觉得反正这里也不更新了,仅仅将这些东西作为礼物吧,再说毕竟这些东西太过于菜菜了。还是先来介绍下最后的两个礼物吧: 校园多媒体系统: 这个大概是今年过年后做的东西了,是给师弟做毕业设计用的。应该讲这也仅仅是电子地图查询系统的更新而已,没有太大的特色,只是做了些比较花的功能而已。 特色一:系统采用了双重数据库,对于如果无法连接SQL Server数据库的情况将提供备用的ACCESS数据库支持。 特色二:系统采用了实时在线更新的方法对软件进行升级,升级仅仅需要设置好服务端以及更新文件列表等即可。 特色三:界面上有所创新,吸取Google的WEB地图的界面,对部分控制条进行显示和隐藏。可以看我以前的截图,做了个界面,请大家PP http://www.cnblogs.com/Tangf/archive/2006/03/16/351640.html 特色四:简单的加密方式也可以学习下。这个加密方式可以对移植性进行控制。 特色五:移植性强,许多东西没有写死,只需要改变设置文件、启动画面文件、地图文件和数据库文件即可成为一套全新的系统。 开发环境:Visual Basic 6.0,MAPX5.02中文版,ACCESS,SQL SERVER 2000,AutodeskExpressViewe3.1、Windows Media Player 9.0等。 下载地址:http://www.cnblogs.com/Files/Tangf/Campus_Multimedia_Infomation_System_Source.rar 压缩包中为源代码和生成的程序,同时还赠送了一个基于SF6的MAPX打包文件以及整个校园的地图文件,提供了开放环境中需要的插件支持文件(System目录下),同时由于文件大小原因,删除了许多Img目录下的图片并且在数据库中删除了部分Img记录(不然会出错),仅保留了1号楼的图片供参考。 相关或参考文章: 电子地图查询系统_v1.0_源代码(VB6+MAPX5) http://www.cnblogs.com/Tangf/archive/2006/02/15/331375.htmlGoogle ┕电子地图查询系统源代码:http://www.cnblogs.com/Files/Tangf/MapSearch_Source.rar 用SetupFactory打包MapX(带打好的包和打包文档以及录像) http://www.cnblogs.com/Tangf/archive/2006/02/05/325842.html ┕打包以及文档和录像:http://www.cnblogs.com/Files/Tangf/Mapx_Pack.rar 再谈MAPX打包以及MAPX的安装 http://www.cnblogs.com/Tangf/archive/2006/05/31/414361.html 校园WEBGIS: 这个应该是05年的时候做的毕业设计,用超图的Supermap IS 2003+SQL Server 2000建立的一个比较的简单的系统,只是玄乎了下就变的有点意思了,甚至也有点学习或者创新的意思。 加上上次发布的论文部分,这样整个系统也算是补全了。原来论文部分请见:校园WebGIS开发与实践(论文部分) http://www.cnblogs.com/Tangf/archive/2006/01/13/316918.html 特色一:提出了地图接口的概念(其实当时的想法是将网络上的所谓企业标注移植到了这个系统上,只是这个功能免费提供给了学校的部门使用)。 特色二:部分搜索功能是通过搜索SQL输出XML来实现。 特色三:系统已经详细到每个楼房楼层的办公室以及办公室内的电话和教师名单、教学楼的班级以及课程表、宿舍的成员组成联系方式等。 特色四:空间数据库和属性数据库通过SQL Server的视图功能实现关联。 开发环境:Supermap Desktop 2003(地图编辑工具),Supermap IS 2003(GIS服务端),ASP+SQL Server 2000(开发语言和数据库环境),IIS 5.0(WEB服务端),AutodeskExpressViewe3.1(Autodesk公司发布的浏览DWF文件的的客户端插件)等。 安装方法请见论文的附录部分,请不要再询问如何安装。 由于当时将每个楼层平面图的CAD数据也同时存入了SQL Server,所以导致数据库文件过于庞大,大概90M多,经过压缩大概21.8M左右。由于文件过大没有地方存放,所以这部分也不提供。所以可能会导致系统功能无法实现。数据库不提供,请不要索取。 下载地址:http://www.cnblogs.com/Files/Tangf/Campus_WebGIS_Source.rar 压缩包中为WEB主程序,以及答辩用的演讲稿。 相关或参考文章: 校园WebGIS开发与实践(论文部分) http://www.cnblogs.com/Tangf/archive/2006/01/13/316918.html ┕校园WEBGIS的论文下载:http://www.cnblogs.com/Files/Tangf/Campus_WebGIS.rar 由于各种原因,压缩包中已经删除了无关紧要的楼层平面图的DWF部分。同时由于文件大小原因,AutodeskExpressViewe3.1程序也没有提供,请从网上下载。 特别说明:两个程序中已经提供了比较完整的数据和代码,可以复制、修改、传播,传播情保证文件完整性,并且包含Readme文件同时注明出处,但禁止用于商业用途。谢谢。 但愿我的礼物能够给您带来一些帮助。 ==================================================================== 公告:Rover's Official Blog停止更新 想了几天,终于决定写这么一个公告了。并不是因为写些东西太累或者太占时间而停止了更新,也许就如同前文说是因为今天喝多了酒(呵呵,玩笑),也许如同MSN副标题所言:严重的压力和抑郁,强烈的人格分裂和精神分裂,等待崩溃(呵呵,又一个玩笑)。可能是觉得写的东西没什么水准,并且也不能时常的更新,加上个人感觉自己技术的下降(呵呵,也许本来就没有什么技术),考虑甚多,终于作了这么个决定:Rover's Official Blog停止更新 同时停止更新的是Rover's GIS Blog,是3snews上面的Blog,不过上面的基本上也都是本站的复制。生活类Blog会不定时更新,停靠在了Space和新浪,由于关系自己暴露隐私等问题,所以本文不详细提供连接地址。从元旦开博到现在也已经八个月的时间了,发了40多篇的随笔和0篇的文章,非常开心能够在博客园作为我的主blog的停靠站,能够让我在这里结识这么多的朋友,并同他们交流,让我学到甚多、收益菲浅,非常的感谢博客园感谢大家。 也许我还会回来,说不定有一天我会发公告说本Blog重新开始更新,很有可能的事情。希望这段日子能够安静些,能够思考更多些,能够明确些方向,能够做出些实质性的东西,能够提高些自身的技术能力。非常的希望,不知道能否实现。 也许我也会偶然的更新一下本日志,大概是在有东西发布或者有好东西同大家分享的情况下吧。不过这篇日志就置顶了吧。 正准备经营的东西,希望能够得到大家的帮助,非常的感谢: www.gpsplayer.cn:GPS玩家。GPS资讯类网站。类似一个简单的新闻系统,加上一些简单的留言板等等功能,可能会添加一些Gmap API开发类的内容。 www.wikish.cn:维基上海。有了点想法和思路,但暂时由于技术能力等原因无法实现。 其他:还有两个玉米没有想好(呵呵)。 由于个人比较自私,所以想法上即使有所创意也不大会和大家分享(请见谅),加上自身没有技术,所以个人基本上是宁烂也不实现或者让别人实现(是有点自私了)。请原谅我的自私,Google是有创意的,但他的技术壁垒是他人所无法逾越的,而我即使有创意也没有任何技术壁垒,所以不讲了。加上大陆地区太多的炮制太另人失望了(去年非常红火的百万首页,在大陆地区做的烂的一塌,只会炮制没有几个是有创意或者在人家创意的基础上增加自己创意的,唉)。 非常的希望大家能够给我意见或者建议,对大家提供的帮助非常的感谢。 如果您对这一段有想法或者其他愿意和我交流,那么请给我mail。谢谢。 我的联系方式和需要注意的地方: E-mail:tfljh@163.com(基本上是每天晚上登陆一次) MSN:tfljh@msn.com(基本上是开机登陆,不过状态一般为忙碌,Mail会不定时登陆) Gmail:tangf2004@gmail.com(基本上是两三天登陆一次,Gtalk则不定时登陆了) QQ:65985498(基本上是每天晚上隐身登陆一次,并且一般在十分钟内关闭) 以后的联系通过E-Mail联系,谢绝一切的及时通讯工具,请尽量不要添加我为好友,包括QQ/MSN/Gtalk,如果您发的Mail足够的诚恳并且也足够的值得聊天的理由,那么我会添加你的。不希望通过聊天的方式来解决问题,聊了半天的问题最后做公安局调查户口的事情了(呵呵,说的严重了),或者说是聊了半天后就无聊了然后再也不聊了,多么的没有意思。我倒还是很愿意花上十分钟的时间来阅读您的Mail并将我知道的所答复给您。当然如果有邮件不回复,那么基本上我是不懂而无法回答或者觉得没有任何答复的价值,请多多的包涵。 以前写的部分日志以及提供的下载文件整理: 最后的礼物:校园多媒体系统和校园WEBGIS系统 http://www.cnblogs.com/Tangf/archive/2006/08/05/468257.html ┕校园多媒体系统源代码下载:http://www.cnblogs.com/Files/Tangf/Campus_Multimedia_Infomation_System_Source.rar ┕校园WEBGIS系统源代码下载:http://www.cnblogs.com/Files/Tangf/Campus_WebGIS_Source.rar Google卫星地图的URL计算 http://www.cnblogs.com/Tangf/archive/2006/07/23/457902.html 两点坐标间距离的算法以及验证 http://www.cnblogs.com/Tangf/archive/2006/07/23/457884.html 极索(Gsuo)推出新版地图采用Gmap设计思路 http://www.cnblogs.com/Tangf/archive/2006/07/23/457521.html 浅谈LBS(基于位置的服务) http://www.cnblogs.com/Tangf/archive/2006/07/17/452498.html MapBar地图更新啦 http://www.cnblogs.com/Tangf/archive/2006/07/13/450215.html 推荐一款软件:Global Mapper http://www.cnblogs.com/Tangf/archive/2006/07/11/448411.html 51ditu、清华地图以及Google地图 http://www.cnblogs.com/Tangf/archive/2006/07/02/440953.html 计算最近点和最近线段 http://www.cnblogs.com/Tangf/archive/2006/07/01/440311.html ┕最近点和最近线段算法示例代码(脱离MAPX5,VB6实现):http://www.cnblogs.com/Files/Tangf/neardis_new.rar Garmin Nuvi 350试用手记 http://www.cnblogs.com/Tangf/archive/2006/06/17/428045.html ┕全文下载(供转载专用):http://www.cnblogs.com/Files/Tangf/Nuvi350.rar MapBar中坐标的加密和解密(JS实现) http://www.cnblogs.com/Tangf/archive/2006/06/06/419124.html 发现一个SVG做的地图网站:ChinaQuest http://www.cnblogs.com/Tangf/archive/2006/06/04/417110.html boot.ini文件的修复 http://www.cnblogs.com/Tangf/archive/2006/06/04/416915.html 再谈MAPX打包以及MAPX的安装 http://www.cnblogs.com/Tangf/archive/2006/05/31/414361.html 寻找MapBar的地图切割方法 http://www.cnblogs.com/Tangf/archive/2006/05/28/411397.html ┕我自己切割的Mapbar地图,并且可以在本地运行:http://www.cnblogs.com/Files/Tangf/MapBar_My.rar 已知一点求最近点(问题请教) http://www.cnblogs.com/Tangf/archive/2006/05/28/411182.html ┕求最近点示例代码(基于MAPX5,VB6实现):http://www.cnblogs.com/Files/Tangf/neardis.rar 基于数据库的公交换乘算法(一点思路一点问题) http://www.cnblogs.com/Tangf/archive/2006/05/28/411065.html MapInfo/ArcInfo交流(提问解答,不定时更新) http://www.cnblogs.com/Tangf/archive/2006/05/09/395489.html (收集)Shape转KML工具(更新:Google正式收购SketchUp) http://www.cnblogs.com/Tangf/archive/2006/04/26/386092.html ┕两个SHape转KML工具:http://www.cnblogs.com/Files/Tangf/shape2kml.rar 地图投影 http://www.cnblogs.com/Tangf/archive/2006/04/17/377638.html 容器透明(如PictureBox) http://www.cnblogs.com/Tangf/archive/2006/04/05/367885.html Google地图切割以及类似Google的开源API http://www.cnblogs.com/Tangf/archive/2006/03/29/362110.html 获取字符串中的指定位置的子字符串 http://www.cnblogs.com/Tangf/archive/2006/03/25/358311.html 做了个界面,请大家PP http://www.cnblogs.com/Tangf/archive/2006/03/16/351640.html [存点资料]车载导航电子地图走向标准化 http://www.cnblogs.com/Tangf/archive/2006/03/04/342733.html [ZT]谈谈 wiki 的缺点 http://www.cnblogs.com/Tangf/archive/2006/03/01/340725.html [转贴]Web地图服务:GIS走近你我 http://www.cnblogs.com/Tangf/archive/2006/02/23/336493.html 算我给Google本地和E都市做个广告吧 http://www.cnblogs.com/Tangf/archive/2006/02/18/333076.html 电子地图查询系统_v1.0_源代码(VB6+MAPX5) http://www.cnblogs.com/Tangf/archive/2006/02/15/331375.htmlGoogle ┕电子地图查询系统源代码:http://www.cnblogs.com/Files/Tangf/MapSearch_Source.rar 地图的配色问题(以及MapBar和51ditu) http://www.cnblogs.com/Tangf/archive/2006/02/12/329162.html [分享]上海市样图 http://www.cnblogs.com/Tangf/archive/2006/02/08/327310.html ┕上海市样图:http://www.cnblogs.com/Files/Tangf/Map_SH.rar 用SetupFactory打包MapX(带打好的包和打包文档以及录像) http://www.cnblogs.com/Tangf/archive/2006/02/05/325842.html ┕打包以及文档和录像:http://www.cnblogs.com/Files/Tangf/Mapx_Pack.rar ArcGIS9、MapObject2.2和ArcExplorer2.0连接ArcSDE9.0问题 http://www.cnblogs.com/Tangf/archive/2006/01/26/323698.html MapBar和MapInfo中的比例尺[更新:MapBar比例尺是正确的] http://www.cnblogs.com/Tangf/archive/2006/01/24/322854.html MapBar研究(百度地图中的JS部分) http://www.cnblogs.com/Tangf/archive/2006/01/22/321756.html ┕本地浏览,调用远程图片:http://www.cnblogs.com/Files/Tangf/MapBar_baidu.rar 浅谈WEBGIS运用栅格地图实现原理[更新:Google Maps带来的新型WebGIS设计模式] http://www.cnblogs.com/Tangf/archive/2006/01/14/317327.html 校园WebGIS开发与实践(论文部分) http://www.cnblogs.com/Tangf/archive/2006/01/13/316918.html ┕校园WEBGIS的论文下载:http://www.cnblogs.com/Files/Tangf/Campus_WebGIS.rar MapInfo中按区域分割地图的方法(带MapBasic方法) http://www.cnblogs.com/Tangf/archive/2006/01/13/316363.html MIFtoSHP通用转换工具 http://www.cnblogs.com/Tangf/archive/2006/01/06/312654.html ┕MIFtoSHP通用转换工具:http://www.cnblogs.com/Files/Tangf/MIFtoSHP.rar MIFtoTAB and TABtoMIF(MIF和TAB互转小工具) http://www.cnblogs.com/Tangf/archive/2006/01/01/309375.html ┕MIFandTAB互转工具:http://www.cnblogs.com/Files/Tangf/MIFandTAB.rar 『浪人|努力』唐丰,Rover.Tang 2006.08.05

8,909

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧