|
[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
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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








