Skip to content

Using roaster requires a seemingly unused output prefix to be declared in the consuming code #137

Description

@DrRataplan

See https://github.com/eeditiones/roaster/blob/main/test/app/modules/api.xql#L4. The output prefix is not actually used. But removing it gives a dynamic error from Roaster:

 <?xml version="1.0" ?><exception><path>/db/apps/betmas-id-manager/modules/api.xql</path><message>err:XPST0081 No namespace defined for prefix output:method [at line 449, column 5, source: /db/system/repo/roaster-1.12.1/content/router.xql]

Can we circumvent this in some way? Maybe by using fn:QName in router.xql? I don't really like dead imports. It encourages cargo culting and makes one afraid to remove unused namespaces.

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