Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - Re: [xsl] Error in XPath 2.0 expression Too many items [Thread Next] Re: [xsl] Error in XPath 2.0 expression Too many itemsTo: Date: 1/4/2006 11:17:00 AM Thanks everybody. My problem is resolved now. Cheers Rob On 1/3/06, Michael Kay <mike@xxxxxxxxxxxx> wrote: > > > > Just to speculate some more, I guess you have something like this: > > > > <xsl:variable name="vCityStateZip"> > > <xsl:value-of select="city"/> > > <xsl:value-of select="state"/> > > <xsl:value-of select="zip"/> > > </xsl:variable> > > > > and you really want: > > > > <xsl:variable name="vCityStateZip" as="xs:string"> > > <xsl:value-of> > > <xsl:value-of select="city"/> > > <xsl:value-of select="state"/> > > <xsl:value-of select="zip"/> > > </xsl:value-of> > > </xsl:variable> > > > > The former is sequence of several items, the latter is a > > sequence of one item. > > Actually, the former is a single item: a document node. An xsl:variable with > child instructions and no "as" attribute always produces a document node. > > But IIRC there were reports that an early version of the Altova XSLT 2.0 > processor got this wrong. > > Michael Kay > http://www.saxonica.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
