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

Re: What is exciting in XSLT 2.0 (Was: Re: para

Subject: Re: What is exciting in XSLT 2.0 (Was: Re: parameters in XSLT 2.0)
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Thu, 09 Jun 2005 09:42:39 +0200
invokation xslt example
Dimitre Novatchev wrote:

>>   
>>
>>
>>   James> so libraries can be built up?
>>
>>Yes.
>>
>>This is a stylesheet (module) that has only built-in templates, and
>>so, if invoked as the principal stylesheet, will not call the
>>function.
>>
>>But if included or imported into another stylesheet, then indeed the
>>function might be called from other templates.
>>--
>>Colin Adams
>>Preston Lancashire
>>
>>I think James is asking here if the above stylesheet can be a part of
>>a *compiled* library.
>>    
>>

thx Dimitre; yes, this was the question.

though after thinking about it...its potentially dangerous to provide a
mechanism that depends on some compiled stylesheet...slippery slope to
incompatibility, we still need to 'bring in' functionality under the
auspices of xsl:import/xsl:include and namespaces, though it might be
useful to delineate a function library with something like an
xsl:library element within a stylesheet, which explicitly associates
functions with a namespace and provides some sort of meta name/data,
which defines its invokation as well( e.g. mylibrary:function() ).

<xsl:library name="mylibrary" xmlns="http://www.example.org/mylibrary">

    <xsl:function....>
    </xsl:function>

</xsl:library>

how to deal with things like versioning, overloading, etc all would have
to be thought about...

In addition, there is also always problems of absolute/relative
addressing with such things... maybe there is some sort of 'packaging'
requirement with XSLT that is needed, instead of thinking along lines of
compiled stylesheets, based on zip.

just thinking out loud.

cheers, Jim Fuller

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.