1

If I had a dynamically generated XSL document and needed to persist it, would there be any pros or cons to writing it to a file or saving it in a DB? Feels like a coin toss at the moment (although db persistence would be easier of the two ), but I wonder if I'm ignoring security implications (performance?)?

4

1 回答 1

1

将其写入文件。XSL 文件可以有类似的东西

<xsl:include href="../some_other_file.xsl" />

如果它在数据库中,它将不起作用。您可以使用 XML 目录来解决这个问题,但实际上,XSL 是为文件系统设计的。

编辑:我错了。XSL 是为 URI 设计的,您可以让它在数据库中工作。见评论。

于 2013-06-19T22:04:46.803 回答