xls格式化xml问题? 高分!!!

zhengjuzhuan 2008-05-23 10:01:06
就是现在已经有一个如下的一个xml新闻文件
但是新闻的内容已经排版好了 加粗 颜色 等等都已经弄好了
现在的问题的我通过xls来格式化xml文件 但是新闻的内容不能被正确的显示 大家想想看有什么办法没
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="News_Template.xsl"?>
<News>
<!-- 新闻的主要内容 -->
<!-- 属性InfoID是自动累加 -->
<T_INFO InfoID="$InfoID$">
<!-- 资讯分类ID -->
<InfoSortID>$InfoSortID$</InfoSortID>
<!-- 标题 -->
<Title>启用了 Internet Explorer 增强的安全配置</Title>
<!-- 资讯内容 -->
<Content>
<h1 id="Heading1">启用了 Internet Explorer 增强的安全配置</h1>
<p id="Text1">当前在您的服务器上启用了 Internet Explorer 增强的安全配置。它配置一些定义用户如何浏览 Internet 和企业内部网站的安全设置。此配置还能提高服务器的隐蔽性,从而减少某些网站对服务器构成的安全隐患。有关此配置的安全设置的完整列表,请参阅 <a id="IEESCLink" title="Internet Explorer 增强的安全配置的效果" href="res://shdoclc.dll/IESecHelp.htm#effects">Internet Explorer 增强的安全配置的效果</a>。</p>
<p id="Text2">此增强级别的安全性阻止网站在 Internet Explorer 中正确显示,并限制访问网络资源,例如在通用命名约定(UNC)共享上的文件。如果您想浏览的网站所要求的 Internet Explorer 功能被禁用,您可以将此网站添加到本地 intranet 包含列表或受信任的站点区域。有关更多信息,请参阅<a id="ManageIEESCLink" title="管理 Internet Explorer 增强的安全配置" href="res://shdoclc.dll/IESechelp.htm#manage">管理 Internet Explorer 增强的安全配置</a>。</p>
<div>
</div>
</Content>
</T_INFO>
</News>
...全文
1146 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
carl974 2008-08-28
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="utf-8"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Title">
<b> <p> <xsl:value-of select="."/> </p> </b> <!--加粗用<b> or <strong>-->
</xsl:template>

<xsl:template match="Content">
<p> <xsl:value-of select="." disable-output-escaping="yes"/> </p>
</xsl:template>
</xsl:stylesheet>
gougou203 2008-08-04
  • 打赏
  • 举报
回复
[script]alert(123)[/script]
Qiaorui 2008-05-26
  • 打赏
  • 举报
回复
修正一下:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Title">
<b> <p> <xsl:value-of select="."/> </p> </b> <!--加粗用<b> or <strong>-->
</xsl:template>

<xsl:template match="Content">
<p> <xsl:value-of select="." disable-output-escaping="yes"/> </p>
</xsl:template>
</xsl:stylesheet>
Qiaorui 2008-05-26
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:copyRight="http://xml.sz.luohuedu.net/">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="Title">
<b><p><xsl:value-of select="."/></p></b><!--加粗用<b> or <strong>-->
</xsl:template>

<xsl:template match="Content">
<p><xsl:value-of select="." disable-output-escaping="yes"/></p>
</xsl:template>
</xsl:stylesheet>
zhengjuzhuan 2008-05-23
  • 打赏
  • 举报
回复
这个加粗是怎么实现

8,906

社区成员

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

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