- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 16 Apr 2009 13:54:37 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6802 --- Comment #2 from Christian Gruen <christian.gruen@gmail.com> 2009-04-16 13:54:37 --- Dear Pat, some quick comments to [9] and [10].. [9] full-text-composability-queries-results-q5.xq My parser still seems to complain about the new version; the following return statement might do its job: ---------------------- return <book number="{$book/@number}">{ ($title, if (count($book/metadata/author) > 0) then ($book/metadata/author, $in, $pin) else ($book/metadata/publicationInfo/publisher, $in, $pin)) }</book> ---------------------- This an equivalent version, which is a little bit shorter: return <book number="{$book/@number}">{ ($title, if ($book/metadata/author) then $book/metadata/author else $book/metadata/publicationInfo/publisher, $in, $pin) }</book> ---------------------- [10] xquery-xpath-composability-queries-results-q9.xq Sorry, I didn't write too much on this. "./part/chapter" is grammatically correct, but no context item is defined at this point, leading to an XPDY0002 error. This is why I suggested to replace "." with "$cont". Thanks! Christian -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Thursday, 16 April 2009 13:54:47 UTC