XSLT转换XML时引入多个源XML

BellStar 2008-01-11 11:43:47
如何使用XslTransform或者XslCompiledTransform时引入多个XML
...全文
51 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
BellStar 2008-01-15
  • 打赏
  • 举报
回复
MSDN了好久才会:
 System.Xml.XmlUrlResolver resolver = new System.Xml.XmlUrlResolver();
Uri path = resolver.ResolveUri(this.Request.Url, "/Data/newshomeConfig.xml");
resolver.GetEntity(path, null, typeof(Stream));
BellStar 2008-01-11
  • 打赏
  • 举报
回复
不行啊,在XSLT里头直接引入Transform就不转换了。直接访问声明了xslt的XML文件到是可以。
BellStar 2008-01-11
  • 打赏
  • 举报
回复
执行Transform(xmldoc, null, writerPage, null)时给一个,另一个在xslt文档中用document()包含能够ok吧

110,566

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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