Re: [Xsltforms-support] XPath concat problem
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2012-02-02 20:21:54
|
Hi Alain, This expression is used in a <xf:output value="" model="" /> element. I already corrected the confusions between @ref and @value in my page, and so this is surprising that this doesn't work anymore. Grégoire PS : sorry for the previous (incomplete) mail. Le 02/02/2012 21:01, Alain Couthures a écrit : > Hello Grégoire, > > This error message is displayed when a nodeset is expected and when the > result of the expression evaluation is not returning a nodeset. > > For example, confusing xf:output/@ref and xf:output/@value could produce > this error. > > Could you please tell where this big XPath expression is used? > > Thanks! > > -Alain > > Le 02/02/2012 20:45, Grégoire COLBERT a écrit : >> Hi! >> >> I upgraded to revision 523 and I now get an error during initialization: >> >> Binding evaluation didn't returned a nodeset but ' ' for XPath >> expression: concat( substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-8, 3) , ' ' , >> substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-5, 3) , ' ' , >> substring(instance('instance-annonces')/annonce[id = >> instance('instance-annonce-selectionnee')/id]/prix,string-length(instance('instance-annonces')/annonce[id >> >> = instance('instance-annonce-selectionnee')/id]/prix)-2, 3) ) >> >> This ugly XPath is used to separate large numbers in (up to) 3 groups of >> numbers (1234567 is displayed as 1 234 567). I know I could do this >> differently, but for now, I'd like to know why this doesn't work anymore? >> >> Thanks, >> Grégoire >> >> ------------------------------------------------------------------------------ >> >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > |