下面的XSLT轉換會在我嘗試使用函數node-name()時顯示錯誤。 Error: E[Saxon6.5.5]The URI http://www.w3.org/2005/xpath-functions does not identify an external Java class <xsl:stylesheet version="1.1"
xmlns:xsl="http://www
我下的,顯然是不正確的印象,當我通過散列成一個類的類需要一個初始化的方法是這樣的: class Dog
attr_reader :sound
def initialize(params = {})
@sound = params[:sound]
end
end
dog = Dog.new({sound:"woof"})
puts dog.sou