1。为是么我发在数据库里的时间在aspx中显示的是2004-03-05 19:25:56,而我通过dataset而writexml进xml文件中却变成了2004-03-05T19:25:56.0000000+08:00?请问如何解决?
2.如何在xslt中处理html的空格问题?如<table><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;我是我!</td></tr></table>
3.如何在xslt转换为html的页面中使用“页面执行时间”?
如在aspx中可以这样写
public starttime as string
public endtime as string
sub page_load(sender as object,e as eventargs)
starttime=timer()
end sub
....
<%endtime=timer()
response.write("页面执行时间:" + formatnumber((endtime-starttime)*1000,3)+"毫秒")
%>
而在xslt中怎么使用?

解决方案 »

  1.   

    1. that is format from XML Schema, to see a workaround, seehttp://www.c-sharpcorner.com/Code/2003/July/FormatDateTimeInXml.asp2. try<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text> 3. there is no general way to do that, you could try to use msxsl:script if the browser is doing the transformationif you are doing the transformation on the server side, tryDataTime dt = DateTime.Now;
    //do the tranformation  here
    DateTime dtEnd = DateTime.Now;
    TimeSpan ts = dtEnd - dt;
    double t = ts.TotalMilliseconds;