我怀疑我们在 c#.net 中执行任何进程时是否会出现某些错误,当时我们陷入错误日志中
同样 当假设我们在 xml 和 xslt 之间执行任何处理错误时,可能会出现我们如何捕获该异常!
任何人都可以有想法......因为它会用于我的验证,所以请让我知道任何可能性。
最佳答案
您可以使用 xsl:message
.
The xsl:message instruction sends a message in a way that is dependent on the XSLT processor. The content of the xsl:message instruction is a template. The xsl:message is instantiated by instantiating the content to create an XML fragment. This XML fragment is the content of the message.
NOTE:An XSLT processor might implement xsl:message by popping up an alert box or by writing to a log file.
If the terminate attribute has the value yes, then the XSLT processor should terminate processing after sending the message. The default value is no.
<xsl:message
terminate = "yes">
<!-- Content: message describing the error -->
</xsl:message>
关于c# - xml和xslt之间的转换处理时如何产生异常错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7129720/