Logging with XSLT

后端 未结 6 1898
逝去的感伤
逝去的感伤 2021-02-06 02:37

How and where could I output log messages for debug and performance purposes during an XSLT transformation?

I guess the simplest method is using express

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 02:57

    A simple hack would be to create a variable with xsl:variable and to either just concat() new values to it or to set up a xsl:template which does the same thing. Then you just need to output this variable at the end of the execution and you can explicitly choose where to show the log.

提交回复
热议问题