[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Error in XPath 2.0 expression Too many items

Subject: RE: Error in XPath 2.0 expression Too many items
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 3 Jan 2006 12:18:59 -0000
RE:  Error in XPath 2.0 expression Too many items
> 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
> <xsl:variable name="city" 
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.