When using xsl:output saxon:next-in-chain="sheet2.xsl" with Saxon 9.8 EE, in the sheet2.xsl system-property('xsl:product-name') shows HE
Replies (1)
Please register to reply
Added by Martin Honnen over 7 years ago
I am still trying to explore @saxon:next-in-chain@ to chain two stylesheets, the only way I got it working at all so far is with an @<xsl:output saxon:next-in-chain="test201708180302.xsl"/>@, however I get a strange result, I run Saxon EE 9.8.0.4 Java from the command line with e.g. @-xsl:test201708180304.xsl@ and inside of that first stylesheet @system-property('xsl:product-name'), system-property('xsl:product-version')@ outputs the expected @SAXON EE 9.8.0.4@ while then for the chained stylesheet the output is @SAXON HE 9.8.0.4@.
The full stylesheets are, first the one passed on the command line with @-xsl@:
the second referenced in @saxon:next-in-chain@
Any sample XML works as the input e.g.
test
When I try a property like @system-property('xsl:supports-higher-order-functions')@ in the chained stylesheet then it returns @no@, on the other hand evaluation an expression like @sort(('c', 'a', 'd'), (), function($c) { -string-to-codepoints($c) })@ seems to work fine which I think wouldn't work in HE.
Please register to reply