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

Re: variable outside a for-each loop: second try

Subject: Re: variable outside a for-each loop: second try
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 20 Sep 2007 17:31:45 +0200
Re:  variable outside a for-each loop: second try
Mathieu Malaterre wrote:

If I copy paste it I am getting:


Error at xsl:value-of on line 21 of file:/tmp/dummy.xsl:
 Required type of second operand of '/' is node(); supplied value has
type xs:string
Transformation failed: Failed to compile stylesheet. 1 error detected.

Where line 21 is:

<xsl:value-of select="../preceding-sibling::row/entry[position() eq
$position][1]/normalize-space(string-join(para,' '))" />

What does this mean ?

It means that line that the compiler is pointing you at is not the line where the error occurs, because the line that you show here does not have a string as the left-hand side of the / operator.


Oh, sorry. I see now: this error seems to come from an XSLT 1.0 processor. But you are using string-join in your original post. Which is a Xpath 2.0 function. What processor are you using? Or do you operate in backward compatibility mode?

-- Abel Braaksma

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.