Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前在“ http://www.w3.org/2001/XMLSchema ”命名空间中使用减日期(arg1,arg2)函数,但是当我给它两个日期参数时,编译器会给出这个警告:“构造函数函数必须只有一个参数”
任何帮助表示赞赏。
XSD 命名空间中没有subtract-dates() 函数。您正在使用的处理器似乎在想“如果它在 XSD 命名空间中,它必须是一个构造函数,如果它是一个构造函数,它必须有一个参数”。
您可能正在查看 op:subtract-dates(),它不是用户可见的函数,而是出现在规范中的内部函数,用于解释“-”运算符在应用于日期和持续时间。