[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: XSLT 3.0: What is the default visibility of a

Subject: Re: Re: XSLT 3.0: What is the default visibility of a package component inside the declaring package ?
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Nov 2014 17:19:44 -0000
Re:  Re: XSLT 3.0: What is the default visibility of a
Thank you, Abel,

This is valuable information.

Cheers,
Dimitre

On Mon, Nov 3, 2014 at 9:06 AM, Abel Braaksma (Exselt) abel@xxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> The visibility depends on both the visibility attribute of the component,
and
>> the rules in the package's xsl:expose declarations. If neither apply, the
>> default visibility is private.
>>
>
> It is worth noting that a late change to the latest public last call working
draft removed the @visibility attribute from global xsl:param declarations[1].
The implicit visibility of xsl:param inside a library package (which is
defined as the used package) is public, and you cannot change it. This makes
sense, as params can always be set from the infrastructure (i.e., on the
commandline) and should therefore be public.
>
> However, if the xsl:param is declared static (a new XSLT 3.0 feature which
allows use of variables and params inside static expressions and shadow
attributes, a powerful pre-compilation feature), its implicit visibility is
local only. Static params cannot be scoped beyond the package or stylesheet
they are declared in (but import precedence does apply). This also makes
sense, as it allows for precompilation of packages.
>
> A global xsl:variable can be overridden and has a visibility attribute, but
only if it is not static.
>
> Cheers,
>
> Abel Braaksma
> Exselt, a streaming XSLT 3.0 processor
> http://exselt.net
>
> [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26740, public bug,
comment#3

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.