css:get( $doc as xs:string ) as xs:string
Fetch the CSS for the given document, be it embedded or linked. Limitation: doesn't account for @import directives in the CSS; assumes the linked CSS is in the database.
Parameters | |
---|---|
doc | The name of the parent document. |
xquery version "1.0-ml"; import module namespace css = "http://marklogic.com/cpf/css" at "/MarkLogic/conversion/css.xqy"; css:get("http://example.com/mydoc.xhtml")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.