Loading TOC...

MarkLogic 9 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") 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.