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: <>
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"/>

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:21 UTC