Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Failures cannot be tested #48

Open

Description

@GoogleCodeExporter
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

Activity

  1. tgraham-antenna commented on Sep 17, 2015

    @tgraham-antenna
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions