Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - Re: [xsl] XSLT 1.1 comments
>Thread Next - Re: [xsl] XSLT 1.1 comments
Re: [xsl] XSLT 1.1 comments
To:
Date: 2/14/2001 11:17:00 AM
On Wed, 14 Feb 2001, David Carlisle wrote: > > If I use tags that are not in the XSL namespace then its not 100% xsl is it. > > its XSL + saxon extensions. Its still valid XSL but its not 100% pure BC > > grown XSL. > > that is still true with 1.1's xsl:script. If you don't use functions or > elements in an extension namespace then the xsl file is portable. No > matter how many xsl:script elements you might have used. It seems that many of us think that extension functions are "acceptable", where xsl:script is a horse of a completely different color: Extension functions specify particular functionality be carried out, and do not specify an implementation. For each extension function, a small and seperate specification can be laid out describing the intent of the function. Implementations can provide this functionality *independent* of the language the XSLT processor is written in. With an extension function, I can enumerate what exact functions are needed; this implies that it is completely acceptable to implement just a few functions of a given type. Scripts are embedded code of a completely different language with it's own interpreter, etc. Certainly one could write an implementation of each interpreter independent of the language; but writing function vs writing a full-fledged interpreter is a big leap in complexity. With scripts, it is implied that a full implementation of the interpreter is availabele. Thus, enumeration of additional required functionality is a very hard problem. As such, extension functions provide a nice "layer" between the XSLT script and the transform; with scripts the layering is given up altogether. I think scripts are an ill-advised move, all bets at cross-platform compatibilty go out the door. Many people want scripts beacuse the "modulization" abilities of XSLT leave alot to be desired, i.e., making a template and calling a template are just too verbose. This seperate issue can be solved by an additional namespace "xf" with the following behavior: Anywhere, except as a child of "xsl:template", <xf:func x="y" /> is equivalent to <xsl:call-template name="func"> <xsl:with-param name="x" select="y" /> </xsl:call-template> and when a child of xsl:template, <xf:func x="y"> is equivalent to <xsl:template name="func"> ... <xsl:param name="x" </xf:func> select="y" /> ... </xsl:template> Clark XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

