This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RDDL as a delivery vehicle for XSLT extensions?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]