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

RE: Re: Re: Assignment no, dynamic scoping si (was: Re

Subject: RE: Re: Re: Assignment no, dynamic scoping si (was: Re: RE: Wishes for XSL revisions ...
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Wed, 2 Jan 2002 14:41:26 -0800
php dynamic scoping
Gunther Schadow wrote:
> Interestingly I learned that the dynamic scope
> issue had never come up in the past, so it isn't pre-decided
> in any way.

Although the XSL WG hasn't discussed this issue as such, there was a
proposal[1] (on the ides of March) which asked for much the same thing that
you want. I think. It's framed as "syntax sugar", but it's obviously more
than that. Can you tell me how close this proposal is to what you're
proposing (modulo syntax)? (See below.)

Evan

[1] http://lists.w3.org/Archives/Public/xsl-editors/2001JanMar/0132.html

The email is short so I include it below:

---------------------------------------------
Date: Thu, 15 Mar 2001 01:21:38 -0500 (EST)
Message-ID: <3AB07B9E.C441498D@xxxxxxxxx>
From: Miloslav Nic <nicmila@xxxxxxxxx>
To: xsl-editors@xxxxxx
CC: "xsl-list@xxxxxxxxxxxxxxxxxxxxxx" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Proposed syntactic sugar: xsl:propagate-param

Recently, I have written a few stylesheets mostly consisting of
constructs like:

<xsl:template match="*" mode="xxx">
<xsl:param name="a"/>
<xsl:param name="b"/>
<xsl:param name="b"/>
...
...
<xsl:apply-templates>
<xsl:with-param name="a" select="$a"/>
<xsl:with-param name="b" select="$b"/>
<xsl:with-param name="c" select="$c"/>
...
...
...
</xsl:apply-templates>

...
...
</xsl:template>

I would find really useful if there was a way to propagate the params
like:

<xsl:template match="*" mode="xxx">
<xsl:apply-templates>
  <xsl:propagate-param/>
  <xsl:with-param name="c">XXXXXXXX</xsl:with-param>
</xsl:apply-templates>
</xsl:template>


xsl:propagate-param would sent all params which given template accepted
to the template
specified by the xsl:apply-templates or xsl:call-template.

It would be possible to override some of the values with explicit
xsl:with-param
</xsl:template>



--
******************************************
<firstName> Miloslav </firstName>
<surname>   Nic      </surname>

<mail>    nicmila@xxxxxxxxx    </mail>
<support> http://www.zvon.org  </support>
<zvonMailingList>
    http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.