diff --git a/add/data/xql/getRendering.xql b/add/data/xql/getRendering.xql deleted file mode 100644 index 3455712d7..000000000 --- a/add/data/xql/getRendering.xql +++ /dev/null @@ -1,69 +0,0 @@ -xquery version "3.1"; -(: - : For LICENSE-Details please refer to the LICENSE file in the root directory of this repository. - :) - -(: NAMESPACE DECLARATIONS ================================================== :) - -declare namespace mei = "http://www.music-encoding.org/ns/mei"; -declare namespace request = "http://exist-db.org/xquery/request"; -declare namespace system = "http://exist-db.org/xquery/system"; -declare namespace transform = "http://exist-db.org/xquery/transform"; -declare namespace xmldb = "http://exist-db.org/xquery/xmldb"; - -(: OPTION DECLARATIONS ===================================================== :) - -declare option exist:serialize "method=xhtml media-type=text/html omit-xml-declaration=yes indent=yes"; - -(: QUERY BODY ============================================================== :) - -let $uri := request:get-parameter('uri', '') -let $movementId := request:get-parameter('movementId', '') -let $stripStaves := request:get-parameter('stripStaves', '') -let $showStaff := request:get-parameter('showStaff', '') -let $firstMeasure := request:get-parameter('firstMeasure', '') -let $lastMeasure := request:get-parameter('lastMeasure', '') - - -let $docUri := - if (contains($uri, '#')) then - (substring-before($uri, '#')) - else - ($uri) - -let $doc := doc($docUri) - -return - - let $base := concat('file:', system:get-module-load-path(), '/../xslt/svgRend3/') - (:let $base := concat('xmldb:exist:///','db/functions/svgRend/'):) - - let $mdiv2show := $movementId - let $outputStep := 'svg' - - let $svg := transform:transform($doc, concat($base, 'mei2svg.xsl'), - - - - - - - - - - ) - - (:let $svg := transform:transform($svg, concat($base, 'svgCleaner.xsl'),):) - - (:let $mdiv := transform:transform($doc, concat($base, 'reduceToMdiv.xsl'), ) - - let $addedIDs := transform:transform($mdiv, concat($base, 'preprocessor/add-ids.xsl'), ) - let $canonicalized := transform:transform($addedIDs, concat($base, 'preprocessor/canonicalize.xsl'), ) - let $addedDurs := transform:transform($canonicalized, concat($base, 'preprocessor/addDurations.xsl'), ) - let $synced := transform:transform($addedDurs, concat($base, 'preprocessor/addSynchronicity.xsl'), ) - let $musx := transform:transform($synced, concat($base, 'mei2musx/mei2musx.xsl'), ) - let $svg := transform:transform($musx, concat($base, 'musx2svg/musx2svg.xsl'), ):) - - - return - $svg