Note that there are some explanatory texts on larger screens.

plurals
  1. POAn island and bridges graph
    text
    copied!<pre><code>&lt;networkOfBridges&gt; &lt;bridge id="1" otherside="island A" /&gt; &lt;bridge id="2" oneside="island A" /&gt; &lt;bridge id="3" oneside="island A" otherside="island A" /&gt; &lt;bridge id="4" oneside="island A" otherside="island A" /&gt; &lt;bridge id="5" oneside="island A" otherside="island A" /&gt; &lt;bridge id="6" otherside="island B" /&gt; &lt;bridge id="7" oneside="island B" /&gt; &lt;bridge id="8" oneside="island B" otherside="island B" /&gt; &lt;bridge id="9" oneside="island B" otherside="island B" /&gt; &lt;bridge id="10" oneside="island B" otherside="island C" /&gt; &lt;bridge id="11" oneside="island C" /&gt; &lt;bridge id="12" oneside="island C" otherside="island C" /&gt; &lt;bridge id="13" oneside="island C" otherside="island C" /&gt; &lt;bridge id="14" oneside="island C" otherside="island D" /&gt; &lt;bridge id="15" otherside="island D" /&gt; &lt;bridge id="16" oneside="island D" otherside="island D" /&gt; &lt;bridge id="17" oneside="island D" /&gt; &lt;bridge id="18" oneside="island D" otherside="island D" /&gt; &lt;bridge id="19" otherside="island D" /&gt; &lt;/networkOfBridges&gt; </code></pre> <p>Some bridges connect two islands (Bridge 10 connects islands B and C).</p> <p>Some bridges connect parts of the same island. (Bridge 3 stays on island A.)</p> <p>Some bridges go nowhere. (Bridge 1.)</p> <p>Using XSLT 1.0, I need to iterate through nodesets, each nodeset having the interconnected bridges.</p> <p>The first node set would have <code>&lt;bridge 1 /&gt; &lt;bridge 2 /&gt; . . . &lt;bridge 5 /&gt;</code> . Those bridges serve only island A. There is no way to get off island A.</p> <p>The second node set would have <code>&lt;bridge 6 /&gt; &lt;bridge 7 /&gt; . . . &lt;bridge 19 /&gt;</code>. These bridges connect island B, C, and D. Travelers can get between these islands but not to island A.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload