Re: [Gestalt-users] New extension function
Status: Alpha
Brought to you by:
colin-adams
From: Florent G. <dar...@ya...> - 2006-07-17 17:13:50
|
Colin Adams wrote: > That's not possible for a number of reasons. Ok. > If you want to do this, then you can write a transformation to > generate your required stylesheet and serialize it to a > destination named by a URI. Yes, sure. > > Also, maybe a gexslt:transform-error() function could be > > interesting to return the error given the result of the > > transformation. It is more > > clear than testing that the N-th item is a QName, isn't it? If the > > transformation is successfull, this function returns the empty > > sequence. > And if it isn't successful? It can only return the same > sequence as now. > So you can write this as an xsl:function if you wish. Yes, sure. It thought about having an abstraction behind the return type on failing. But your question is pertinent: to abstract a return type, writing a function that return the same sequence is not really usefull. Maybe a predicate is-successfull(), but the gain is little. Regards, --drkm ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com |