Actions
Support #6285
closedAre you expecting document-uri() to be a "licensable feature"?
Start date:
2023-12-13
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
12
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Java
Description
Hi, folks!
While I await arrival of our updated license file, I started changing the invocations to use Saxon 12.4 instead of Saxon 9.
Unexpectedly, I'm out of the water immediately because document-uri() appears not to function correctly when the license file is absent. Of course I expected licensable features not to work, but I wasn't expecting document-uri() to be such.
I'm reporting this in case this is an oversight on your part and you intended to make the function function even without the license file present.
I hope this is helpful feedback! Happy holidays!
. . . . . . Ken
~/u/git/render/render $ cat /Users/admin/t/document-uri.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:output method="text"/>
<xsl:variable name="top" select="/" as="document-node()"/>
<xsl:template match="/">
<xsl:value-of select="system-property('xsl:product-version')"/>
<xsl:text>
</xsl:text>
<xsl:value-of select="document-uri($top)"/>
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
~/u/git/render/render $ java -jar jar/saxon9/saxon9.jar -s:/Users/admin/t/j.xsl -xsl:/Users/admin/t/document-uri.xsl
PE 9.9.1.7
file:/Users/admin/t/j.xsl
~/u/git/render/render $ java -jar jar/saxonpe/saxonpe.jar -s:/Users/admin/t/j.xsl -xsl:/Users/admin/t/document-uri.xsl
No license file found - running with licensable features disabled
PE 12.4
~/u/git/render/render $
Files
Please register to edit this issue
Actions