Delphi里如何修改xml源文件中关于样式表的路径?急。

fccmw 2004-07-21 11:41:37
比如下面一段代码:
<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
<!--
Copyright David Carlisle 2001, 2002.

Use and distribution of this code are permitted under the terms of the <a
href="http://www.w3.org/Consortium/Legal/copyright-software-19980720"
>W3C Software Notice and License</a>.
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html" />
<title>Presentation Examples</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mn>2</mn><msqrt>
<mn>5</mn>
</msqrt>

</mrow>
</math>
</body>
</html>

想修改href="pmathml.xsl",改成herf="../../pamthml.xsl",怎么做?
急!!!
...全文
119 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
cronuz 2004-07-23
  • 打赏
  • 举报
回复
楼主好象不会結帖!

結帖的方法:
 在本帖中、按最下一行的「管理」鍵(桔紅色的)。然後分配分数...

fccmw 2004-07-23
  • 打赏
  • 举报
回复
偶已经解决了。用TXMLDocument就可以。谢谢各位。
fccmw 2004-07-21
  • 打赏
  • 举报
回复
怎么做?偶不会也。请指教。
ly_liuyang 2004-07-21
  • 打赏
  • 举报
回复
自己编写解释器做了,都很简单的
字符串分析,不是难的,自己搞去
bxh2dai 2004-07-21
  • 打赏
  • 举报
回复
TXMLDocument不可以吗?
cronuz 2004-07-21
  • 打赏
  • 举报
回复
実際是xsl文件、在delphi中没有現成可用的控件。

用TXMLDocument控件可打開、但<?xml-stylesheet ... ?>中的内容好象読不出来。

1,594

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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