Re: [xsl] Why aren't ENTITY declarations in a main stylesheet visible in the included stylesheets?

Subject: Re: [xsl] Why aren't ENTITY declarations in a main stylesheet visible in the included stylesheets?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Jun 2022 11:19:04 -0000
> I thought that an xs:include is essentially a "macro substitution", in which
case the entity declaration should be visible, yes?
>

No, each stylesheet module is parsed independently using a standard XML
parser. Entity expansion is done by the XML parser, which has no knowledge of
XSLT and no interest in xsl:include or xsl:import elements.

Michael Kay
Saxonica

Current Thread