Loading rxq/toc.xqm +4 −4 Changes for rxq/toc.xqm: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -68,15 +68,15 @@ declare function max.toc:buildDefaultDocumentTOC($project, $docPath){ let $idPointer := $chapter/@xml:id return <li id="{$idPointer}"> <a href="{concat(max.config:getBaseURI(),$doc,'/',$idPointer)}">{$title}</a> {max.toc:subTOC($chapter, $docPath)} <a href="{concat(max.config:getBaseURI(),$project,'/', $docPath,'/',$idPointer)}">{$title}</a> {max.toc:subTOC($chapter, $project, $docPath)} </li> } </ul> </div> }; declare %private function max.toc:subTOC($chapter, $doc){ declare %private function max.toc:subTOC($chapter, $project, $docPath){ <ul>{ for $subChapter in $chapter/*:div[@*:id] return Loading @@ -84,7 +84,7 @@ declare %private function max.toc:subTOC($chapter, $doc){ let $idPointer := $subChapter/@xml:id return <li id="{$idPointer}"> <a href="{concat(max.config:getBaseURI(),$doc,'/',$idPointer)}">{$title}</a> <a href="{concat(max.config:getBaseURI(),$project,'/', $docPath,'/',$idPointer)}">{$title}</a> </li> } </ul> Loading Loading
rxq/toc.xqm +4 −4 Changes for rxq/toc.xqm: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -68,15 +68,15 @@ declare function max.toc:buildDefaultDocumentTOC($project, $docPath){ let $idPointer := $chapter/@xml:id return <li id="{$idPointer}"> <a href="{concat(max.config:getBaseURI(),$doc,'/',$idPointer)}">{$title}</a> {max.toc:subTOC($chapter, $docPath)} <a href="{concat(max.config:getBaseURI(),$project,'/', $docPath,'/',$idPointer)}">{$title}</a> {max.toc:subTOC($chapter, $project, $docPath)} </li> } </ul> </div> }; declare %private function max.toc:subTOC($chapter, $doc){ declare %private function max.toc:subTOC($chapter, $project, $docPath){ <ul>{ for $subChapter in $chapter/*:div[@*:id] return Loading @@ -84,7 +84,7 @@ declare %private function max.toc:subTOC($chapter, $doc){ let $idPointer := $subChapter/@xml:id return <li id="{$idPointer}"> <a href="{concat(max.config:getBaseURI(),$doc,'/',$idPointer)}">{$title}</a> <a href="{concat(max.config:getBaseURI(),$project,'/', $docPath,'/',$idPointer)}">{$title}</a> </li> } </ul> Loading