This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xbind:module == xsl:script + an essential layer of indirection
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] xbind:module == xsl:script + an essential layer of indirection
- From: "Steve Muench" <Steve dot Muench at oracle dot com>
- Date: Fri, 2 Mar 2001 22:16:37 -0800
- References: <31142E7A489AD411AD7D00508BAF8504663DA9@NETFXCH1>
- Reply-To: xsl-list at lists dot mulberrytech dot com
| What if xsl:script were changed from...
| : > <xsl:stylesheet xmlns:date="http://datestuff.com/xslt/extensions">
| : > <xsl:script implements-prefix="date"
| : > language="lang:yyyy"
| : > src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
| :
| : To...
| :
| : <xsl:script implements="http://datestuff.com/xslt/extensions"
| : language="lang:yyyy"
| : src="http://datestuff.com/xslt/extensions/impl/dates.xyz"/>
|
| I find the XSLT namespace usage for bindings somewhat problemmatic. I think
| Clark made an argument earlier that these bindings could be used for other
| languages, not just XSLT, which I found convincing. Given that we can always
| include top-level elements in XSLT stylesheets if we really need it to be
| part of XSLT document, it seems better to have a separate namespace.
Eugene,
These two approaches are semantically identical.
The only difference is that with the current <xsl:script>
proposal, if you list three languages for the same
namespace uri, then you save a little typing by doing:
<xsl:stylesheet xmlns:date="http://datestuff.com/xslt/extensions">
<xsl:script implements-prefix="date" language="lang:yyyy"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
<xsl:script implements-prefix="date" language="lang:zzzzz"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
<xsl:script implements-prefix="date" language="anotherlang:qqqqq"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
whereas with your proposal, you repeat the namespace uri
each time instead of using its shortcut/prefix name:
<xsl:stylesheet>
<xsl:script implements="http://datestuff.com/xslt/extensions"
language="lang:yyyy"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
<xsl:script implements="http://datestuff.com/xslt/extensions"
language="lang:zzzzz"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
<xsl:script implements="http://datestuff.com/xslt/extensions"
language="anotherlang:qqqqq"
src="http://datestuff.com/xslt/extension/impl/dates.xyz"/>
______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list