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.

Does XSpec specify an implicit default context? #73

Description

@adamretter

If we look at the scripts provided for executing XSpec:

  1. Bash - https://github.com/expath/xspec/blob/master/bin/xspec.sh#L259
  2. Windows Batch - https://github.com/expath/xspec/blob/master/bin/xspec.bat#L73
  3. Ant - https://github.com/expath/xspec/blob/master/build.xml#L97

We see that each of them invoke Saxon to execute the XSpec. However, they also tell Saxon to set the input document to that of the original foo.xspec file, by using the -s: argument, even though they also set an initial named template for execution using the -it: argument.

This doesn't seem to make any sense to me. XSpec provides x:context for setting the context of a Scenario. Also I can't imagine why you would ever want a default implicit context which was the content of your XSpec.

Is this a mistake/bug or is this by intention? If this is by intention, then can someone please explain what the use-case is, as I can't see it yet!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions