You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
I cannot test if <xsl:message terminate="yes"/> is executed as expected. In the
current framework, it completely falls over, and the test is completely broken.
Since it is a part of the language, it would be good to be able to test for it.
Original issue reported on code.google.com by fou...@googlemail.com on 11 May 2012 at 2:02
@yamahito and I were talking about this last night. One way could be to replace every xsl:message with an xsl:element that creates, say, either an xsl:message or an x:message element in the result. The @terminate would become an attribute of the created element. XSpec could then remove any output after a <*:message terminate="yes"> before evaluating any expectations.
However, this wouldn't work very well if the tested stylesheet wrote output to secondary output files and the expectations were against the content of those files.
Things could also break if the tested stylesheet had xsl:message before an xsl:attribute, but hopefully (a) most users would be able to change their stylesheets, and (b) creating the attribute before terminating isn't too computationally expensive for production use and doesn't introduce changes in external state that shouldn't happen when the transform fails.
Activity
tgraham-antenna commentedon Sep 17, 2015
@yamahito and I were talking about this last night. One way could be to replace every
xsl:messagewith anxsl:elementthat creates, say, either anxsl:messageor anx:messageelement in the result. The@terminatewould become an attribute of the created element. XSpec could then remove any output after a<*:message terminate="yes">before evaluating any expectations.However, this wouldn't work very well if the tested stylesheet wrote output to secondary output files and the expectations were against the content of those files.
Things could also break if the tested stylesheet had
xsl:messagebefore anxsl:attribute, but hopefully (a) most users would be able to change their stylesheets, and (b) creating the attribute before terminating isn't too computationally expensive for production use and doesn't introduce changes in external state that shouldn't happen when the transform fails.Always provide xs:boolean in $impl:successful expression (expath#48)
add bats test issue expath#46 / pr expath#48 (expath#51)
Add tests for issue expath#46 / pr expath#48 for Windows (expath#54)