|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
|
|
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:lc="http://xoev.de/latinchars"
|
|
xpath-default-namespace="http://xoev.de/latinchars" exclude-result-prefixes="xs math xd"
|
|
version="3.0">
|
|
<xd:doc scope="stylesheet">
|
|
<xd:desc>
|
|
<xd:p><xd:b>Created on:</xd:b> Jan 28, 2020</xd:p>
|
|
<xd:p><xd:b>Author:</xd:b> Frank.Steimke</xd:p>
|
|
<xd:p/>
|
|
</xd:desc>
|
|
</xd:doc>
|
|
|
|
<xsl:include href="ucd.xsl"/>
|
|
<xsl:import-schema namespace="http://xoev.de/latinchars" schema-location="latinchars.xsd"/>
|
|
<xsl:output method="xml" indent="yes"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:variable name="nfd-base-1" as="element(base)*" select="$characterSet//extension/nfd/base"/>
|
|
<xsl:variable name="nfd-base-2" as="element(base)*" select="$characterSet//nfd/base"/>
|
|
<bug-4446>
|
|
<constraint>
|
|
<xsl:text>for everey extension $e exists ($e/nfd/base): </xsl:text>
|
|
<xsl:if
|
|
test="
|
|
every $e in $characterSet//extension
|
|
satisfies exists($e/nfd/base)">
|
|
<xsl:text>CHECKED ✓</xsl:text>
|
|
</xsl:if>
|
|
</constraint>
|
|
|
|
<report heading="$characterSet//extension/nfd/base">
|
|
<entry count="{count($characterSet//element(*, Entry))}"/>
|
|
<extension count="{count($characterSet//extension/nfd)}"/>
|
|
<nfd count="{count($characterSet//nfd)}"/>
|
|
<base count="{count($nfd-base-1)}">
|
|
<first-element-parent>
|
|
<xsl:sequence select="$nfd-base-1[1]/.."/>
|
|
</first-element-parent>
|
|
</base>
|
|
</report>
|
|
<report heading="$characterSet//nfd/base">
|
|
<entry count="{count($characterSet//element(*, Entry))}"/>
|
|
<extension count="{count($characterSet//extension/nfd)}"/>
|
|
<nfd count="{count($characterSet//nfd)}"/>
|
|
<base count="{count($nfd-base-2)}">
|
|
<first-element-parent>
|
|
<xsl:sequence select="$nfd-base-2[1]/.."/>
|
|
</first-element-parent>
|
|
</base>
|
|
</report>
|
|
</bug-4446>
|
|
</xsl:template>
|
|
|
|
|
|
</xsl:stylesheet>
|