Xalan XSLT 多个输出文件? [英] Xalan XSLT multiple output files?
问题描述
我只想知道,是否可以使用 Xalan 将单个输入 XML 文件的处理输出到多个其他文件?
我不一定必须这样做,我知道我可以使用其他工具来做到这一点(如 Saxon),和/或我可以处理不同的文件以获得不同的输出.我只想知道我必须使用我计划使用的工具完全满足我的要求的选项.也欢迎任何我不应该使用该工具来完成此任务的理由.
上下文有点简单,我正在尝试转换表示多页、多语言网站结构的 XML 文件.文件的(当前和未来可能的)结构类似于
<前><页面><页面><语言名称="xyz"><!-- 更多有趣的东西--></语言></页面></页面>一个页面可能包含多种语言,但并非必须如此.
您是否使用 Xalan-J 还是 Xalan-C?如果您使用 Xalan-J,Redirect 扩展应该执行把戏.
I'd just like to know, is it possible to output the processing of a single input XML file to multiple other files using Xalan?
I don't necessarily HAVE to do it that way, I know I can use other tools to do it (like Saxon), and/or I could process different files to obtain different outputs. I'd just like to know the options I have to do exactly what I'm asking for with the very tools I'm planning on using. Any reason why I shouldn't use that tool to do this task is also welcome.
The context is kinda simple, I'm trying to transform an XML file that represents the structure of a multipage, multilanguage website. The (current and potentially future) structure of the file is something like
<pages> <page> <language name="xyz"> <!-- More interesting stuff --> </language> </page> </pages>
Potentially, a page will contain multiple languages, but it doesn't have to be so.
Are you using Xalan-J or Xalan-C? If you are using Xalan-J, the Redirect extension should do the trick.
这篇关于Xalan XSLT 多个输出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!