Skip to content

Review use of use-when and functions #76

Closed

Description

@namedgraph

Instead of using use-when to differentiate between server- and client-side execution on function calls like this:

<xsl:value-of use-when="system-property('xsl:product-name') eq 'Saxon-JS'" select="resolve-uri(concat('/', ixsl:call(ixsl:window(), 'generateUUID', [])), $ac:uri)"/>
<xsl:value-of use-when="system-property('xsl:product-name') = 'SAXON'" select="resolve-uri(concat('/', ac:uuid()), $ac:uri)"/>

we could abstract the differences away by hiding the differences within functions.

This should also help address issues of SEF compilation on Saxon-EE: https://saxonica.plan.io/issues/4961

Activity

  1. self-assigned this
    on Apr 4, 2021
  2. changed the title [-]Review use of use-when[/-] [+]Review use of use-when and functions[/+] on Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions