Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • alexei 21 posts 40 karma points
    Nov 03, 2009 @ 00:10
    alexei
    0

    intersection

    Tell me, please, somebody what to do with this  error

     

    Error occured System.ArgumentNullException: Value cannot be null. 

     

    Parameter name: type 
    at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) 
    at umbraco.presentation.xslt.Exslt.ExsltCommon.ExsltNodeListToXPathNodeIterator(ExsltNodeList list) 
    at umbraco.presentation.xslt.Exslt.ExsltSets.intersection(XPathNodeIterator nodeset1, XPathNodeIterator nodeset2)

     

     

    <xsl:copy-of select="Exslt.ExsltSets:intersection('1224','1223')"/>
  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Nov 03, 2009 @ 08:56
    Dirk De Grave
    0

    Alexei,

    the intersection method accepts XPathNodeIterator objects for both parameters, yours are just strings.

     

    Cheers,

    /Dirk

  • alexei 21 posts 40 karma points
    Nov 03, 2009 @ 20:06
    alexei
    0

    Dirk, is it contains() the only choice for me to compare two strings in xslt inside Umbraco? 

    Where can I get information about this functions except wiki?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Nov 04, 2009 @ 08:52
    Dirk De Grave
    1

    Alexei,

    Depends on what you define as "comparing two strings"? Anyway, if you can't find an existing library function that does what you need, you could either write a small inline script or an xslt extension. Can't find useful resource on the wiki regarding xslt extenions, but you may find a howto here.

     

    Hope this helps.

    Regards,

    /Dirk

     

     

  • alexei 21 posts 40 karma points
    Nov 04, 2009 @ 14:47
    alexei
    0

    Dirk, thanks I'll try to study your links and suggestions

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies