Re: [Gestalt-users] [ gestalt-Bugs-1563054 ]gexslt:transformation() and namespace bindings
Status: Alpha
Brought to you by:
colin-adams
From: Colin A. <col...@ho...> - 2006-09-26 07:53:44
|
It is absolutely correct for function-available(gexslt:transformation) to return false for use-when processing. This is required behaviour. It is also correct for the function to be available at run time (though not required). So, no bug, just a user error. At least, I think this is the case. In XSLT 2.0 section 3.12, it says: "In scope functions The core functions defined in [Functions and Operators], together with the functions element-available, function-available, and system-property defined in this specification, plus an implementation-defined set of extension functions. Note that stylesheet functions are not included in the context, which means that the function function-available will return false in respect of such functions. " But this doesn't seem to be useful to me. function-available ought to indicate which functions are unavailable at runtime, for it to be useful to call it in a use-when attribute. So I think this is a bug in the spec. If you agree with this, then please raise a bug on the W3C bugzilla. >From: Florent Georges <dar...@ya...> > > <xsl:template name="main" use-when=" > function-available('gexslt:transformation')"> > <main available="true"> > <xsl:sequence select=" > gexslt:transformation('#test', doc(''))"/> > </main> > </xsl:template> > > <xsl:template name="main" use-when=" > not(function-available('gexslt:transformation'))"> > <main available="false"> > <xsl:sequence select=" > gexslt:transformation('#test', doc(''))"/> > </main> > </xsl:template> > >the last template rule will be compiled and will run correctly. So the >function is available, and works fine, but seems to not be in the >static context (as if it was registered too late in the context >library). > > HTH. Regards, > >--drkm > > > > > > > > > > > > > > > > > > > > > > > > > > > > >___________________________________________________________________________ >Découvrez un nouveau moyen de poser toutes vos questions quelque soit le >sujet ! >Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et >vos expériences. >http://fr.answers.yahoo.com > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Gestalt-users mailing list >Ges...@li... >https://lists.sourceforge.net/lists/listinfo/gestalt-users _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters |