Parameter

$inspector-expand-depth (default: 1)

match*mode: inspector
parameter$expand-depth=$inspector-expand-depth
$depthcount(ancestor::*)
$color-index$depth mod 6
$border-color
when$color-index = 0
when$color-index = 1
when$color-index = 2
when$color-index = 3
when$color-index = 4
when$color-index = 5
$attr-rtf
for each@*
$attrsexsl:node-set($attr-rtf)/attr
$should-open$depth < $expand-depth
if$should-open
openopen
span text-gray-900dark:text-gray-100tracking-tighterfont-medium
name()
if$attrs
div flexflex-wrapgap-2
for each$attrs
sorted by@name
span space-x-2
span tracking-tightertext-gray-600dark:text-gray-400
@name
span text-blue-600dark:text-blue-400font-mono
@value
div pl-2
iftext()[normalize-space()]
div text-gray-900dark:text-gray-100px-1leading-tightpy-0.5font-serif
normalize-space(text())
if*
div py-1flexflex-colgap-2justify-between
apply* | comment()in mode inspector
with$expand-depth=$expand-depth
matchtext()mode: inspector
matchcomment()mode: inspector
ifnormalize-space(.) != ''
div px-2pt-2
span font-seriftext-gray-700dark:text-gray-300text-lg
.
matchprocessing-instruction()mode: inspector
ifnormalize-space(.) != '' or normalize-space(name()) != ''
div bg-gray-200dark:bg-gray-700roundedpx-2py-1mb-1
span text-purple-700dark:text-purple-300text-xsfont-mono
<?
name() .
?>
match@*mode: inspector