Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-595

upgrade to saxon 11.x

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Version 5.1.0
    • XPath
    • None

    Description

      From Saxon 10.6.

      Early analysis indicates this upgrade breaks compatibility so XMLBeans and POI users should not use Saxon 11.x until there is a new XMLBeans release that officially supports Saxon 11.x.

      It does cause compile problems (see below) and also requires that users add an extra jar to their classpath (https://saxonica.plan.io/issues/5265).

       

                      return DateTimeValue.makeDateTimeValue(value.toString(), config.getConversionRules()).asAtomic();
                                          ^
          method net.sf.saxon.value.DateTimeValue.makeDateTimeValue(net.sf.saxon.value.DateValue,net.sf.saxon.value.TimeValue) is not applicable
            (argument mismatch; java.lang.String cannot be converted to net.sf.saxon.value.DateValue)
          method net.sf.saxon.value.DateTimeValue.makeDateTimeValue(net.sf.saxon.str.UnicodeString,net.sf.saxon.lib.ConversionRules) is not applicable
            (argument mismatch; java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString)
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:258: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return DateValue.makeDateValue(value.toString(), config.getConversionRules()).asAtomic();
                                                                   ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:260: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return TimeValue.makeTimeValue(value.toString()).asAtomic();
                                                                   ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:262: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return GYearValue.makeGYearValue(value.toString(), config.getConversionRules()).asAtomic();
                                                                     ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:264: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return GYearMonthValue.makeGYearMonthValue(value.toString(), config.getConversionRules()).asAtomic();
                                                                               ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:271: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return GMonthValue.makeGMonthValue(val).asAtomic();
                                                         ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:273: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return GMonthDayValue.makeGMonthDayValue(value.toString()).asAtomic();
                                                                             ^
      /Users/pj.fanning/svn/xmlbeans/src/main/java/org/apache/xmlbeans/impl/xpath/saxon/SaxonXQuery.java:275: error: incompatible types: java.lang.String cannot be converted to net.sf.saxon.str.UnicodeString
                      return GDayValue.makeGDayValue(value.toString()).asAtomic(); 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pj.fanning PJ Fanning
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: