<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Wyatt's Blogexistdb</title>
    <link>http://blog.wylovan.com/pebble/wyatt/tags/existdb/</link>
    <description>Technical Ramblings</description>
    <language>en</language>
    <copyright>Wyatt VanderStucken</copyright>
    <pubDate>Tue, 27 Oct 2026 18:04:00 GMT</pubDate>
    <dc:creator>Wyatt VanderStucken</dc:creator>
    <dc:date>2026-10-27T18:04:00Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Wyatt VanderStucken</dc:rights>
    <image>
      <title>Wyatt's Blogexistdb</title>
      <url>http://blog.wylovan.com/pebble/wyatt/tags/existdb/</url>
    </image>
    <item>
      <title>Running XQSuite Tests as a Main Module</title>
      <link>http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html</link>
      <content:encoded>&lt;pre class="language-xquery"&gt;&lt;code&gt;xquery version "3.1";
import module namespace test="http://exist-db.org/xquery/xqsuite" at "resource:org/exist/xquery/lib/xqsuite/xqsuite.xql";

declare namespace inspect = "http://exist-db.org/xquery/inspection";
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
declare option output:indent "yes";

declare variable $local:XML := document {
    &amp;lt;doc&amp;gt;&amp;lt;div n="outer"&amp;gt;&amp;lt;head&amp;gt;x&amp;lt;/head&amp;gt;&amp;lt;div n="inner"&amp;gt;&amp;lt;head&amp;gt;x&amp;lt;/head&amp;gt;&amp;lt;p&amp;gt;y&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/doc&amp;gt;
};
declare variable $local:COLL := "/db/test-nested-predicate";

declare %test:setUp function local:setup() {
    xmldb:create-collection("/db", "test-nested-predicate"),
    xmldb:store($local:COLL, "test.xml", $local:XML)
};
declare %test:tearDown function local:tearDown() {
    if (xmldb:collection-available($local:COLL)) then xmldb:remove($local:COLL) else ()
};
declare %test:assertEquals("outer", "inner") function local:in-memory() {
    $local:XML//div[.//p[. = "y"]] ! string(@n)
};
declare %test:assertEquals("outer", "inner") function local:stored() {
    doc($local:COLL || "/test.xml")//div[.//p[. = "y"]] ! string(@n)
};

test:suite(inspect:module-functions())&lt;/code&gt;&lt;/pre&gt;&lt;div class="tags"&gt;&lt;span&gt;Social Bookmarks : &lt;/span&gt;&amp;nbsp;&lt;a href="http://slashdot.org/bookmark.pl?url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Slash Dot"&gt;&lt;img src="common/images/slashdot.png" alt="Add this post to Slashdot" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://digg.com/submit?url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Digg this post"&gt;&lt;img src="common/images/digg.png" alt="Add this post to Digg" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://reddit.com/submit?url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Reddit"&gt;&lt;img src="common/images/reddit.png" alt="Add this post to Reddit" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://del.icio.us/post?url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Save this post to Del.icio.us"&gt;&lt;img src="common/images/delicious.png" alt="Add this post to Delicious" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://www.stumbleupon.com/submit?url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Stumble this post"&gt;&lt;img src="common/images/stumbleupon.png" alt="Add this post to Stumble it" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Google"&gt;&lt;img src="common/images/google.png" alt="Add this post to Google" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://technorati.com/faves?add=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html" target="_blank" title="Add this post to Technorati"&gt;&lt;img src="common/images/technorati.png" alt="Add this post to Technorati" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://www.bloglines.com/sub/http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html" target="_blank" title="Add this post to Bloglines"&gt;&lt;img src="common/images/bloglines.png" alt="Add this post to Bloglines" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://www.facebook.com/share.php?u=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html" target="_blank" title="Add this post to Facebook"&gt;&lt;img src="common/images/facebook.png" alt="Add this post to Facebook" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://www.furl.net/storeIt.jsp?u=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;t=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Furl"&gt;&lt;img src="common/images/furl.png" alt="Add this post to Furl" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;amp;url=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;title=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Windows Live"&gt;&lt;img src="common/images/windowslive.png" alt="Add this post to Windows Live" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;amp;u=http://blog.wylovan.com/pebble/wyatt/2026/10/27/1793124240000.html&amp;amp;t=Running+XQSuite+Tests+as+a+Main+Module" target="_blank" title="Add this post to Yahoo!"&gt;&lt;img src="common/images/yahoo.png" alt="Add this post to Yahoo!" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://blog.wylovan.com/pebble/wyatt/entryToPDF.action?entry=1793124240000" title="Export Running XQSuite Tests as a Main Module -  as PDF document"&gt;&lt;img src="common/images/pdf_logo.gif" alt="Export this post as PDF document" align="bottom" border="0" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;Export this post to PDF document&lt;/p&gt;</content:encoded>
      <category domain="http://blog.wylovan.com/pebble/wyatt/tags/existdb/">existdb</category>
      <category domain="http://blog.wylovan.com/pebble/wyatt/tags/xquery/">xquery</category>
      <pubDate>Tue, 27 Oct 2026 18:04:00 GMT</pubDate>
      <guid isPermaLink="false">tag:blog.wylovan.com,2026-10-27:wyatt/1793124240000</guid>
      <dc:date>2026-10-27T18:04:00Z</dc:date>
    </item>
  </channel>
</rss>

