PREFIX fun: <http://w3id.org/sparql-generate/fn/>
BASE <https://saref.etsi.org/documentation/>

BASE <https://saref.etsi.org/documentation/>

TEMPLATE <templates/toc.rqg>( ?lang, ?entity ) {
  before = "\n<ul class='hlist'>" ;
  BOX { "\n<li>"
    TEMPLATE {
      <function/hrefTitle.rqg>(fun:prefixedIRI(?entity),?langLabel)
    } ITERATOR <select/label.rqg>(?entity, ?lang) AS ?langLabel . 
  "</li>" }
  ; after = "\n</ul>"
}