Closed grtjn closed 6 years ago
https://github.com/marklogic-community/slush-marklogic-node/blob/master/app/templates/rest-api/transforms/indent.xsl
Should not use apply-templates select="." (only ever do that with an explicit mode!). Solution: drop the select=".".
Determining content-type fails if db uri has no extension by the way. Optimize for that too.. (see also download.xsl, and utilities.xqy)
https://github.com/marklogic-community/slush-marklogic-node/blob/master/app/templates/rest-api/transforms/indent.xsl
Should not use apply-templates select="." (only ever do that with an explicit mode!). Solution: drop the select=".".
Determining content-type fails if db uri has no extension by the way. Optimize for that too.. (see also download.xsl, and utilities.xqy)