使用XSLT 2.0
,如何在样式表中检查是否正在使用实际 XSLT 2.0
处理器?
system-property()
,一个2.0函数,仍然会在它无法正常支持的情况下返回2.0。
答案 0 :(得分:0)
当我使用Saxon 6.5.5或Firefox或Chrome或Opera或IE 10运行http://home.arcor.de/martin.honnen/xslt/processorTest2.xml时,他们都会将xsl:version
报告为1
或1.0
,他们都没有报告2.0
。我没有尝试过Xalan。