Project

Profile

Help

Bug #5343

Updated by O'Neil Delpratt over 2 years ago

Reported by user here: https://saxonica.plan.io/boards/4/topics/8573 https://saxonica.plan.io/issues/4848 

 The simple python script which creates a PyXdmArray object: 

 ~~~ python 
 from saxonc import * 

 with PySaxonProcessor(license=False) as proc: 
     print("Test SaxonC on Python") 
     print(proc.version) 
    
     xdm_value = PyXdmValue() 
     for i in range(1, 6): 
         xdm_value.add_xdm_item(proc.make_array([proc.make_integer_value(n) for n in range(1, i)])) 

     print(isinstance(xdm_value, PyXdmValue)) 
    
     print(xdm_value) 
    
     for item in xdm_value: 
         print(isinstance(item, PyXdmItem)) 
         print(isinstance(item, PyXdmArray)) 
         print(item) 

 print(isinstance 
 ~~~ 

 Prints the following error message before SaxonC crashes: 

 ~~~ 
 Error found when converting array of XdmValue to XdmArray 
 ~~~ 


Back