11 2012 档案

摘要:如同C#一样,在XSLT中我们也不能直接对两个字符串变量进行大小比较,查阅W3school中有关XPath的函数,可以使用compare()进行字符串大小比较,但是该函数只在XSLT 2.0中有效,XSLT 1.0不支持。通过添加ms前缀,使用ms:string-compare()函数可以实现字符串大小比较,见这篇文章:http://msdn.microsoft.com/zh-cn/library/ms256114.aspx 阅读全文
posted @ 2012-11-26 13:34 Jaxu 阅读(1314) 评论(0) 推荐(0) 编辑
摘要:在.NET中,使用XslCompliedTransform可以非常方便地使用XSLT对XML文档进行格式化,// Load XML DocumentXPathDocument xmlXPathDoc = new XPathDocument(HttpContext.Current.Server.MapPath("sample.xml");// Load XSLT DocumentXslCompiledTransform xslTransform = new XslCompiledTransform();// Add parameters to XSLT Document (o 阅读全文
posted @ 2012-11-26 12:11 Jaxu 阅读(1596) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示