A copy of modes10.xsl from the Xalan test suite.
tracexsl -sample2 . xsl—来自Xalan测试套件的modes10 . xsl副本。
In this article, I use Xalan as the XSLT processor.
在本文中,我使用Xalan作为XSLT处理器。
If your extension function throws an exception, Xalan shuts down.
如果您的扩展函数抛出了一个异常,Xalan将关闭。
The easiest solution is to turn to the Xalan-provided serializer.
最简单的解决方案是求助于Xalan提供的序列化程序。
The following table provides a reference to these mappings in Xalan.
下表提供了Xalan中这些映射的参考。
XSLT processors, such as Xalan, are not exactly friendly to use, yet.
象xalan这样的XSLT处理器使用起来确实还不是那么友好。
Just subscribe to a user list for JDOM or Xalan-J or Eclipse or Firefox.
只需订阅JDOM或Xalan - j或eclipse或Firefox的一个用户列表。
Just put the class somewhere in the classpath you use when running Xalan.
只要在运行Xalan时将类放在您所使用的类路径中即可。
The code samples for this article use the Xalan package for XPath support.
本文的样本代码对于XPath支持使用xalan包。
The tag shown in bold allows you to specify the location of the Xalan JAR files.
粗体显示的标记使您可以指定XalanJAR文件的位置。
This file does not, however, include external libraries such as Xalan and Xerces.
但是,这个文件不包含诸如xalan和Xerces等外部库。
Among other products, Xalan 2.7 and Saxon 8 include an implementation of this library.
Xalan 2.7和Saxon8以及其他产品包含了这个库的实现。
Xalan-J is an open source XML processor, built on and around all open source parsers and tools.
Xalan-J是一个开源XML处理器,基于和围绕所有的开源解析器和工具构建。
Xalan has some debugging features already built into it which can tell you what a stylesheet is doing.
Xalan已经内置了一些调试功能,这些功能可以告诉您样式表正在做什么。
When I use Xalan to run tracexsl1.xsl over Stefan's stylesheet, I get tracexsl-sample1.xsl.withTrace .
当我使用Xalan对Stefan 的样式表运行tracexsl1.xsl 时,我获得了 tracexsl-sample1.xsl.withTrace 。
Otherwise, Xalan can optimize away the invocation of the extension function and not call it even once.
否则,Xalan可能会优化掉扩展函数的调用,根本不会调用这个函数。
To use Xalan or Saxon instead, you only need to change the order of the parameters on the command line.
若要改为使用Xalan或Saxon,只需要更改命令行中参数的顺序即可。
Xalan: XSLT processor's current version is superior to the one bundled with the JDK, especially JDK 1.4.
Xalan:XSLT处理程序的当前版本远远超出了JDK特别是 JDK 1.4捆绑的版本。
If you need to run Eclipse under JDK 1.3.x, you have to install Xalan and adapt the plug-in accordingly.
如果需要在JD K 1.3 . x中运行Eclipse,您必须安装Xalan并相应地调整插件。
In some XSL processors, like Xalan, there are even extension methods written directly into the processor.
在某些XSL处理器中(如xalan),甚至有直接写到处理器中的扩展方法。
If you want to get involved in Xalan's development, try the Xalan-Dev mailing list, found at the same place.
如果您希望参与Xalan开发,请尝试Xalan - Dev邮件列表,可在相同位置找到该列表。
Remember, Xalan always prefers doubles, and it USES the int-accepting method only if it can't find a wider type.
切记,Xalan总是优先选择双精度类型,只有在无法找到范围更大的类型时,它才会使用接受整型的方法。
With the extensions, Xalan developers can provide some additional features without conflicting with the standard.
利用该扩展,Xalan开发人员可以提供一些额外的功能,而不会与标准产生冲突。
But if you don't need a portable solution, this sort of measurement might be easier to write as a Xalan TraceListener.
但如果您不需要可移植的解决方案,那么作为Xalan TraceListener这种衡量手段可能更容易编写。
Tools such as Xalan use stylesheets to process the XML content according to the included instructions in the stylesheets.
诸如xalan这样的工具根据样式表中包括的说明来使用样式表处理XML内容。
It does not cost anything to use the Xalan serializer because that's the class Xalan USES internally to save HTML document.
使用Xalan序列化程序不需要任何成本,因为它是Xalan用于内部保存HTML文档的类。
I could take the approach Xalan did in its own messages, and display the line and column number within the source document.
我可以采用Xalan在其自己的消息中所采用的方法,并显示源文档内的行号和列号。
If you think you're using Xalan and you're really using something else, then the likely failure will alert you to that fact.
如果您认为自己在使用Xalan而实际上用的是其他处理程序,很可能出现的问题会警告您这一点。
I should note here that this location information isn't always available, depending on where Xalan loaded the stylesheet from.
这里我应当说明的是,该位置信息并非始终都是可用的,这取决于Xalan从哪里装入样式表。
Even when you add the much more correct and robust Xalan 2.7 to your classpath, you might still use the older bundled version.
即使在类路径中添加了更稳定更健壮的Xalan 2.7,使用的可能仍然是较老的捆绑版本。
应用推荐