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

RE: the problem with include and import

Subject: RE: the problem with include and import
From: "Matt G." <matt_g_@xxxxxxxxxxx>
Date: Sun, 06 Jan 2002 21:48:40
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  the problem with include and import
Date: Sun, 6 Jan 2002 19:27:27 -0000

It occurred to me, while I was considering the issues
relating to stylesheet library modularity with respect to
dynamic scoping, that global parameters and variables already
present a problem (if I'm not mistaken).

This is why variable names are QNames. It makes sense if you define a module intended to be reusable, e.g. a module for trigonometry, to define a namespace name such as http://trig.com/trig.xsl and to name all templates, functions, and global variables with this namespace name.

I see this (now), but I can't think of a good reason why a stylesheet should determine the namespace in which the template and variable names it defines exist, other than to keep these *private*. IMO, you want the *importing* stylesheet to determine what namespace the external module's names are in.

As I said, previously, I think this could still be added as the default namespace of the imported module.

Am I missing something?

Matt Gruenke

_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com

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

Current Thread


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.
First Name
Last Name
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.