<xsl:expose component="mode"> has no effect on implicitly-declared modes
Although it's not 100% clear in the spec, on balance I think
xsl:expose should be capable of setting the visibility of a mode that is defined "by reference" rather than through an explicit xsl:mode declaration.
It's actually having no effect, because
PrincipalStylesheetModule.adjustExposedVisibility iterates over "topLevel", which only reaches explicitly-declared components.
Test case package-001j applies.
Please register to edit this issue