我目前正在使用“http://www.w3.org/2001/XMLSchema " namespace, however when I give it two date parameters the compiler gives this warning: "中的减法日期(arg1,arg2)函数 . 构造函数必须只有一个参数”
任何帮助表示赞赏 .
我目前正在使用“http://www.w3.org/2001/XMLSchema " namespace, however when I give it two date parameters the compiler gives this warning: "中的减法日期(arg1,arg2)函数 . 构造函数必须只有一个参数”
任何帮助表示赞赏 .
1 回答
XSD名称空间中没有subtract-dates()函数 . 你正在使用的处理器似乎在想“如果它在XSD命名空间中它必须是一个构造函数,如果它是一个构造函数,它必须有一个参数” .
您可能正在查看op:subtract-dates(),它不是用户可见的函数,而是出现在规范中的内部函数,用于解释“ - ”运算符在应用于日期时的语义 . 持续时间 .