Error In Xpath 2.0 Expression Too Many Items
EditorSchema Editor XML Schema Editor RelaxNG EditorXML DiffXSD documentationXSL / XSLT XSL / XSLT Editor XSL / XSLT Debugger XSL / XSLT Refactoring XSLT documentationXQuery XQuery Editor XQuery DebuggerXML DatabasesCMS IntegrationSVN ClientOther Features Office Open XML Open Document Format XSL:FO Editor SVG Editor WSDL EditorFeature MatrixSupported platformsWindows Eclipse Mac OS X Linux/UnixCompatible with Windows7 & Mac OS X Snow LeopardReady for data server software [XSL-LIST Mailing List Archive Home] [By Thread] [By Date] RE: [xsl] Error in XPath 2.0 expression Too many items Subject: RE: [xsl] Error in XPath 2.0 expression Too many items From: "Michael Kay" Date: Tue, 3 Jan 2006 12:18:59 -0000 > Now my problem is when I see the 'browser' present in this xmlspy I > can see values fetched but when I click on 'XSL Transformation' it > gives me an error > "XSL transformation failed due to following error: > Error in XPath 2.0 expression Too many items" > > and the cursor stops at this line > select="substring-before($vCityStateZip, ',')"/> > My guess would be that the value of $vCityStateZip is a sequence containing more than one item, in which case it's a type error to use it as the first argument to substring-before(). Michael Kay http://www.saxonica.com/ Current Thread RE: [xsl] Error in XPath 2.0 expression Too many items, (continued) Florent Georges - Tue, 3 Jan 2006 13:03:57 +0100 (CET) andrew welch - Tue, 3 Jan 2006 12:12:51 +0000 Michael Kay - Tue, 3 Jan 2006 13:15:29 -0000 Message not available rob Jackson - Wed, 4 Jan 2006 16:47:10 +0530 Michael Kay - Tue, 3 Jan 2006 12:18:59 -0000<= <- PreviousIndexNext -> Re: [xsl] Error in XPath 2.0 expres, rob Jackson Thread [xsl] Restricting the scope of prec, Peter Flynn RE: [xsl] exclude-result-prefixes n, Michael Kay Date RE: [xsl] Error in XPath 2.0 expres, Michael Kay Month Keywords xpath XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with XML Editor
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XSLT2 Transformation failed up vote 0 down vote favorite https://www.oxygenxml.com/archives/xsl-list/200601/msg00039.html I have a problem in a part of a function that gives me the error XSLT2 Transformation failed: Error in XPath 2.0 expression (Too many items - fn:string) This is the code line that generates the error: And this is the entire area of that code. http://stackoverflow.com/questions/16276674/xslt2-transformation-failed And here is a graphical mapping screenshot. I hope anyone can help me. xml xsd mapping altova map-force share|improve this question asked Apr 29 '13 at 10:45 Perfection 772522 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Presumably this means that a KLCodeTable can have more than one codeType, meaning that the argument to string() contains several attribute nodes. If you wanted your predicate to evaluate to true if any of the codeTypes had the required value, just drop the call on string(), i.e. write [ns0:codeType/@name = 'IFTdep']. If you meant something else, then you'd better tell us what you meant... Incidentally, the fn: prefix is quite unnecessary on function calls in XSLT. By all means use it if your productivity is measured by the length of your code, but otherwise it's a waste of space. share|improve this answer answered Apr 29 '13 at 12:13 Michael Kay 78.6k44079 This is the contents of the KLCodeTable: i.imgur.com/SFgYso7.png I am also not quite sure if I understand what you mean. Yes, KLCodeTable contains more than one codeType, but that is why I filter for the name IFTdep. And the prefixse/code are automaticly
following error: Error in XPath 2.0 expression Too many items" and the https://www.mhonarc.org/archive/html/xsl-list/2006-01/msg00827.html cursor stops at this line https://www.ibm.com/developerworks/library/x-xsltmistakes/ select="substring-before($vCityStateZip, ',')"/> What's the type of '$vCityStateZip', and how do you define it? Is it a document node? --drkm ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs error in exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com --~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: --~-- [Morewiththissubject...] Error in XPath 2.0 expression Too many items, rob Jackson RE: error in xpath Error in XPath 2.0 expression Too many items, Florent Georges<= Re: Error in XPath 2.0 expression Too many items, andrew welch RE: Error in XPath 2.0 expression Too many items, Michael Kay Message not available Re: Error in XPath 2.0 expression Too many items, rob Jackson RE: Error in XPath 2.0 expression Too many items, Michael Kay PreviousbyDate: Re: exclude-result-prefixes not removing the xmlns attribute in the root element, Florent Georges NextbyDate: Re: Error in XPath 2.0 expression Too many items, andrew welch PreviousbyThread: Error in XPath 2.0 expression Too many items, rob Jackson NextbyThread: Re: Error in XPath 2.0 expression Too many items, andrew welch Indexes: [Date] [Thread] [Top] [AllLists]
about a specific product or take a course and get certified. So, what do you want to learn about? Choose a topic Featured topics Mobile development Big data Cognitive computing Cloud Featured destinations Swift @ IBM developerWorks Open Architecture center developerWorks Premium Develop Develop with our trials & downloads Start developing with product trials, free downloads, and IBM Bluemix™ services. Sort by topic or product name and find everything we have to offer. View all downloads & trials Featured products Bluemix Websphere Application Server DB2 Express C MobileFirst Platform Foundation Featured destinations Swift @ IBM developerWorks Open Architecture center API Explorer Connect Find a community and connect Learn from the experts and share with other developers in one of our dev centers. Ask questions and get answers with dW answers. Search for local events in your area. All in developerWorks communities. View communities Featured Developer Centers Jazz.net IBM Cloud Analytics DEV Bluemix API Explorer Featured destinations Swift @ IBM developerWorks Open Architecture center developerWorks Premium Career Concierge dW Open Architecture Center Swift @ IBM LearnXML ContentsIntroductionWorking with namespacesImproper use of node test text()Don't lose the context nodeAvoid broken links in non-Microsoft browsersSimplify stylesheets by changing the context nodeProcessing mixed contentIneffectiveness in your stylesheetsXSLT 1.0 or 2.0?ConclusionDownloadable resourcesRelated topicsComments Avoid common XSLT mistakesTrade in bad habits for great code Jirka KosekPublished on December 19, 2008 Writing code to handle XML transformations in XSLT is much easier than in any other commonly used programming language. But the XSLT language has such a different syntax and processing model from classical programming languages that it takes time to grasp all of XSLT's subtle nuances. This article is in no way meant as an extensive and complex XSLT tutorial. Instead, it starts with explanation of topics that pose the biggest difficulties for inexp