Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review use of use-when and functions #76

Open
namedgraph opened this issue Apr 4, 2021 · 0 comments
Open

Review use of use-when and functions #76

namedgraph opened this issue Apr 4, 2021 · 0 comments
Assignees

Comments

@namedgraph
Copy link
Member

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

@namedgraph namedgraph self-assigned this Apr 4, 2021
@namedgraph namedgraph changed the title Review use of use-when Review use of use-when and functions Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant