marklogic-community / slush-marklogic-node

Slush generator for a MarkLogic/node project
https://github.com/marklogic-community/slush-marklogic-node/wiki
Other
40 stars 28 forks source link

Stack overflow in indent.xsl #528

Closed grtjn closed 6 years ago

grtjn commented 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)