You need to pass XdmEmptySequence.INSTANCE as the value.

Michael Kay
Saxonica


On 22/11/2012 13:10, Virendra Ray wrote:
hi,

I am using Saxon HE with .Net and want to bind empty sequence to variable value.
selectorFormula.SetVariable(new QName("", childNode.ChildNodes[0].Name, (XdmItem)e.Current);

when e.Current is null (emptysequence) I want to bind null value ( () ) to it.

Regards
Virendra 




------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help