Thanks for reporting this. I've logged it as a bug at
and fixed it in the Subversion repository. It was already fixed in the development branch.
Michael Kay

From: [] On Behalf Of
Sent: 27 March 2008 15:05
Subject: [saxon] The Problem of creating XQSequence with methodcreateSequence()

Dear friend

I am a freshman working on xquery with saxon 9.0.01, I want to create an instance of XQSequence as follow, I get an file as output,I find out the number 1was included in the xml file successfully,but the content of document and the number 2 is not included ,how could I correct the code,thanks!


   org.w3c.Document w3cdoc=.....; 
  ArrayList items=new ArrayList();
  items.add(new Integer(1));
  items.add(new Integer(2));
  XQSequence result=new SaxonXQDataSource().getConnection().createSequence(items.iterator);
Properties pro=new Properties();
pro.setProperty("method", "xml");
pro.setProperty("indent", "yes");
   BufferedOutputStream fos=new BufferedOutputStream(new FileOutputStream(fname));
   result.writeSequence(fos, pro);
catch(Exception e){e.printStackTrace();}

content of the xml file:  
<?xml version="1.0" encoding="UTF-8"?>1 

Thanks for reading !

HP Compaq6910p商用本,驱动器锁,把控安全( )