Project

Profile

Help

Support #4685

closed

xsl:include href attribute expected behavior / bug?

Added by John Smail over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2020-08-14
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

I've used the following syntax successfully with Saxon-EE 9.7 and XSLT 3.0, and only then found out it was not supposed to work...

<xsl:param name="globalParameterName" as="xs:string"/>
...
...
<xsl:include href="{$globalParameterName}"/>

It seems that according to the schema for XSLT, the xsl:include element's href attribute should be of type xs:anyURI. It doesn't really say anything about support for an attribute value template (xsl:avt). However, the runtime evaluation of the globalParameterName (which happens to be a file:/ URL, but typed as xs:string) is successfully resolving and including the intended stylesheet.

Also, a question was raised previously on https://saxonica.plan.io/boards/3/topics/4276?r=4275#message-4275 that reinforces that behavior should not be supported, and the stylesheet not modified at runtime.

Is this now expected behavior and supported, or is this a bug?

Please register to edit this issue

Also available in: Atom PDF