You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Parameters are passed to external functions in incorrect order
# XSLT call
my_namespace:pad_number('12345', '9')
# Ruby
class Xslt::Functions
def pad_number(value, length)
...
end
end
result: value is "9" and length is "12345" -- the reverse of the calling order
2. External functions don't appear to support numeric arguments
# XSLT call
my_namespace:pad_number('12345', 9) <!-- note that second argument is now numeric -->
result:
/Users/marnen/.rvm/gems/ruby-1.9.2-p318/gems/nokogiri-1.5.2/lib/nokogiri/xslt/stylesheet.rb:21:in `transform': do not handle type: 3 (RuntimeError)
from /Users/marnen/.rvm/gems/ruby-1.9.2-p318/gems/nokogiri-1.5.2/lib/nokogiri/xslt/stylesheet.rb:21:in `apply_to'
[further traceback snipped -- this is the important part]
I've reproduced this. Working on it.
The text was updated successfully, but these errors were encountered:
From nokogiri-talk, @marnen says:
I've reproduced this. Working on it.
The text was updated successfully, but these errors were encountered: