xml version="1.0" encoding="utf-8"
<xslstylesheet version="3.0"
xmlnsxsl="http://www.w3.org/1999/XSL/Transform"
xmlnsfo="http://www.w3.org/1999/XSL/Format"
xmlnshtml="http://www.w3.org/1999/xhtml"
xmlnsfn="http://www.w3.org/2005/xpath-functions"
xmlnsxs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="html">
<xslparam name="loglevel" select='info' as="xs:string"/>
<xslimport href="/home/michael/prog/html2Pdf.xsl" />
<xsltemplate match="html:blockquote/html:p[matches(string(), '^EXAMPLE:?.*"')]">
<xslif test="$loglevel='debug'">
<xslmessage select="$loglevel">[DEBUG] handling example </xslmessage>
</xslif>
<foblock margin="0.5em 2em 0.5em 2em" wrap-option="wrap">
<xslvalue-of select="fn:substring-before(string(), '"')"/>
<foinline background-color="#d0d0ff" white-space-collapse="false"
linefeed-treatment="preserve" white-space-treatment="preserve" wrap-option="wrap"
font-family="AnonymousPro" font-size="0.9em">
<xslvalue-of select="concat('"', fn:substring-after(string(), '"'))"/>
</foinline>
</foblock>
</xsltemplate>
<xsltemplate match="html:blockquote">
<foblock margin-left="2em" keep-togetherwithin-page="always" keep-with-previouswithin-page="always">
<xslapply-templates/>
</foblock>
</xsltemplate>
</xslstylesheet>