English 中文(简体)
利用XML组合生成超文本文档
原标题:Generate HTML files using XML configuration

我的目标是建立一个固定的网址,其中有许多重复使用。 现在,我可以为此目的使用共同财产计划。 但是,该站点将经常地在重负荷下进行改造,同时使用诸如gzip等特征,我不需要并发症。

My idea is to put up a build process with some tool like ant, That build process will concatenate all HTML pieces, preprocess HTML, JS, CSS with minifier and finally apply gzip. I want an XML configuration that will define the parts that need to go in every html page and their order.

我需要就ant工具或任何类似工具提出建议;如何接近组合,任何外部工具将提供帮助? 任何建议都受到高度赞赏。

最佳回答

XSLT完全适合将XML转换为另一种格式,如超文本。

您可下载Apache Xalan,请其尝试。 <>Ant支持 rel=“nofollow”> XSLT处理

问题回答

在java世界上,你可以看,Apache Forrest,而这正是此类事情。

在其他世界,还有webgen,这是一个合格的Rub网站建筑商。

我也含糊不清地记得还有其他选择,但我可以找回自己的名字。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签