<!--
Process non‐template elements.
By default, just copy the element, but remove any `@data-shrine-*` attribuets or `@slot` attributes with a value that begins with `shrine-`.
<!--
Process non‐template elements.
By default, just copy the element, but remove any `@data-shrine-*` attribuets or `@slot` attributes with a value that begins with `shrine-`.
This copies over `@lang` and non‐shrine `@data-*` attributes from the root node.
-->
<xslt:template match="html:html" mode="template">
This copies over `@lang` and non‐shrine `@data-*` attributes from the root node.
-->
<xslt:template match="html:html" mode="template">
This inserts appropriate metadata based on the document.
-->
<xslt:template match="html:head" mode="template">
This inserts appropriate metadata based on the document.
-->
<xslt:template match="html:head" mode="template">
<xslt:if test="not(exslt:node-set($source)//html:title[@slot='shrine-head'])">
<xslt:text>
</xslt:text>
<title>
<xslt:if test="not(exslt:node-set($source)//html:title[@slot='shrine-head'])">
<xslt:text>
</xslt:text>
<title>