qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] Error message in function definition


From: Carol Romanowski
Subject: [Qexo-general] Error message in function definition
Date: Fri, 09 May 2003 20:56:03 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1

Hello --

I am trying out the use cases and got this error for the Q6 test.
nestedlist.xql:1:67: node test when focus is undefined
nestedlist.xql:1:67: missing '}'
nestedlist.xql:1:78: missing expression
nestedlist.xql:1:78: missing ')' - saw  @:78
nestedlist.xql:10:1: missing ')' - saw  @:1

The XQuery code is

define function section-summary($book-or-section as element())
 as element()*
{
 for $section in $book-or-section/section
 return
   <section>
      { $section/@* }
{ $section/title } <figcount> { count($section/figure) } </figcount> { section-summary($section) } </section>
}

<toc>
 {
   for $s in document("book.xml")/book/section
   return section-summary($s)
 }
</toc>

What's the problem?

Carol

--
Carol J Romanowski
Department of Industrial Engineering
415 Bell Hall
(716) 645-2357 ext. 2106
address@hidden
www.eng.buffalo.edu/~cfr







reply via email to

[Prev in Thread] Current Thread [Next in Thread]