You need to pass an XdmValue (not an XdmAtomicValue, because it isn't atomic). There's a constructor
 
new XdmValue(IEnumerable items)
 
where the IEnumerable (typically a List) must contain instances of XdmItem, which includes instances of XdmAtomicValue.
 
So:
 
List list = new ArrayList();
list.add(new XdmAtomicValue("seq1"));
list.add(new XdmAtomicValue("seq2"));
transformer.SetParameter(nnn, new XdmValue(list));
 
Not tested (and there may be a more elegant way of coding it).
 
Michael Kay
http://www.saxonica.com/
 
PS: Nice to see you're still using Saxon in your new home...


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Ryan Puddephatt
Sent: 24 April 2008 14:31
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Passing Sequences as xsl:param from .Net

Hi,

                I’m using Saxon.Net and trying to pass a sequence to my XsltTransformer. I’m currently doing

 

transformer.SetParameter(new QName("","",”sequence”),new XdmAtomicValue(“(‘seq1’,’seq2’)”) ;

 

but this doesn’t work, any ideas would be great

 

Thanks

 

Ryan

 

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

t: +44 (0) 20 7323 6112

b: +44 (0) 79 8539 2458

f: +44 (0) 20 7462 4242

e: rpuddephatt@latentzero.com

w: http://www.latentzero.com

 


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com