This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: RDDL as a delivery vehicle for XSLT extensions?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] RDDL as a delivery vehicle for XSLT extensions?
- From: "Steve Muench" <Steve dot Muench at oracle dot com>
- Date: Fri, 2 Mar 2001 07:54:28 -0800
- References: <Pine.LNX.4.21.0103012324580.11630-100000@clarkevans.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Clark,
|<xbind:module
| name="a-language-independent-uri-that-refers-to-functionality">
| <xbind:function name="format">
| <xbind:param name="date" type="string" />
| <xbind:param name="format" type="string" />
| <xbind:return type="string" />
| <xbind:comment>
| This function formats a date in ISO 8601
| according to the format string.
| </xbind:comment>
| <xbind:implementation
| language="java"
| package="java:com.example.datestuff.DateRoutines#format"
| />
| <xbind:implementation language="javascript">
| ...
| </xbind>
| </xbind:function>
|</xbind:module>
The proposal above is identical to <xsl:script> except
for the fact that your more formally defining the functions
and returns.
Imagine for a moment that <xsl:script> were named
<xsl:library> instead, but went otherwise unchanged.
You then have:
<xsl:stylesheet xmlns:foo="a-language-independent-uri-that-refers-to-functionality">
<xsl:library implements-prefix="foo" language="XXX" src="uri"/>
<xsl:library implements-prefix="foo" language="YYY" src="uri"/>
</xsl:stylesheet>
Modulo the additional info about args and return types,
see your <xbind:module> plus multiple <xbind:implementation>
children as isomorphic to the sample number of <xsl:library>
elements. They both have "a-language-independent-uri-that-
refers-to-functionality". They both list multiple implementations
of that functionality.
______________________________________________________________
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