社区
XML/XSL
帖子详情
有关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/
一切正常。
这是什么原因呢?
请各位指点。
...全文
307
17
打赏
收藏
有关xml显示问题请教
昨天晚上在试用礼拜八留言本(用xml和xsl技术控制显示的)。发现一个问题: 我用地址: http://192.168.123.103/shuma/gu 图片就会没法正确显示,所有通过xsl格式化的超链接也不正常,查看其属性发现其地址不正确,少了一个gu,而如果我用下面的地址打开 http://192.168.123.103/shuma/gu/ 一切正常。 这是什么原因呢? 请各位指点。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用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
打赏
举报
回复
顶上去!
XML
创建及中文
显示
问题
XML
默认UTF-8编码可能不
显示
汉字,导致出现错误提示。解决方法是将
XML
文件的encoding设为GB2312,如
xml
version=1.0 encoding=gb2312?>,并使用doc.set
XML
Encoding(gb2312)设置编码。确保
XML
文件的编码与其包含的数据内容匹配,避免解译错误、空白或乱码
问题
。
关于
显示
xml
的
问题
本文深入探讨了HTML与
XML
在网页
显示
中的不同处理方式,并详细解释了如何在jQuery中使用text(), val(), html()方法在不同场景下正确
显示
文本、值或HTML内容。同时,文章提供了在Textarea、页面、CKEditor中
显示
XML
内容的技巧,以及这些方法之间的区别和用法。
android
xml
文件不
显示
视图的
问题
本文探讨了解决Android开发中
XML
文件不
显示
的
问题
,通过调整ADT与项目targetSdkVersion相同来实现
显示
效果。
关于用HTML
显示
XML
文件内容的
问题
本文讲述了作者在大二项目中遇到的HTML
显示
XML
文件内容的
问题
。经过一周多的尝试,在Chrome浏览器无法成功
显示
XML
内容后,作者换用其他浏览器解决了
问题
,感叹于初期未考虑浏览器兼容性的疏忽,同时也开启了HTML和
XML
学习的新篇章。
IE9下通过XSLT转换
XML
的
显示
问题
本文介绍了解决IE9中直接打开
XML
文件
显示
正常,但经过XSLT文件查看
XML
时
显示
为文本的
问题
的方法。通过启用兼容模式,包括打开IE9工具栏、选择工具-兼容性视图设置,将所有网站置于兼容视图模式,然后关闭并重启IE即可解决。
XML/XSL
8,906
社区成员
22,677
社区内容
发帖
与我相关
我的任务
XML/XSL
XML/XSL相关问题讨论专区
复制链接
扫一扫
分享
社区描述
XML/XSL相关问题讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章