XML+XSL生成HTML(在服务器端实现)JAVA中可以:import javax.xml.transform.*;
javax.xml.transform.stream.*;
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t = tf.newTransformer(new StreamSource("http://localhost:8080/jsp/guide.xsl"));
t.transform(new StreamSource("http://localhost:8080/jsp/xiaoyuanwenhua.xml"), new StreamResult(out));或者用apache的xalan-j之类也可以请教一下ASP.NET中有无类似的东东?
请给我一个范例代码
谢谢!
javax.xml.transform.stream.*;
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t = tf.newTransformer(new StreamSource("http://localhost:8080/jsp/guide.xsl"));
t.transform(new StreamSource("http://localhost:8080/jsp/xiaoyuanwenhua.xml"), new StreamResult(out));或者用apache的xalan-j之类也可以请教一下ASP.NET中有无类似的东东?
请给我一个范例代码
谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货