Note that there are some explanatory texts on larger screens.

plurals
  1. POXPATH Axes - Issues
    primarykey
    data
    text
    <p>XML structure:</p> <pre><code>&lt;units&gt; &lt;unit&gt; &lt;lesson&gt; &lt;name&gt;Sample 1&lt;/name&gt; &lt;sections&gt; &lt;section type="IN"&gt; &lt;title&gt; Sample Title 1 &lt;/title&gt; &lt;/section&gt; &lt;/sections&gt; &lt;/lesson&gt; &lt;lesson&gt; &lt;name&gt;Sample 2&lt;/name&gt; &lt;sections&gt; &lt;section type="OF"&gt; &lt;title&gt; Sample Title 2 &lt;/title&gt; &lt;/section&gt; &lt;/sections&gt; &lt;/lesson&gt; &lt;lesson&gt; &lt;name&gt;Sample 3&lt;/name&gt; &lt;sections&gt; &lt;section type="IN"&gt; &lt;title&gt; Sample Title 3&lt;/title&gt; &lt;/section&gt; &lt;/sections&gt; &lt;/lesson&gt; &lt;lesson&gt; &lt;name&gt;Sample 4&lt;/name&gt; &lt;sections&gt; &lt;section type="AS"&gt; &lt;title&gt; Sample Title 4&lt;/title&gt; &lt;/section&gt; &lt;/sections&gt; &lt;/lesson&gt; &lt;lesson&gt; &lt;name&gt;Sample 5&lt;/name&gt; &lt;sections&gt; &lt;section type="IN"&gt; &lt;title&gt; Sample Title 5&lt;/title&gt; &lt;/section&gt; &lt;/sections&gt; &lt;/lesson&gt; &lt;/unit&gt; &lt;/units&gt; </code></pre> <p>My requirement is to get the values of title element and display as follows (Grouping similar data and display)</p> <pre><code>IN: Sample Title 1 Sample Title 3 Sample Title 5 OF: Sample Title 2 AS: Sample Title 5 </code></pre> <p>I have used following-sibling option to get the expected output. Since the XML structure is huge(I have pasted only the snippet), I cannot hard-code the path using ../../ and all in XSLT. Please help me in getting the expected output.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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