Subject: Re: [xsl] Error in XPath 2.0 expression Too many items From: rob Jackson <robjackson2002@xxxxxxxxx> Date: Wed, 4 Jan 2006 16:47:10 +0530 |
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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Error in XPath 2.0 expres, Michael Kay | Thread | RE: [xsl] Error in XPath 2.0 expres, Michael Kay |
Re: [xsl] Restricting the scope of , Geert Josten | Date | [xsl] How to transform source xml t, rob Jackson |
Month |