css:convert(
$css as xs:string,
$options as element()?
) as element(css:styles)?
Summary
Convert CSS text to an equivalent XML representation that is more suitable
for analysis.
Parameters
css
The CSS text itself.
options
Options for the conversion. The following options are defined:
"html-style", the name of the CSS class on the "html" element;
"body-style", the name of the CSS class on the "body" element.
These style names are used to improve weighting heuristics.
The options are in the "css:convert" namespace.
Example
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.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.