W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2001

XSLT 2.0: Parameterized imports?

From: John E. Simpson <simpson@polaris.net>
Date: Sat, 10 Mar 2001 14:18:40 -0500 (EST)
Message-Id: <5.0.2.1.2.20010310140511.02445080@mail.polaris.net>
To: xsl-editors@w3.org
Would it be desirable (and feasible) to include a requirement to permit 
passing global parameters to imported stylesheets? What I'm thinking is 
that xsl:import could be made (optionally) non-empty, a la:

   <xsl:import href="uri">
     <xsl:with-param name="param_name" select="somevalue"/>
   </xsl:import>

The rationale would be that a global parameter's value is normally set (or 
rather, overridden) from "outside" the stylesheet which declares it.  This 
facility would permit imported stylesheets to be treated identically if 
invoked directly from the command line, script, and so on, AND if "invoked" 
by another stylesheet.

================================================================
John E. Simpson          | "Is it weird in here, or is it just
http://www.flixml.org    | me?" -- Steven Wright
XML Q&A: www.xml.com     |
Received on Monday, 12 March 2001 07:19:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT