css:convert( $css as xs:string, $options as element()? ) as element(css:styles)?
Convert CSS text to an equivalent XML representation that is more suitable for analysis.
xquery version "1.0-ml"; import module namespace css = "http://marklogic.com/cpf/css" at "/MarkLogic/conversion/css.xqy"; css:convert( 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.