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

Re: xbind:module == xsl:script + an essential layer of

Subject: Re: xbind:module == xsl:script + an essential layer of indirection
From: "Steve Muench" <Steve.Muench@xxxxxxxxxx>
Date: Fri, 2 Mar 2001 22:16:37 -0800
implements prefix xslt
| 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


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.