On 17 Jun 2014, at 08:55, Michael Kay <mike@saxonica.com> wrote:

I'm inclined to suggest using the JAXP solution here: a single string parameter, which is in the form "{uri}local" in the case where the name is namespaced.


As suggested I think we will go with the JAXP solution. It seems much simpler to implement internally when passing the string to the Saxon core.

I have now closed the related bug issue with this solution: https://saxonica.plan.io/issues/2088






On 12 Jun 2014, at 11:33, O'Neil Delpratt <oneil@saxonica.com> wrote:


On 12 Jun 2014, at 11:10, Christian Schwaderer <c_schwaderer@hotmail.com> wrote:

It works now for me, but only if I add the empty parameter value '' in setParameter like
$proc->setParameter('','name_as_string',$just_created_XdmValue);

So, what is this strange first parameter of setParameter?

The first parameter is there to provide the namespace, but it is not actually used. Initially we tried to design the API of Saxon/C inline with libxslt (i.e. http://www.php.net/manual/en/xsltprocessor.setparameter.php), but the problem is libxslt is a XSLT 1.0 processor which will not suffice a XSLT 2.0 processor, so we have had to rethink on several of the design decisions.

Incidentally, I have dropped the namespace parameter from the next release because it is not used, but we might reintroduce it later if required.

kind regards,

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/



------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help

-------------------------------
O'Neil Delpratt
Software Developer, Saxonica Limited Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com
Saxonica Community site: http://dev.saxonica.com
Bug tracking site: https://saxonica.plan.io/