From: Torsten S. <sch...@ha...> - 2010-05-31 16:53:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have (embedded in some html) this code which I cannot get working: { for $hit in collection("/db/mss")//tei:msItem/tei:title[ft:query(., $q)] let $expanded := kwic:expand($hit) order by ft:score($hit) descending return kwic:get-summary($expanded, ($expanded//exist:match)[1], <config width="40"/>) } but only receive this error: Type error in expression: required node name is config; got: config XQuery Stack Trace kwic:get-summary(node(), element(), element()) 58:21 Can someone see the problem here? Thanks, best, Torsten - -- Torsten Schassan Digitale Editionen Abteilung Handschriften, Inkunabeln und Sondersammlungen Herzog August Bibliothek, Postfach 1364, D-38299 Wolfenbuettel Tel.: +49-5331-808-130 (Fax -165), schassan {at} hab.de http://www.hab.de/forschung/projekte/europeana-regia.htm http://www.hab.de/forschung/projekte/weiss64.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMA+HAq4nZEP2KS4QRAqTLAKCEl7sKBYwTBWtXmh+E8t0YPI1WXwCeNVqp XCJAqUN4tSI950yUNm6jaD0= =fPyu -----END PGP SIGNATURE----- |