MarkLogic 10 Product Documentation
css:get

css:get(
   $doc as xs:string
) as xs:string

Summary

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.

Example

  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") 
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy