DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6124

Attribute value templates aren't substituted in extension elements

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2002-01-31 03:29 -------
For an explanation see:

 http://xml.apache.org/xalan-j/extensions.html#ext-elements

You just need to replace your getAttribute call with

  t = e.getAttribute( "value", xp.getContextNode(), xp.getTransformer() );

Also, please note that there is no guarantee that your ext:set element will be 
invoked before your ext:get function.  XSLT is a declarative language that can 
theoretically be executed in multiple parallel threads.  In particular, 
extension elements and extension functions that have side effects (such as 
storing state in member fields) are a particularly bad choice in design.

Reply via email to