a.binder 7 سال پیش
والد
کامیت
7e5db124ae
15فایلهای تغییر یافته به همراه2844 افزوده شده و 2 حذف شده
  1. 239 0
      SE/schema/ant-tool/SyncResourcesYed/graphml.xsd
  2. 1028 0
      SE/schema/ant-tool/SyncResourcesYed/ygraphml.xsd
  3. 83 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.body.xsl
  4. 129 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.fields.xsl
  5. 61 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.info.xsl
  6. 360 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.records.xsl
  7. 118 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.xsl
  8. 194 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.xsl
  9. 92 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_operational_raport_note.xsl
  10. 1 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl
  11. 231 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_VALIDATE/default_db__x3A__BI_audit_VALIDATE.BI_audit_VALIDATE.xsl
  12. 20 0
      SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.element.xsl
  13. 235 0
      SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.files.xsl
  14. 13 2
      SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.xsl
  15. 40 0
      SE/schema/default_db_xml_cache.public/default_db/www.opengis.net.wfs.xsl

+ 239 - 0
SE/schema/ant-tool/SyncResourcesYed/graphml.xsd

@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.yworks.com/xml/graphml" xmlns:xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <xs:import namespace="http://graphml.graphdrawing.org/xmlns" schemaLocation="xmlns.xsd"/>
+  <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
+  
+  <xs:element name="GenericEdge">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Path"/>
+        <xs:element ref="y:LineStyle"/>
+        <xs:element ref="y:Arrows"/>
+      </xs:sequence>
+      <xs:attribute name="configuration" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="GenericNode">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Geometry"/>
+        <xs:element ref="y:Fill"/>
+        <xs:element ref="y:BorderStyle"/>
+        <xs:element ref="y:NodeLabel"/>
+      </xs:sequence>
+      <xs:attribute name="configuration" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="PolyLineEdge">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Path"/>
+        <xs:element ref="y:LineStyle"/>
+        <xs:element ref="y:Arrows"/>
+        <xs:element ref="y:BendStyle"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="BendStyle">
+    <xs:complexType>
+      <xs:attribute name="smoothed" use="required" type="xs:boolean"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="ProxyAutoBoundsNode">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Realizers"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Realizers">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element maxOccurs="unbounded" ref="y:GroupNode"/>
+        <xs:element maxOccurs="unbounded" ref="y:GenericGroupNode"/>
+      </xs:choice>
+      <xs:attribute name="active" use="required" type="xs:integer"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="GroupNode">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Geometry"/>
+        <xs:element ref="y:Fill"/>
+        <xs:element ref="y:BorderStyle"/>
+        <xs:element ref="y:NodeLabel"/>
+        <xs:element ref="y:Shape"/>
+        <xs:element ref="y:State"/>
+        <xs:element ref="y:Insets"/>
+        <xs:element ref="y:BorderInsets"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Shape">
+    <xs:complexType>
+      <xs:attribute name="type" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="GenericGroupNode">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:Geometry"/>
+        <xs:element ref="y:Fill"/>
+        <xs:element ref="y:BorderStyle"/>
+        <xs:element ref="y:NodeLabel"/>
+        <xs:element ref="y:State"/>
+        <xs:element ref="y:Insets"/>
+        <xs:element ref="y:BorderInsets"/>
+      </xs:sequence>
+      <xs:attribute name="configuration" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Resources">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="Geometry">
+    <xs:complexType>
+      <xs:attribute name="height" use="required" type="xs:decimal"/>
+      <xs:attribute name="width" use="required" type="xs:decimal"/>
+      <xs:attribute name="x" use="required" type="xs:decimal"/>
+      <xs:attribute name="y" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Fill">
+    <xs:complexType>
+      <xs:attribute name="color" use="required"/>
+      <xs:attribute name="color2"/>
+      <xs:attribute name="transparent" use="required" type="xs:boolean"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="BorderStyle">
+    <xs:complexType>
+      <xs:attribute name="color"/>
+      <xs:attribute name="hasColor" type="xs:boolean"/>
+      <xs:attribute name="type" use="required" type="xs:NCName"/>
+      <xs:attribute name="width" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="NodeLabel">
+    <xs:complexType mixed="true">
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="y:LabelModel"/>
+        <xs:element ref="y:ModelParameter"/>
+      </xs:choice>
+      <xs:attribute name="alignment" use="required" type="xs:NCName"/>
+      <xs:attribute name="autoSizePolicy" use="required" type="xs:NCName"/>
+      <xs:attribute name="backgroundColor"/>
+      <xs:attribute name="borderDistance" type="xs:decimal"/>
+      <xs:attribute name="fontFamily" use="required" type="xs:NCName"/>
+      <xs:attribute name="fontSize" use="required" type="xs:integer"/>
+      <xs:attribute name="fontStyle" use="required" type="xs:NCName"/>
+      <xs:attribute name="hasBackgroundColor" type="xs:boolean"/>
+      <xs:attribute name="hasLineColor" use="required" type="xs:boolean"/>
+      <xs:attribute name="height" use="required" type="xs:decimal"/>
+      <xs:attribute name="horizontalTextPosition" use="required" type="xs:NCName"/>
+      <xs:attribute name="iconTextGap" use="required" type="xs:integer"/>
+      <xs:attribute name="modelName" use="required" type="xs:NCName"/>
+      <xs:attribute name="modelPosition" type="xs:NCName"/>
+      <xs:attribute name="textColor" use="required"/>
+      <xs:attribute name="verticalTextPosition" use="required" type="xs:NCName"/>
+      <xs:attribute name="visible" use="required" type="xs:boolean"/>
+      <xs:attribute name="width" use="required" type="xs:decimal"/>
+      <xs:attribute name="x" use="required" type="xs:decimal"/>
+      <xs:attribute name="y" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="LabelModel">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:SmartNodeLabelModel"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="SmartNodeLabelModel">
+    <xs:complexType>
+      <xs:attribute name="distance" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="ModelParameter">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="y:SmartNodeLabelModelParameter"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="SmartNodeLabelModelParameter">
+    <xs:complexType>
+      <xs:attribute name="labelRatioX" use="required" type="xs:decimal"/>
+      <xs:attribute name="labelRatioY" use="required" type="xs:decimal"/>
+      <xs:attribute name="nodeRatioX" use="required" type="xs:decimal"/>
+      <xs:attribute name="nodeRatioY" use="required" type="xs:decimal"/>
+      <xs:attribute name="offsetX" use="required" type="xs:decimal"/>
+      <xs:attribute name="offsetY" use="required" type="xs:decimal"/>
+      <xs:attribute name="upX" use="required" type="xs:decimal"/>
+      <xs:attribute name="upY" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="State">
+    <xs:complexType>
+      <xs:attribute name="autoResize" type="xs:boolean"/>
+      <xs:attribute name="closed" use="required" type="xs:boolean"/>
+      <xs:attribute name="closedHeight" use="required" type="xs:decimal"/>
+      <xs:attribute name="closedWidth" use="required" type="xs:decimal"/>
+      <xs:attribute name="innerGraphDisplayEnabled" type="xs:boolean"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Insets">
+    <xs:complexType>
+      <xs:attribute name="bottom" use="required" type="xs:integer"/>
+      <xs:attribute name="bottomF" use="required" type="xs:decimal"/>
+      <xs:attribute name="left" use="required" type="xs:integer"/>
+      <xs:attribute name="leftF" use="required" type="xs:decimal"/>
+      <xs:attribute name="right" use="required" type="xs:integer"/>
+      <xs:attribute name="rightF" use="required" type="xs:decimal"/>
+      <xs:attribute name="top" use="required" type="xs:integer"/>
+      <xs:attribute name="topF" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="BorderInsets">
+    <xs:complexType>
+      <xs:attribute name="bottom" use="required" type="xs:integer"/>
+      <xs:attribute name="bottomF" use="required" type="xs:double"/>
+      <xs:attribute name="left" use="required" type="xs:integer"/>
+      <xs:attribute name="leftF" use="required" type="xs:decimal"/>
+      <xs:attribute name="right" use="required" type="xs:integer"/>
+      <xs:attribute name="rightF" use="required" type="xs:decimal"/>
+      <xs:attribute name="top" use="required" type="xs:integer"/>
+      <xs:attribute name="topF" use="required" type="xs:double"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Path">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="y:Point"/>
+      </xs:sequence>
+      <xs:attribute name="sx" use="required" type="xs:decimal"/>
+      <xs:attribute name="sy" use="required" type="xs:decimal"/>
+      <xs:attribute name="tx" use="required" type="xs:decimal"/>
+      <xs:attribute name="ty" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Point">
+    <xs:complexType>
+      <xs:attribute name="x" use="required" type="xs:decimal"/>
+      <xs:attribute name="y" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="LineStyle">
+    <xs:complexType>
+      <xs:attribute name="color" use="required"/>
+      <xs:attribute name="type" use="required" type="xs:NCName"/>
+      <xs:attribute name="width" use="required" type="xs:decimal"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="Arrows">
+    <xs:complexType>
+      <xs:attribute name="source" use="required" type="xs:NCName"/>
+      <xs:attribute name="target" use="required" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+</xs:schema>

+ 1028 - 0
SE/schema/ant-tool/SyncResourcesYed/ygraphml.xsd

@@ -0,0 +1,1028 @@
+<?xml version="1.0"?>
+
+<!-- Header this is flattened by Arkadiusz Binder to locally parse data faster -->
+<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
+    targetNamespace="http://graphml.graphdrawing.org/xmlns"
+    xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:g="http://graphml.graphdrawing.org/xmlns"
+    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:y="http://www.yworks.com/xml/graphml">
+    <xs:annotation>
+        <xs:documentation>       GraphML core language definitions including GraphML attributes and
+            GraphML parseinfo.     </xs:documentation>
+    </xs:annotation>
+    <xs:import namespace="http://www.yworks.com/xml/graphml" schemaLocation="yfeatures.xsd"/>
+    <!--<xs:include schemaLocation="graphml-parseinfo.xsd"/>-->
+    <!-- Redefinition of the elements in the graphml-structure schema -->
+    <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd">
+        <xs:annotation>
+            <xs:documentation xml:lang="en">         Get access to the xlink attribute groups for
+                the attributes         xlink:href and xlink:type of locator.type.
+            </xs:documentation>
+        </xs:annotation>
+    </xs:import>
+    <xs:attributeGroup name="key.extra.attrib">
+        <xs:annotation>
+            <xs:documentation>           Redefinition of file graphml-structure.xsd.
+                    <p>Extends the attribute group key.extra.attrib (which takes             part in
+                    the attribute list of &lt;key&gt;) by adding the             attribute yfiles.type which
+                    is defined below.           </p>
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="key.extra.attrib_Redefined1"/>
+        <xs:attribute name="yfiles.type" type="xs:string" use="optional">
+            <xs:annotation>
+                <xs:documentation>             Custom yfiles specific attribute that allows to
+                    specify an additional data type.           </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="key.extra.attrib_Redefined1">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Redefinition of file graphml-structure.xsd.         Extends the attribute group
+                key.extra.attrib (which takes         part in the attribute list of &lt;key&gt;) by adding
+                the         attribute group key.attributes.attrib which is defined below.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="key.extra.attrib_Redefined0"/>
+        <xs:attributeGroup ref="key.attributes.attrib"/>
+    </xs:attributeGroup>
+    <!-- Definition of the different grouping types -->
+    <!-- The grouping type is stored as attribute at the node element -->
+    <xs:attributeGroup name="node.extra.attrib">
+        <xs:annotation>
+            <xs:documentation>           Redefinition of file graphml-structure.xsd.
+                    <p>Extends the attribute group node.extra.attrib (which takes             part
+                    in the attribute list of &lt;node&gt;) by adding a             yfiles specific attribute
+                    for the folder type.           </p>
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="node.extra.attrib_Redefined1"/>
+        <xs:attribute name="yfiles.foldertype" type="yfiles.foldertype.type" use="optional">
+            <xs:annotation>
+                <xs:documentation>             The foldertype for group/folder nodes.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="node.extra.attrib_Redefined1">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Redefinition of file graphml-structure.xsd.         Extends the attribute group
+                graph.extra.attrib (which takes         part in the attribute list of &lt;graph&gt;) by
+                adding the         attribute group graph.parseinfo.attrib which is defined below.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="node.extra.attrib_Redefined0"/>
+        <xs:attributeGroup ref="node.parseinfo.attrib"/>
+    </xs:attributeGroup>
+    <xs:complexType name="data-extension.type">
+        <xs:complexContent mixed="true">
+            <xs:extension base="data-extension.type_Redefined0">
+                <xs:sequence>
+                    <xs:any maxOccurs="unbounded" minOccurs="0" processContents="strict"/>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType mixed="true" name="data-extension.type_Redefined0">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Extension mechanism for the content of &lt;data&gt; and &lt;default&gt;.         The complex type
+                data-extension.type is empty per default.         Users may redefine this type in
+                order to add content to         the complex types data.type and default.type which
+                are         extensions of data-extension.type.       </xs:documentation>
+        </xs:annotation>
+    </xs:complexType>
+    <xs:annotation>
+        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">      This
+            document defines the GraphML language including GraphML attributes and GraphML
+            parseinfo.     </xs:documentation>
+    </xs:annotation>
+    <xs:attributeGroup name="key.extra.attrib_Redefined0">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="graph.extra.attrib">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Redefinition of file graphml-structure.xsd.         Extends the attribute group
+                node.extra.attrib (which takes         part in the attribute list of &lt;node&gt;) by adding
+                the         attribute group node.parseinfo.attrib which is defined below.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="graph.extra.attrib_Redefined0"/>
+        <xs:attributeGroup ref="graph.parseinfo.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="graph.extra.attrib_Redefined0">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="node.extra.attrib_Redefined0">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:annotation>
+        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       The schema
+            corresponding to this document defines the structural       layer of the Graph Markup
+            Language (GraphML).       Although a DTD is provided, this schema is, together with its
+            extensions       http://graphml.graphdrawing.org/xmlns/1.0/graphml-attributes.xsd
+            and       http://graphml.graphdrawing.org/xmlns/1.0/graphml-parseinfo.xsd,       the
+            only normative reference.     </xs:documentation>
+    </xs:annotation>
+    <xs:annotation>
+        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       The
+            attribute groups &lt;element_name&gt;.extra.attrib may be used       for adding user defined
+            attributes to the elements       &lt;element_name&gt;.       The attribute group
+            common.extra.attrib may be used for adding       user defined attributes to all
+            elements.     </xs:documentation>
+    </xs:annotation>
+    <xs:attributeGroup name="common.extra.attrib"/>
+    <xs:attributeGroup name="graphml.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="data.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="default.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="edge.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="port.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="hyperedge.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="endpoint.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="locator.extra.attrib">
+        <xs:attributeGroup ref="common.extra.attrib"/>
+    </xs:attributeGroup>
+    <xs:annotation>
+        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Complex
+            type definitions for the GraphML structural layer elements:       &lt;data&gt;, &lt;default&gt;, &lt;key&gt;,
+            &lt;graphml&gt;, &lt;graph&gt;,       &lt;node&gt;, &lt;port&gt;,       &lt;edge&gt;, &lt;hyperedge&gt;, &lt;endpoint&gt; and &lt;locator&gt;.       The
+            names of the complex types are constructed corresponding       to the pattern
+            element_name.type.       (The only remaining GraphML structural layer element       &lt;desc&gt;
+            is of simple type xs:string.)     </xs:documentation>
+    </xs:annotation>
+    <xs:complexType final="#all" name="data.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;data&gt; element.         data.type is mixed, that is, &lt;data&gt; may
+                contain #PCDATA.         Content type: extension of data-extension.type which is
+                empty         per default.       </xs:documentation>
+        </xs:annotation>
+        <xs:complexContent mixed="true">
+            <xs:extension base="data-extension.type">
+                <xs:attribute form="unqualified" name="key" type="xs:NMTOKEN" use="required">
+                    <xs:annotation>
+                        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en"
+                            >refers to the id attribute of a &lt;key&gt;.             </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN" use="optional">
+                    <xs:annotation>
+                        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en"
+                            >identifies this &lt;data&gt;.             </xs:documentation>
+                    </xs:annotation>
+                </xs:attribute>
+                <xs:attributeGroup ref="data.extra.attrib">
+                    <xs:annotation>
+                        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                            user defined extra attributes for &lt;data&gt; elements
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attributeGroup>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType final="#all" name="default.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;default&gt; element.         default.type is mixed, that is, data
+                may contain #PCDATA.         Content type: extension of data-extension.type which is
+                empty         per default.       </xs:documentation>
+        </xs:annotation>
+        <xs:complexContent mixed="true">
+            <xs:extension base="data-extension.type">
+                <xs:attributeGroup ref="default.extra.attrib">
+                    <xs:annotation>
+                        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                            user defined extra attributes for &lt;default&gt; elements
+                        </xs:documentation>
+                    </xs:annotation>
+                </xs:attributeGroup>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType final="#all" name="key.for.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Simple type for the for attribute of &lt;key&gt;.         key.for.type is a restriction of
+                xs:NMTOKEN         Allowed values: all, graphml, graph, node, edge, hyperedge, port
+                and endpoint.       </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="all"/>
+            <xs:enumeration value="graph"/>
+            <xs:enumeration value="node"/>
+            <xs:enumeration value="edge"/>
+            <xs:enumeration value="hyperedge"/>
+            <xs:enumeration value="port"/>
+            <xs:enumeration value="endpoint"/>
+            <xs:enumeration value="graphml"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType final="#all" name="key.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;key&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:element minOccurs="0" ref="default"/>
+        </xs:sequence>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">identifies
+                    this &lt;key&gt;.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute default="all" form="unqualified" name="for" type="key.for.type">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    describes the domain of definition for           the corresponding graph
+                    attribute.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attributeGroup ref="key.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;key&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+    </xs:complexType>
+    <xs:complexType final="#all" name="graphml.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;graphml&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:element maxOccurs="unbounded" minOccurs="0" ref="key"/>
+            <xs:sequence>
+                <xs:choice maxOccurs="unbounded" minOccurs="0">
+                    <xs:element ref="graph"/>
+                    <xs:element ref="data"/>
+                </xs:choice>
+            </xs:sequence>
+        </xs:sequence>
+        <xs:attributeGroup ref="graphml.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;graphml&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+    </xs:complexType>
+    <xs:simpleType final="#all" name="graph.edgedefault.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Simple type for the edgedefault attribute of &lt;graph&gt;.         graph.edgedefault.type
+                is a restriction of xs:NMTOKEN         Allowed values: directed, undirected.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="directed"/>
+            <xs:enumeration value="undirected"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType final="#all" name="graph.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;graph&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:choice>
+                <xs:sequence>
+                    <xs:choice maxOccurs="unbounded" minOccurs="0">
+                        <xs:element ref="data"/>
+                        <xs:element ref="node"/>
+                        <xs:element ref="edge"/>
+                        <xs:element ref="hyperedge"/>
+                    </xs:choice>
+                </xs:sequence>
+                <xs:element ref="locator"/>
+            </xs:choice>
+        </xs:sequence>
+        <xs:attributeGroup ref="graph.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;graph&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this graph .         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="edgedefault" type="graph.edgedefault.type"
+            use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    describes whether edges of this graph are considered           as directed or
+                    undirected per default (unless           specified by the attribute directed of
+                    &lt;edge&gt;).         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType final="#all" name="node.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;node&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:choice>
+                <xs:sequence>
+                    <xs:choice maxOccurs="unbounded" minOccurs="0">
+                        <xs:element ref="data"/>
+                        <xs:element ref="port"/>
+                        <xs:element ref="graph"/>
+                    </xs:choice>
+                </xs:sequence>
+                <xs:element ref="locator"/>
+            </xs:choice>
+        </xs:sequence>
+        <xs:attributeGroup ref="node.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;node elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this node.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType final="#all" name="port.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;port&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:choice maxOccurs="unbounded" minOccurs="0">
+                <xs:element ref="data"/>
+                <xs:element ref="port"/>
+            </xs:choice>
+        </xs:sequence>
+        <xs:attributeGroup ref="port.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;port&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="name" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this port, within the node it is contained in.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType final="#all" name="edge.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;edge&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:element maxOccurs="unbounded" minOccurs="0" ref="data"/>
+            <xs:element minOccurs="0" ref="graph"/>
+        </xs:sequence>
+        <xs:attributeGroup ref="edge.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;edge&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this edge .         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="directed" type="xs:boolean">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    overwrites the edgedefault attribute of &lt;graph&gt; .         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="source" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the id attribute of the source &lt;node&gt;.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="target" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the id attribute of the target &lt;node&gt;.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="sourceport" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the name attribute of the source &lt;port&gt;.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="targetport" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the name attribute of the target &lt;port&gt;.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType final="#all" name="hyperedge.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;hyperedge&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+            <xs:choice maxOccurs="unbounded" minOccurs="0">
+                <xs:element ref="data"/>
+                <xs:element ref="endpoint"/>
+            </xs:choice>
+            <xs:element minOccurs="0" ref="graph"/>
+        </xs:sequence>
+        <xs:attributeGroup ref="hyperedge.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;hyperedge&gt; elements.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this &lt;hyperedge&gt; .         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:simpleType final="#all" name="endpoint.type.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Simple type for the type attribute of &lt;endpoint&gt;.         endpoint.type.type is a
+                restriction of xs:NMTOKEN         Allowed values: in, out, undir.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="in"/>
+            <xs:enumeration value="out"/>
+            <xs:enumeration value="undir"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType final="#all" name="endpoint.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;endpoint&gt; element.       </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element minOccurs="0" ref="desc"/>
+        </xs:sequence>
+        <xs:attributeGroup ref="endpoint.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;endpoint&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute form="unqualified" name="id" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    identifies this &lt;endpoint&gt; .         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="port" type="xs:NMTOKEN">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the name of the port, to which this endpoint is           connected .
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute form="unqualified" name="node" type="xs:NMTOKEN" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the id of the node, to which this endpoint is connected.
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute default="undir" form="unqualified" name="type" type="endpoint.type.type">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    defines the direction on this endpoint (undirected per default).
+                </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType final="#all" name="locator.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Complex type for the &lt;locator&gt; element.         Content type: (empty)
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="locator.extra.attrib">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    user defined extra attributes for &lt;locator&gt; elements.         </xs:documentation>
+            </xs:annotation>
+        </xs:attributeGroup>
+        <xs:attribute ref="xlink:href" use="required">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    points to the resource of this locator.         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <!-- xs:attribute ref="xlink:type" fixed="simple"-->
+        <xs:attribute ref="xlink:type">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    type of the hyperlink (fixed as simple).         </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <!--========================================================-->
+    <xs:element block="#all" name="desc" type="xs:string">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Provides human-readable descriptions for the GraphML         element
+                containing this &lt;desc&gt; as its first child.         Occurence: &lt;key&gt;, &lt;graphml&gt;, &lt;graph&gt;,
+                &lt;node&gt;, &lt;port&gt;, &lt;edge&gt;, &lt;hyperedge&gt;, and         &lt;endpoint&gt;.       </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:element block="#all" name="locator" type="locator.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Graphs and nodes are declared by the elements         &lt;graph&gt; and &lt;node&gt;,
+                respectively. The optional         &lt;locator&gt;-child of these elements point to
+                their definition. (If there is no &lt;locator&gt;-child         the graphs/nodes are defined
+                by their content).         Occurence: &lt;graph&gt;, and &lt;node&gt;.       </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:element block="#all" name="data" type="data.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: In GraphML there may be data-functions attached         to graphs,
+                nodes, ports, edges, hyperedges and         endpoint and to the whole collection of
+                graphs described by the content of &lt;graphml&gt;.         These functions are declared by
+                &lt;key&gt; elements         (children of &lt;graphml&gt;) and defined by &lt;data&gt;         elements.
+                Occurence: &lt;graphml&gt;, &lt;graph&gt;, &lt;node&gt;, &lt;port&gt;,         &lt;edge&gt;, &lt;hyperedge&gt;, and &lt;endpoint&gt;.
+            </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="data_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;data&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+    </xs:element>
+    <xs:element block="#all" name="key" type="key.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: In GraphML there may be data-functions attached         to graphs,
+                nodes, ports, edges, hyperedges and         endpoint and to the whole collection of
+                graphs described by the content of &lt;graphml&gt;.         These functions are declared by
+                &lt;key&gt; elements         (children of &lt;graphml&gt;) and defined by &lt;data&gt;         elements.
+                Occurence: &lt;graphml&gt;.       </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:element block="#all" name="default" type="default.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: In GraphML there may be data-functions attached         to graphs,
+                nodes, ports, edges, hyperedges and         endpoint and to the whole collection of
+                graphs described by the content of &lt;graphml&gt;.         These functions are declared by
+                &lt;key&gt; elements         (children of &lt;graphml&gt;) and defined by &lt;data&gt;         elements.
+                The (optional) &lt;default&gt; child of &lt;key&gt; gives         the default value for the
+                corresponding function.         Occurence: &lt;key&gt;.       </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:element block="#all" name="graphml" type="graphml.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: &lt;graphml&gt; is the root element of each GraphML         document.
+                Occurence: root.       </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="graphml_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;graphml&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+        <xs:key name="key_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: existence and uniqueness of the id attributes of           each &lt;key&gt;
+                    element in this document.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:key"/>
+            <xs:field xpath="@id"/>
+        </xs:key>
+        <xs:unique name="graph_id_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the id attributes of           each &lt;graph&gt; element in this
+                    document.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:graph"/>
+            <xs:field xpath="@id"/>
+        </xs:unique>
+        <xs:keyref name="data_key_ref" refer="key_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: for the key attribute of each &lt;data&gt; in this document,           the
+                    existence of an id attribute of           &lt;key&gt; which matches the value of it.
+                </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:keyref>
+    </xs:element>
+    <xs:element block="#all" name="graph" type="graph.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Describes one graph in this document.         Occurence: &lt;graphml&gt;, &lt;node&gt;,
+                &lt;edge&gt;, &lt;hyperedge&gt;.       </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="graph_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;graph&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+        <xs:key name="node_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: existence and uniqueness of the id attributes of           each &lt;node&gt;
+                    element in this graph.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:node"/>
+            <xs:field xpath="@id"/>
+        </xs:key>
+        <xs:unique name="edge_id_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the id attributes of           each &lt;edge&gt; element in this
+                    graph.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:edge"/>
+            <xs:field xpath="@id"/>
+        </xs:unique>
+        <xs:unique name="hyperedge_id_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the id attributes of           each &lt;hyperedge&gt; element in
+                    this graph.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:hyperedge"/>
+            <xs:field xpath="@id"/>
+        </xs:unique>
+        <xs:unique name="endpoint_id_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the id attributes of           each &lt;endpoint&gt; element in
+                    this graph.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:endpoint"/>
+            <xs:field xpath="@id"/>
+        </xs:unique>
+        <xs:keyref name="edge_source_ref" refer="node_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: for the source attribute of each &lt;edge&gt; in this graph,           the
+                    existence of an id attribute of           &lt;node&gt; which matches the value of it.
+                </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:edge"/>
+            <xs:field xpath="@source"/>
+        </xs:keyref>
+        <xs:keyref name="edge_target_ref" refer="node_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: for the target attribute of each &lt;edge&gt; in this graph,           the
+                    existence of an id attribute of           &lt;node&gt; which matches the value of it.
+                </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:edge"/>
+            <xs:field xpath="@target"/>
+        </xs:keyref>
+        <xs:keyref name="endpoint_node_ref" refer="node_id_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: for the node attribute of each &lt;endpoint&gt; in this graph,           the
+                    existence of an id attribute of           &lt;node&gt; which matches the value of it.
+                </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:endpoint"/>
+            <xs:field xpath="@node"/>
+        </xs:keyref>
+    </xs:element>
+    <xs:element block="#all" name="node" type="node.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Describes one node in the &lt;graph&gt;         containing this &lt;node&gt;.
+                Occurence: &lt;graph&gt;.       </xs:documentation>
+        </xs:annotation>
+        <xs:key name="port_name_key">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: existence and uniqueness of the name attributes of           each &lt;port&gt;
+                    element within this &lt;node&gt;.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath=".//g:port"/>
+            <xs:field xpath="@name"/>
+        </xs:key>
+        <xs:unique name="node_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;node&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+    </xs:element>
+    <xs:element block="#all" name="port" type="port.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Nodes may be structured by ports; thus edges         are not only
+                attached to a node but to a certain         port in this node.         Occurence:
+                &lt;node&gt;, &lt;port&gt;.       </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="port_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;port&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+    </xs:element>
+    <xs:element block="#all" name="edge" type="edge.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: Describes an edge in the &lt;graph&gt; which contains this         &lt;edge&gt;.
+                Occurence: &lt;graph&gt;.       </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="edge_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;edge&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+    </xs:element>
+    <xs:element block="#all" name="hyperedge" type="hyperedge.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: While edges describe relations between two nodes,         a hyperedge
+                describes a relation between an arbitrary         number of nodes.
+                Occurence: &lt;graph&gt;.       </xs:documentation>
+        </xs:annotation>
+        <xs:unique name="hyperedge_data_key_unique">
+            <xs:annotation>
+                <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                    Ensures: uniqueness of the key attributes of &lt;data&gt; children           of this
+                    &lt;hyperedge&gt; element.         </xs:documentation>
+            </xs:annotation>
+            <xs:selector xpath="./g:data"/>
+            <xs:field xpath="@key"/>
+        </xs:unique>
+    </xs:element>
+    <xs:element block="#all" name="endpoint" type="endpoint.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Description: The list of &lt;endpoints&gt; within a hyperedge         points to the nodes
+                contained in this hyperedge.         Occurence: &lt;hyperedge&gt;.       </xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <!--types as in graphml-attributes.xsd -->
+    <xs:simpleType final="#all" name="key.name.type">
+        <xs:annotation>
+            <xs:documentation
+                source="http://graphml.graphdrawing.org/(Dokumentation der Attributes Erweiterung; entsprechende Stelle.html)"
+                xml:lang="en">         Simple type for the attr.name attribute of &lt;key&gt;.
+                key.name.type is final, that is, it may not be extended         or restricted.
+                key.name.type is a restriction of xs:NMTOKEN         Allowed values: (no
+                restriction)       </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="key.type.type">
+        <xs:annotation>
+            <xs:documentation
+                source="http://graphml.graphdrawing.org/(Dokumentation der Attributes Erweiterung; entsprechende Stelle.html)"
+                xml:lang="en">         Simple type for the attr.type attribute of &lt;key&gt;.
+                key.type.type is final, that is, it may not be extended         or restricted.
+                key.type.type is a restriction of xs:NMTOKEN         Allowed values: boolean, int,
+                long, float, double, string, complex.       </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="boolean"/>
+            <xs:enumeration value="int"/>
+            <xs:enumeration value="long"/>
+            <xs:enumeration value="float"/>
+            <xs:enumeration value="double"/>
+            <xs:enumeration value="string"/>
+            <xs:enumeration value="complex"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:attributeGroup name="key.attributes.attrib">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Definition of the attribute group key.attributes.attrib.         This group consists
+                of the two optional attributes         - attr.name (gives the name for the data
+                function)         - attr.type (declares the range of values for the data function)
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attribute form="unqualified" name="attr.name" type="key.name.type" use="optional"/>
+        <xs:attribute form="unqualified" name="attr.type" type="key.type.type" use="optional"/>
+    </xs:attributeGroup>
+    <!--types as in graphml-parseinfo.xsd -->
+    <xs:simpleType final="#all" name="graph.order.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.order attribute of &lt;graph&gt;.       graph.order.type is final, that
+                is, it may not be extended                           or restricted.
+                graph.order.type is a restriction of xs:NMTOKEN       Allowed values: free,
+                nodesfirst, adjacencylist.     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="free"/>
+            <xs:enumeration value="nodesfirst"/>
+            <xs:enumeration value="adjacencylist"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.nodes.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.nodes attribute of &lt;graph&gt;.       graph.nodes.type is final, that
+                is, it may not be extended                           or restricted.
+                graph.nodes.type is a restriction of xs:nonNegativeInteger       Allowed values: (no
+                restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.edges.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.edges attribute of &lt;graph&gt;.       graph.edges.type is final, that
+                is, it may not be extended                           or restricted.
+                graph.edges.type is a restriction of xs:nonNegativeInteger       Allowed values: (no
+                restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.maxindegree.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.maxindegree attribute of &lt;graph&gt;.       graph.maxindegree.type is
+                final, that is, it may not be extended                           or restricted.
+                graph.maxindegree.type is a restriction of xs:nonNegativeInteger       Allowed
+                values: (no restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.maxoutdegree.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.maxoutdegree attribute of &lt;graph&gt;.       graph.maxoutdegree.type is
+                final, that is, it may not be extended                           or restricted.
+                graph.maxoutdegree.type is a restriction of xs:nonNegativeInteger       Allowed
+                values: (no restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.nodeids.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.nodeids attribute of &lt;graph&gt;.       graph.nodeids.type is final,
+                that is, it may not be extended                           or restricted.
+                graph.nodeids.type is a restriction of xs:string       Allowed values: (no
+                restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="canonical"/>
+            <xs:enumeration value="free"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="graph.edgeids.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.edgeids attribute of &lt;graph&gt;.       graph.edgeids.type is final,
+                that is, it may not be extended                           or restricted.
+                graph.edgeids.type is a restriction of xs:string       Allowed values: (no
+                restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="canonical"/>
+            <xs:enumeration value="free"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:attributeGroup name="graph.parseinfo.attrib">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Definition of the attribute group graph.parseinfo.attrib.      This group consists
+                of the seven attributes:      <ul>
+                    <li><code>parse.nodeids</code></li> (fixed to 'canonical' meaning that the id
+                    attribute                       of &lt;node&gt; follows the pattern 'n[number]),
+                            <li><code>parse.edgeids</code></li> (fixed to 'canonical' meaning that
+                    the id attribute                       of &lt;edge&gt; follows the pattern 'e[number]),
+                            <li><code>parse.order</code></li> (required; one of the values
+                    'nodesfirst',                      'adjacencylist' or 'free'),
+                            <li><code>parse.nodes</code></li> (required; number of nodes in this
+                    graph),       <li><code>parse.edges</code></li> (required; number of edges in
+                    this graph),       <li><code>parse.maxindegree</code></li> (optional; maximal
+                    indegree of a node in this graph),      <li><code>parse.maxoutdegree</code></li>
+                    (optional; maximal outdegree of a node in this graph)      </ul>
+            </xs:documentation>
+        </xs:annotation>
+        <xs:attribute form="unqualified" name="parse.nodeids" type="graph.nodeids.type"/>
+        <xs:attribute form="unqualified" name="parse.edgeids" type="graph.edgeids.type"/>
+        <xs:attribute form="unqualified" name="parse.order" type="graph.order.type"/>
+        <xs:attribute form="unqualified" name="parse.nodes" type="graph.nodes.type"/>
+        <xs:attribute form="unqualified" name="parse.edges" type="graph.edges.type"/>
+        <xs:attribute form="unqualified" name="parse.maxindegree" type="graph.maxindegree.type"
+            use="optional"/>
+        <xs:attribute form="unqualified" name="parse.maxoutdegree" type="graph.maxoutdegree.type"
+            use="optional"/>
+    </xs:attributeGroup>
+    <xs:simpleType final="#all" name="node.indegree.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.indegree attribute of &lt;node&gt;.       node.indegree.type is final,
+                that is, it may not be extended                           or restricted.
+                node.indegree.type is a restriction of xs:nonNegativeInteger       Allowed values:
+                (no restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:simpleType final="#all" name="node.outdegree.type">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">       Simple
+                type for the parse.outdegree attribute of &lt;node&gt;.       node.outdegree.type is final,
+                that is, it may not be extended                           or restricted.
+                node.outdegree.type is a restriction of xs:nonNegativeInteger       Allowed values:
+                (no restriction).     </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:nonNegativeInteger"/>
+    </xs:simpleType>
+    <xs:attributeGroup name="node.parseinfo.attrib">
+        <xs:annotation>
+            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
+                Definition of the attribute group node.parseinfo.attrib.      This group consists of
+                two attributes      - parse.indegree (optional; indegree of this node),      -
+                parse.outdegree (optional; outdegree of this node).     </xs:documentation>
+        </xs:annotation>
+        <xs:attribute form="unqualified" name="parse.indegree" type="node.indegree.type"
+            use="optional"/>
+        <xs:attribute form="unqualified" name="parse.outdegree" type="node.outdegree.type"
+            use="optional"/>
+    </xs:attributeGroup>
+    <!-- Type of Grouping -->
+    <xs:simpleType name="yfiles.foldertype.type">
+        <xs:annotation>
+            <xs:documentation>         The valid folder types for a folder/group node.
+                    <p>Valid values are           <ul>
+                        <li><b>folder</b>: for folder nodes</li>
+                        <li><b>group</b>: for group nodes</li>
+                        <li><b>leaf</b>: for leaf nodes (this is the implied value)</li>
+                    </ul>
+                </p>
+            </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN">
+            <xs:enumeration value="folder"/>
+            <xs:enumeration value="group"/>
+            <xs:enumeration value="leaf"/>
+        </xs:restriction>
+    </xs:simpleType>
+</xs:schema>

+ 83 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.body.xsl

@@ -0,0 +1,83 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.body" match="default_db__x3A__BI_audit_BENFORD:groupField|default_db__x3A__BI_audit_BENFORD:ID" priority="9"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.body" match="*[  contains(name(),'default_db__x3A__BI_audit_BENFORD:')]">
+        <xsl:param name="system_cache__dita:element" required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:choose>
+            <xsl:when test="local-name()='L_APPOITMENT_INFO'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    Adnotacje <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="local-name()='A_RECORD_CREATE_AUTHOR'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    operator <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="local-name()='A_RECORD_CREATE_DATE'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    Data przetwarzanego pliku <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="local-name()='count'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    ilość rekordów <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:when test="local-name()='step'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    <xsl:choose>
+                        <xsl:when test="text()='second'"> poziom analizy <b>drugi</b> </xsl:when>
+                        <xsl:when test="text()='first'"> poziom analizy <b>pierwszy</b> </xsl:when>
+                        <xsl:otherwise> poziom analizy <b><xsl:value-of select="text()"/></b> </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="local-name()='table'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    analizowany rejestr <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            <xsl:when test="local-name()='count'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    ilość rekordów <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:when>
+            
+            
+            <xsl:when test="local-name()='valueField'">
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    Wartość brana z pola <xsl:value-of select="text()"/> oraz analizowane po polu  <xsl:value-of select="parent::*/default_db__x3A__BI_audit_BENFORD:groupField"/>
+                </xsl:element>
+            </xsl:when>
+            
+            <xsl:otherwise>
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    <xsl:value-of select="local-name()"/> <xsl:text> </xsl:text><xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+        
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.body" match="*|text()|comment()"/>
+    
+   
+</xsl:stylesheet>

+ 129 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.fields.xsl

@@ -0,0 +1,129 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="count">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+                <xsl:element name="{$system_cache__dita:element.next}">
+                    Ilość rekordów <xsl:value-of select="text()"/>
+                </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="value">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+            
+            <xsl:choose>
+                <xsl:when test="parent::*/norm and parent::*/deviation">
+                    Wartość analizy <xsl:value-of select="text()"/>, w odniesieniu do stałej (<xsl:value-of select="parent::*/norm/text()"/>) jest odchylona o (<xsl:value-of select="number(parent::*/deviation/text()) * 100 "/> %)
+                    , co oznacza <xsl:value-of select=" round(number(parent::*/count/text()) * number(parent::*/deviation/text()))"/> podejrzanych rekordów. 
+                </xsl:when>
+                <xsl:otherwise>
+                    Wartość analizy <xsl:value-of select="text()"/>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="norm">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:choose>
+            <xsl:when test="parent::*/value and parent::*/deviation"/><!-- bypassed by context -->
+            <xsl:otherwise>
+                <xsl:element name="{$system_cache__dita:element.next}">
+                        <xsl:element name="{$system_cache__dita:element.next}">
+                            norma (stała) <xsl:value-of select="text()"/>
+                        </xsl:element>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="deviation">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:choose>
+            <xsl:when test="parent::*/norm and parent::*/deviation"/>
+            <xsl:otherwise>
+                <xsl:element name="{$system_cache__dita:element.next}">
+                                odchylenie od normy <xsl:value-of select="text()"/>
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="correct">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+            <xsl:choose>
+                <xsl:when test="text()='false'">
+                    stwierdzono przekroczenie 
+                </xsl:when>
+                <xsl:when test="text()='true'">
+                    OK - brak przekroczenia (<xsl:value-of select="text()"/>)
+                </xsl:when>
+                <xsl:otherwise>
+                    wynik analizy przekroczenia (<xsl:value-of select="text()"/>)
+                </xsl:otherwise>
+            </xsl:choose>
+           
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="firstStep[@leadingNumber]">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+           Raport posiada pierwszy poziom analizy (<xsl:value-of select="text()"/>) dla liczby <xsl:value-of select="@leadingNumber"/>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="firstStep">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+            Raport posiada  pierwszy poziom analizy (<xsl:value-of select="text()"/>) 
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="secondStep[@leadingNumber]">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+            Raport posiada drugi poziom analizy (<xsl:value-of select="text()"/>) dla liczby <xsl:value-of select="@leadingNumber"/>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="secondStep">
+        <xsl:param name="system_cache__dita:element"  required="yes"/>
+        <xsl:variable name="system_cache__dita:element.next" select="system_cache__dita:element.next($system_cache__dita:element)"/>
+        <xsl:element name="{$system_cache__dita:element.next}">
+            Raport posiada  drugi poziom analizy (<xsl:value-of select="text()"/>)
+            
+        </xsl:element>
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields" match="*|text()|comment()"/>
+   
+</xsl:stylesheet>

+ 61 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.info.xsl

@@ -0,0 +1,61 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.info" match="firstStep">
+        <xsl:choose>
+            <xsl:when test="firstStep">
+                pierwszego stopnia, zawierająca
+                <xsl:value-of select="count(firstStep)"/> analiz, zawiera:
+                <xsl:for-each-group select="firstStep" group-by="correct">
+                    <xsl:choose>
+                        <xsl:when test="correct='false'">
+                            <xsl:if test="position() = 2 "> oraz </xsl:if>
+                            <b> <xsl:value-of select="count(current-group())"/> przekroczeń </b> 
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:if test="position() = 2 "> oraz </xsl:if>
+                            <xsl:value-of select="count(current-group())"/> prawidłowych wartości
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:for-each-group> 
+                <!--<xsl:for-each select="firstStep"> <xsl:value-of select="@leadingNumber"/> 
+                                        <xsl:choose>
+                                            <xsl:when test="correct='false'"> - przekroczenie <xsl:value-of select="deviation"/> dla i <xsl:value-of select="count"/>
+                                                <!-\-<xsl:for-each-group select="secondStep" group-by="correct">
+                                                    <xsl:choose>
+                                                        <xsl:when test="correct='false'">
+                                                            w ilości liczb: <xsl:value-of select="count(current-group())"/> <xsl:value-of select="@leadingNumber"/> <xsl:text> </xsl:text>
+                                                        </xsl:when>
+                                                    </xsl:choose>
+                                                </xsl:for-each-group>-\->
+                                            
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                - OK
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:for-each>-->
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.info" match="*|text()|comment()"/>
+    
+</xsl:stylesheet>

+ 360 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.records.xsl

@@ -0,0 +1,360 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    xmlns:default_db__x3A__BI_audit_ENERGA_FAKTURY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_FAKTURY"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    <xsl:param name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore" select="'BI_audit_operational_raport_note nrLokalu kodPocztowy miejscowosc ID Nazwa A_RECORD_CREATE_DATE A_RECORD_CREATE_DATE A_RECORD_UPDATE_DATE A_RECORD_UPDATE_AUTHOR L_APPOITMENT_DATE L_APPOITMENT_USER L_APPOITMENT_PERIOD L_APPOITMENT_INFO L_APPOITMENT_TYPE A_STATUS A_STATUS_INFO A_ADM_COMPANY A_CLASSIFIED REF AWKEY SYNC_SQIX_STATUS CRC GUID'"/>
+    <xsl:param name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.count_percent" select="1"/>
+    <xsl:param name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.table_width" select="8"/>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records" match="*">
+        <xsl:param name="count"  required="yes"/>
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        <xsl:variable name="default_db__x3A__BI_audit_BENFORD:valueField" select="ancestor::default_db__x3A__BI_audit_BENFORD:valueField[1]/text()"/>
+        <xsl:variable name="default_db__x3A__BI_audit_BENFORD:groupField" select="ancestor::default_db__x3A__BI_audit_BENFORD:groupField[1]/text()"/>
+        <xsl:variable name="leadingNumber" select="@leadingNumber"/>
+        <xsl:variable name="count_percent_cout" select="round(number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.count_percent) * number($count)  div 100 )"/>
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Wybrane obiekty z raportu z rejestrów: 
+                <xsl:for-each-group select="*[@fid]" group-by="local-name()">
+                    <xsl:text> </xsl:text>    <xsl:value-of select="local-name()"/> - ilość <xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text>
+                </xsl:for-each-group>
+                
+            </title>
+            <body>
+                <p>sugerowanie podejrzanych rekodów dla kryterii: wartości z pola <xsl:value-of select="$default_db__x3A__BI_audit_BENFORD:valueField"/>, grupowane w: <xsl:value-of select="$default_db__x3A__BI_audit_BENFORD:groupField"/>, dla cyfry <xsl:value-of select="$leadingNumber"/></p>
+                <p>Analiza z progiem wyświetlania (<xsl:value-of select="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.count_percent"/>%) =  <xsl:value-of select="$count_percent_cout"/> tych samych wartości w przekroczeniach: </p>
+                
+                <xsl:variable name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records">
+                    <default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records>
+                        <xsl:for-each-group select="*[@fid and not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))]/*" group-by="local-name()">
+                            <xsl:sort select="count(current-grouping-key())" data-type="number" order="descending"/>
+                            <xsl:variable name="column" select="current-grouping-key()"/>
+                            <xsl:for-each-group select="current-group()[ not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))  ]" group-by="text()">
+                                <xsl:sort select="count(current-group())" data-type="number"  order="descending"/>
+                                <xsl:choose>
+                                    <xsl:when test="count(current-group()) &gt; $count_percent_cout ">
+                                        <strow>
+                                            <stentry> <xsl:value-of select="$column"/></stentry>
+                                            <stentry> <xsl:value-of select="text()"/></stentry>
+                                            <stentry> <xsl:value-of select="count(current-group())"/></stentry>
+                                        </strow>
+                                    </xsl:when>
+                                </xsl:choose>
+                                
+                            </xsl:for-each-group>
+                        </xsl:for-each-group>
+                    </default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records>
+                </xsl:variable>
+                
+                <xsl:choose>
+                    <xsl:when test="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records//stentry">
+                        <simpletable frame="all" relcolwidth="1* 4* 2*" >
+                            <sthead>
+                                <stentry>analizowana kolumna</stentry>
+                                <stentry>wartość</stentry>
+                                <stentry>ilość wystąpień</stentry>
+                            </sthead>
+                        <xsl:copy-of select="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records/default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records/*" copy-namespaces="no"/>
+                        </simpletable>
+                    </xsl:when>
+                </xsl:choose>
+                
+                
+                
+            </body>
+        </topic>
+        
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records" match="text()|comment()"/>
+    
+    <xsl:function name="default_db__x3A__BI_audit_BENFORD:system_cache__dita.files.topic.table.podglad_analizy_liczb.records.id">
+        <xsl:param name="system_cache__dita:topic_name"/>
+        <xsl:param name="fid"/>
+        <xsl:param name="local_name"/>
+        <xsl:param name="local_name.local_name"/>
+        <xsl:value-of select="concat(system_cache__dita:files.topic.table.id($system_cache__dita:topic_name,$fid),'_',$local_name,'_',$local_name.local_name)"/>
+    </xsl:function>
+    
+    
+    <xsl:function name="default_db__x3A__BI_audit_BENFORD:system_cache__dita.files.topic.table.podglad_analizy_liczb.records.id">
+        <xsl:param name="system_cache__dita:topic_name"/>
+        <xsl:param name="fid"/>
+        <xsl:param name="local_name"/>
+        <xsl:value-of select="concat(system_cache__dita:files.topic.table.id($system_cache__dita:topic_name,$fid),'_',$local_name)"/>
+    </xsl:function>
+    
+    <xsl:function name="default_db__x3A__BI_audit_BENFORD:system_cache__dita.files.topic.table.podglad_analizy_liczb.records.id.xref.fid.local_name">
+        <xsl:param name="key_to_merge"/>
+        <xsl:param name="system_cache__dita:files.key.topic.title.attrs.context.remote"/>
+        <xsl:param name="fid"/>
+        <xsl:param name="local_name"/>
+        <xsl:value-of select="concat($key_to_merge,'#',$system_cache__dita:files.key.topic.title.attrs.context.remote,'/',$fid,'_',$local_name)"/>
+    </xsl:function>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.all" match="*">
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:count"   select="default_db__x3A__BI_audit_BENFORD:count"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:valueField"  select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:groupField"  select="default_db__x3A__BI_audit_BENFORD:groupField"/>
+        <xsl:param name="system_cache__dita:files.key.title.context.href.all_table" required="yes"/>
+        
+        <xsl:variable name="system_cache__dita:files.key.topic.id.context.value.all_table" select="system_cache__dita:files.key.topic.title.id.context.value(.,'podglad_analizy_liczb__records__all_table')"/>
+        <xsl:variable name="leadingNumber" select="@leadingNumber"/>
+        <xsl:variable name="count_percent_cout" select="round(number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.count_percent) * number($default_db__x3A__BI_audit_BENFORD:count)  div 1000 )"/>
+        <xsl:variable name="count_percent_cout">
+            <xsl:choose>
+                <xsl:when test="$count_percent_cout &gt; 20"><xsl:value-of select="10"/></xsl:when>
+                <xsl:otherwise><xsl:value-of select="$count_percent_cout"/></xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Analiza wszystkich danych  
+                <xsl:for-each-group select=".//*[@fid and not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))]" group-by="local-name()">
+                    <xsl:text> </xsl:text>    <xsl:value-of select="local-name()"/> - ilość <xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text>
+                </xsl:for-each-group>
+                
+            </title>
+            
+            
+            
+            <body>
+                <p>sugerowanie podejrzanych rekodów dla kryterii: wartości z pola <xsl:value-of select="$default_db__x3A__BI_audit_BENFORD:valueField"/>, grupowane w: <xsl:value-of select="$default_db__x3A__BI_audit_BENFORD:groupField"/>, dla cyfry <xsl:value-of select="$leadingNumber"/></p>
+                <p>Analiza z progiem wyświetlania dla <xsl:value-of select="$count_percent_cout"/> tych samych wartości w przekroczeniach: </p>
+                
+                <xsl:variable name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records">
+                    <default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records>
+                        <xsl:for-each-group select=".//*[@fid and not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))]/*" group-by="local-name()">
+                            <xsl:sort select="count(current-grouping-key())" data-type="number" order="descending"/>
+                            <xsl:variable name="column" select="current-grouping-key()"/>
+                            <xsl:for-each-group select="current-group()[ not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))  ]" group-by="text()">
+                                <xsl:sort select="count(current-group())" data-type="number"  order="descending"/>
+                                <xsl:choose>
+                                    <xsl:when test="count(current-group()) &gt; $count_percent_cout ">
+                                        <strow > <!-- id="{default_db__x3A__BI_audit_BENFORD:system_cache__dita.files.topic.table.podglad_analizy_liczb.records.id($system_cache__dita:topic_name,@fid,parent::*/local-name(),local-name())}" -->
+                                            <stentry> <xsl:value-of select="$column"/></stentry>
+                                            <stentry> <xsl:value-of select="text()"/></stentry>
+                                            <stentry> <xsl:value-of select="count(current-group())"/></stentry>
+                                            <stentry> <xsl:value-of select="count(current-group())"/>
+                                                <xsl:for-each-group select="current-group()/parent::*[ not( contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name())) ]" group-by="@fid">
+                                                    <xsl:message>#166 @fid ;<xsl:value-of select="@fid"/>;</xsl:message>
+                                                    <xref
+                                                        href="{default_db__x3A__BI_audit_BENFORD:system_cache__dita.files.topic.table.podglad_analizy_liczb.records.id.xref.fid.local_name($system_cache__dita:files.key.title.context.href.all_table,$system_cache__dita:files.key.topic.id.context.value.all_table,@fid,local-name())}"
+                                                            scope="local"/>
+                                                </xsl:for-each-group>
+                                            </stentry>
+                                        </strow>
+                                    </xsl:when>
+                                </xsl:choose>
+                                
+                            </xsl:for-each-group>
+                        </xsl:for-each-group>
+                    </default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records>
+                </xsl:variable>
+                
+                
+                
+                <xsl:choose>
+                    <xsl:when test="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records//stentry">
+                        <simpletable frame="all" relcolwidth="1* 4* 2* 6*"  >
+                            <sthead>
+                                <stentry>analizowana kolumna</stentry>
+                                <stentry>wartość</stentry>
+                                <stentry>ilość wystąpień</stentry>
+                                <stentry>powiązania</stentry>
+                            </sthead>
+                            <xsl:copy-of select="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records/default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records/*" copy-namespaces="no"/>
+                        </simpletable>
+                    </xsl:when>
+                </xsl:choose>
+                
+                
+                
+                
+            </body>
+            
+            
+            
+        </topic>
+        
+        
+        
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.all.table" match="*">
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:count"   select="default_db__x3A__BI_audit_BENFORD:count"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:valueField"  select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+        <xsl:param name="default_db__x3A__BI_audit_BENFORD:groupField"  select="default_db__x3A__BI_audit_BENFORD:groupField"/>
+        <xsl:variable name="leadingNumber" select="@leadingNumber"/>
+        <xsl:variable name="count_percent_cout" select="round(number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.count_percent) * number($default_db__x3A__BI_audit_BENFORD:count)  div 1000 )"/>
+        <xsl:variable name="count_percent_cout">
+            <xsl:choose>
+                <xsl:when test="$count_percent_cout &gt; 20"><xsl:value-of select="10"/></xsl:when>
+                <xsl:otherwise><xsl:value-of select="$count_percent_cout"/></xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Wszystkie dane 
+                <xsl:for-each-group select=".//*[@fid and not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))]" group-by="local-name()">
+                    <xsl:text> </xsl:text>    <xsl:value-of select="local-name()"/> - ilość <xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text>
+                </xsl:for-each-group>
+                
+            </title>
+            <body>
+                
+                
+                
+               
+                        <xsl:for-each-group select=".//*[@fid and not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))]" group-by="local-name()">
+                            <xsl:sort select="count(current-grouping-key())" data-type="number" order="descending"/>
+                            <xsl:variable name="column" select="current-grouping-key()"/>
+                            <p>Obiekt <xsl:value-of select="current-grouping-key()"/></p>
+                            <xsl:variable name="columns">
+                                <columns>
+                                    <xsl:for-each-group select="current-group()[ position() &lt; $default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.table_width]" group-by="local-name()">
+                                        <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields">
+                                            <xsl:with-param name="element" select="'sthead'"/>
+                                        </xsl:apply-templates>
+                                    </xsl:for-each-group>
+                                </columns>
+                            </xsl:variable>
+                            
+                            <!--<simpletable frame="all"  id="simpgletablesss_inaaz_fwf_{generate-id()}" system_cache__dita:width_cols="auto"  system_cache__dita:bypass_rows_with_zero="true" system_cache__dita:bypass_rows_empty="true"> --><!-- system_cache__dita:width_cols="10" system_cache__dita:bypass_rows_with_zero="true" system_cache__dita:bypass_rows_empty="true" -->
+                            <simpletable  id="{current-grouping-key()}" frame="all"  > <!-- system_cache__dita:width_cols="auto" system_cache__dita:bypass_rows_with_zero="true" system_cache__dita:bypass_rows_empty="true" -->
+                                <xsl:attribute name="relcolwidth">
+                                    <xsl:for-each select="$columns//sthead">
+                                        <xsl:choose>
+                                            <xsl:when test="position() &lt; number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.table_width)">
+                                                <xsl:value-of select="'1* '"/>
+                                            </xsl:when>
+                                        </xsl:choose>
+
+                                    </xsl:for-each>
+                                </xsl:attribute>
+                                    <xsl:for-each-group select="current-group()[ not(contains($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.ignore,local-name()))  ]" group-by="@fid">
+                                        <xsl:sort select="count(current-group())" data-type="number"  order="descending"/>
+                                        <xsl:choose>
+                                            
+                                            <xsl:when test="position() = 1 "> <!-- and   -->
+                                                
+                                                <sthead>
+                                                    <xsl:for-each select="$columns/columns/*">
+                                                        <xsl:choose>
+                                                            <xsl:when test="position() &lt; number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.table_width)">
+                                                                <xsl:copy-of select="." copy-namespaces="no"/>
+                                                            </xsl:when>
+                                                        </xsl:choose>
+                                                    </xsl:for-each>
+                                                    <!--<xsl:copy-of select="$columns/columns/*"/>-->
+                                                </sthead>
+                                            </xsl:when>
+                                        </xsl:choose>
+                                        
+                                        
+                                        <strow id="{concat(@fid,'_',local-name())}">
+                                            <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" select="$columns/columns/*[ position() &lt; number($default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.table_width) ]">
+                                                <xsl:with-param name="context" select="."/>
+                                                <xsl:with-param name="element" select="'strow'"/>
+                                            </xsl:apply-templates>
+                                        </strow>
+                                        
+                                    </xsl:for-each-group>
+                            </simpletable>
+                        </xsl:for-each-group>
+                
+                
+                
+                
+                
+                
+                
+                
+            </body>
+        </topic>
+        
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*">
+        <xsl:param name="element" select="'strow'"/>
+        <xsl:param name="context" />
+        <xsl:choose>
+            <xsl:when test="$element = 'sthead'">
+                <xsl:variable name="curr_name" select="local-name()"/>
+                <xsl:choose>
+                    <xsl:when test="parent::*/*[ local-name() = $curr_name]/text()">
+                        <xsl:element name="stentry">
+                            <xsl:value-of select="local-name()"/>
+                        </xsl:element>
+                    </xsl:when>
+                </xsl:choose>
+                
+            </xsl:when>
+            <xsl:when test="$element='p'">
+                <p>
+                    <xsl:value-of select="text()"/>
+                </p>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:element name="stentry">
+                    <xsl:choose>
+                        <xsl:when test="$context">
+                            <xsl:value-of select="$context//*[ local-name() = current()/text()]/text()"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            ERROR use context 
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    
+                </xsl:element>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_RECORD_CREATE_DATE']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_RECORD_CREATE_AUTHOR']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_RECORD_UPDATE_DATE']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_RECORD_UPDATE_AUTHOR']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='L_APPOITMENT_DATE']"/>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='L_APPOITMENT_PERIOD']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='L_APPOITMENT_INFO']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='L_APPOITMENT_USER']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='L_APPOITMENT_TYPE']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_STATUS']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_STATUS_INFO']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_ADM_COMPANY']"/>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='A_CLASSIFIED']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='SYNC_SQIX_STATUS']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='CRC']"/>
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="*[ local-name()='GUID']"/>
+    
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" match="text()|comment()"/>
+        
+       
+</xsl:stylesheet>

+ 118 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.xsl

@@ -0,0 +1,118 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    
+   
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb" match="firstStep|secondStep">
+            
+            <topicref>
+                <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,'podglad_analizy_liczb')"/>
+                <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,'podglad_analizy_liczb')}">
+                    <topic>
+                        <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic','podglad_analizy_liczb')"/>
+                        <title>
+                            <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.title" select="." />
+                        </title>
+                        <body>
+                            <p>
+                            <xsl:choose>
+                                <xsl:when test="count(*[ @fid ]) = 0 and number(count) &gt; 0 ">, z czego nie wybrano żadnych rekordów do analizy szczegółowej </xsl:when>
+                                <xsl:when test="count(*[ @fid ]) &gt; 0 and number(count) &gt; 0 ">
+                                    z czego wybrano do analizy <xsl:value-of select="count(*[ @fid ])"/> rekordów 
+                                </xsl:when>
+                            </xsl:choose>
+                            
+                            <xsl:if test="count(*[ @fid ]) = 0 and number(count) &gt; 0  and secondStep and local-name()='firstStep'">, do analizy 2 rzędu nie wybrano rekordów. </xsl:if>
+                            
+                            <xsl:choose>
+                                <xsl:when test="secondStep">
+                                    Kontekstowe informacje analizy dla drugiego rzędu liczb, z wynikami: 
+                                    <xsl:for-each-group select="secondStep" group-by="correct">
+                                        <xsl:choose>
+                                            <xsl:when test="correct='false'">
+                                                <xsl:if test="position() = 2 "> oraz </xsl:if>
+                                                <b> <xsl:value-of select="count(current-group())"/> przekroczeń </b> 
+                                            </xsl:when>
+                                            <xsl:otherwise>
+                                                <xsl:if test="position() = 2 "> oraz </xsl:if>
+                                                <xsl:value-of select="count(current-group())"/> prawidłowych wartości
+                                            </xsl:otherwise>
+                                        </xsl:choose>
+                                    </xsl:for-each-group>
+                                </xsl:when>
+                            </xsl:choose>
+                            </p>
+                            <lq>
+                                <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.fields">
+                                    <xsl:with-param name="system_cache__dita:element" select="'lq'"/>
+                                </xsl:apply-templates>
+                            </lq>
+                        </body>
+                    </topic>
+                </xsl:result-document>
+                <xsl:choose>
+                    <xsl:when test="*[@fid]">
+                        <topicref>
+                            <xsl:variable name="system_cache__dita:topic_name" select="'podglad_analizy_liczb_fields'"/>
+                            <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                            <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                                <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records" select=".">
+                                    <xsl:with-param name="count" select="count"/>
+                                    <xsl:with-param name="system_cache__dita:topic_name" select="$system_cache__dita:topic_name"/>
+                                </xsl:apply-templates>
+                                                                    
+                            </xsl:result-document>
+                        </topicref>
+                    </xsl:when>
+                </xsl:choose>
+                <xsl:apply-templates mode="#current"/>
+            </topicref>
+        
+            
+        
+            
+            
+        
+                        
+        </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.title" match="firstStep|secondStep">
+        analiza  
+        <xsl:choose>
+            <xsl:when test="local-name()='firstStep'">
+                pierwszego
+            </xsl:when>
+            <xsl:when test="local-name()='secondStep'">
+                drugiego
+            </xsl:when>
+            <xsl:otherwise>kolejnego (<xsl:value-of select="local-name()"/>)</xsl:otherwise>
+        </xsl:choose> 
+        stopnia, dla liczby <xsl:value-of select="@leadingNumber"/> zawierająca <xsl:value-of select="count"/> rekordów 
+       
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.title" match="*|text()|comment()"/>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb" match="fixxxrstStep">
+        <xsl:param name="system_cache__dita:element" required="yes"/>
+        <xsl:apply-templates mode="#current">
+            <xsl:with-param name="system_cache__dita:element" select="'lq'"/>
+        </xsl:apply-templates>
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb" match="*|text()|comment()"/>
+    
+</xsl:stylesheet>

+ 194 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.xsl

@@ -0,0 +1,194 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.fields.xsl"/>
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.xsl"/>
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.podglad_analizy_liczb.records.xsl"/>
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.info.xsl"/>
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.body.xsl"/>
+    <xsl:include href="default_db__x3A__BI_audit_BENFORD.BI_audit_operational_raport_note.xsl"/>
+    
+    <xsl:template match="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD" mode="ditamap_root">
+        <!--<xsl:result-document href="energa_bledy_rum.ditamap">-->
+        <map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:map.xsd">
+            <title>raport BI_audit_BENFORD <xsl:choose>
+                <xsl:when test="L_APPOITMENT_INFO"><xsl:value-of select="L_APPOITMENT_INFO/text()"/></xsl:when>
+            </xsl:choose><xsl:choose>
+                <xsl:when test="get_wfs:id_from_fid(@fid)"> numer <xsl:value-of select="get_wfs:id_from_fid(@fid)"/> </xsl:when>
+            </xsl:choose> 
+                
+                przetwarzanie powiązań BOCIAN 
+                v2018-08-30(procesy5/rip)
+                
+                systemowy plik wejściowy <xsl:value-of select="@p5:primaryKey"/>
+                prefix obiektu API <xsl:value-of select="name()"/>
+            </title>
+            
+            
+            <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD" select="."/>
+        </map>
+    </xsl:template>
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD" match="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD">
+        <topichead >
+            <xsl:call-template name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.navtitle.attr"/>
+            <topicref>
+                <xsl:copy-of select="system_cache__dita:files.key.href.map.context(.)"/>
+                <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.context(.)}"> 
+                    <topic >
+                        <xsl:copy-of select="system_cache__dita:files.key.topic.attrs.context(.,'topic')"/>
+                        <title>
+                            Raport analizy benforda Nr <xsl:value-of select="@p5:primaryKey"/> dla <xsl:value-of select="count(firstStep/count/number(text()))"/> rekordów 
+                             
+                            <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.info" />
+                            
+                        </title>
+                        
+                        <body>
+                            <ol>
+                            <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.body" >
+                                <xsl:with-param name="system_cache__dita:element" select="'ol'"/>
+                            </xsl:apply-templates>
+                            </ol>
+                        </body>
+                        
+                    </topic>
+                </xsl:result-document>
+                <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb" />
+            </topicref>
+
+        <xsl:choose>
+            <xsl:when test=".//*[@fid]">
+                <xsl:variable name="system_cache__dita:files.key.title.context.href.all_table" select="system_cache__dita:files.key.title.context.href(.,'topic','podglad_analizy_liczb__records__all_table')"/>
+                
+                <topicref>
+                    <xsl:variable name="system_cache__dita:topic_name" select="'podglad_analizy_liczb__records__all'"/>
+                    <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                    <!--<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-->
+                    <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                        <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.all" select=".">
+                            <!--<xsl:with-param name="count" select="default_db__x3A__BI_audit_BENFORD:count"/>
+                            <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:valueField" select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+                            <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:groupField" select="default_db__x3A__BI_audit_BENFORD:groupField"/>-->
+                            <xsl:with-param name="system_cache__dita:topic_name" select="$system_cache__dita:topic_name"/>
+                            <xsl:with-param name="system_cache__dita:files.key.title.context.href.all_table" select="$system_cache__dita:files.key.title.context.href.all_table"/>
+                            
+                        </xsl:apply-templates>
+                    </xsl:result-document>
+                </topicref>
+                
+                <topicref>
+                    
+                         <xsl:variable name="system_cache__dita:topic_name" select="'podglad_analizy_liczb__records__all_table'"/>
+                         <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                         <!--<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-->
+                         <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                             <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.all.table" select=".">
+                                 <!--<xsl:with-param name="count" select="default_db__x3A__BI_audit_BENFORD:count"/>
+                                 <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:valueField" select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+                                 <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:groupField" select="default_db__x3A__BI_audit_BENFORD:groupField"/>-->
+                                 <xsl:with-param name="system_cache__dita:topic_name" select="$system_cache__dita:topic_name"/>
+                             </xsl:apply-templates>
+                         </xsl:result-document>
+                    
+                    
+                    
+                </topicref>
+                
+                
+            </xsl:when>
+        </xsl:choose>
+            
+            
+            <xsl:choose>
+                <xsl:when test=".//BI_audit_operational_raport_note">
+                    <xsl:variable name="system_cache__dita:topic_name" select="'BI_audit_operational_raport_note'"/>
+                    <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                    <!--<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-->
+                    <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                        <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note" select=".">
+                            <!--<xsl:with-param name="count" select="default_db__x3A__BI_audit_BENFORD:count"/>
+                                 <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:valueField" select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+                                 <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:groupField" select="default_db__x3A__BI_audit_BENFORD:groupField"/>-->
+                            <xsl:with-param name="system_cache__dita:topic_name" select="$system_cache__dita:topic_name"/>
+                        </xsl:apply-templates>
+                    </xsl:result-document>
+                </xsl:when>
+            </xsl:choose>
+            
+
+        </topichead>
+        
+    </xsl:template>
+    
+    
+    
+    <xsl:template name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.navtitle.attr">
+        <xsl:choose>
+            <xsl:when test="firstStep">
+                <xsl:attribute name="navtitle">
+                Analiza <xsl:value-of select="count(firstStep)"/> elementów liczbowych : 
+                <xsl:for-each select="firstStep">
+                    <xsl:text> </xsl:text><xsl:value-of select="@leadingNumber"/><xsl:text> </xsl:text>
+                </xsl:for-each>
+                </xsl:attribute>
+            </xsl:when>
+            <xsl:otherwise><xsl:attribute name="navtitle"> Problem z obsługą pliku - brak danych w elemencie firstStep</xsl:attribute></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD" match="text()|comment()|*"/>
+    
+    
+    <xsl:template match="RelatedFeatureRoot" mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.preprocess_root"/>
+    
+    
+    
+    
+    <xsl:template match="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD|*|text()|comment()" mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.preprocess_root">
+        <xsl:message>#42 template match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.preprocess_root"</xsl:message>
+        <!-- Now search for dita_graphs -->
+        
+        <!-- <xsl:variable name="dita">
+            <xsl:apply-templates select="." mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
+        </xsl:variable>-->
+        
+        <!--<xsl:for-each select="$dita//simpletable">
+            <xsl:apply-templates select="." mode="system_cache__dita:graph__write_dita_preprocess">
+                <xsl:with-param name="fileindex" select="@id"/>
+            </xsl:apply-templates>
+        </xsl:for-each>-->
+        
+        <!--<xsl:comment>#144 bocian-graph-2-html.preprocess </xsl:comment>-->
+        <!--<xsl:variable name="dita">
+            <xsl:apply-templates select="." mode="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
+        </xsl:variable>-->
+        
+        <!--<xsl:apply-templates mode="bocian-graph-2-html.preprocess" select="."/>-->
+        
+    </xsl:template>
+    
+    <xsl:template match="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD|RelatedFeatureRoot|*|text()|comment()" mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.postprocess_root"/>
+    
+    
+    
+</xsl:stylesheet>

+ 92 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_operational_raport_note.xsl

@@ -0,0 +1,92 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    xmlns:default_db__x3A__BI_audit_ENERGA_FAKTURY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_FAKTURY"
+    exclude-result-prefixes="xs Benford system_cache__appinfo system_cache__dita get_wfs p5 xlink default_db__x3A__BI_audit_BENFORD"
+    version="2.0">
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note" match="*">
+        <xsl:param name="count"  required="yes"/>
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        
+        
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Występuja powiązania do operacyjnej bazy zgłoszeń, w kontekście wykonanego raportu  
+                <xsl:for-each-group select=".//BI_audit_operational_raport_note[@fid]" group-by="action">
+                    <xsl:text> </xsl:text>  Akcja  <xsl:value-of select="action"/> - ilość <xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text>
+                </xsl:for-each-group>
+                
+            </title>
+            <body>
+                
+                
+                <xsl:variable name="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note">
+                    <default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note>
+                <xsl:for-each-group select=".//BI_audit_operational_raport_note" group-by="@fid">
+                            <xsl:sort select="action"  order="descending"/>
+                            <xsl:variable name="column" select="current-grouping-key()"/>
+                                
+                                    
+                                        <strow>
+                                            <stentry> <xsl:value-of select="ID"/></stentry>
+                                            <stentry> <xsl:value-of select="action"/></stentry>
+                                            <stentry> <xsl:value-of select="Zglaszajacy"/></stentry>
+                                            <stentry> <xsl:value-of select="DataZgloszenia"/></stentry>
+                                            <stentry> <xsl:value-of select="note"/></stentry>
+                                            <stentry> <xsl:value-of select="A_RECORD_UPDATE_DATE"/></stentry>
+                                            <stentry> 
+                                                <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.podglad_analizy_liczb.records.fields" select="parent::*">
+                                                    <xsl:with-param name="element" select="'p'"/>
+                                                </xsl:apply-templates>
+                                            </stentry>
+                                        </strow>
+                                    
+                   
+                        </xsl:for-each-group>
+                    </default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note>
+                </xsl:variable>
+                
+                
+                <xsl:choose>
+                    <xsl:when test="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note//stentry">
+                        <simpletable frame="all" relcolwidth="1* 4* 2*" >
+                            <sthead>
+                                <stentry>Nr </stentry>
+                                <stentry>Akcja </stentry>
+                                <stentry>Zgłaszający </stentry>
+                                <stentry>Data zgł</stentry>
+                                <stentry>Notatka</stentry>
+                                <stentry>Data akt</stentry>
+                                <stentry>kontekst</stentry>
+                              
+                            </sthead>
+                            <xsl:copy-of select="$default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note/default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.BI_audit_operational_raport_note/*" copy-namespaces="no"/>
+                        </simpletable>
+                    </xsl:when>
+                </xsl:choose>
+                
+                
+                
+            </body>
+        </topic>
+        
+    </xsl:template>
+    
+    
+    
+    
+    
+        
+       
+</xsl:stylesheet>

+ 1 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl

@@ -75,6 +75,7 @@
         <xsl:param name="end_name"/>
         <xsl:param name="end_fid"/><!-- XX1 -->
         <xsl:param name="pos" />
+        
         <xsl:choose>
             <xsl:when test="get_wfs:name_from_fid($fid) = 'BI_audit_ENERGA_PRACOWNICY'">
                 <xsl:value-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_PRACOWNICY.key($fid,$end_name,$end_fid,$pos)"/>

+ 231 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_VALIDATE/default_db__x3A__BI_audit_VALIDATE.BI_audit_VALIDATE.xsl

@@ -0,0 +1,231 @@
+<?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:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:default_db__x3A__BI_audit_VALIDATE="https://biuro.biall-net.pl/wfs/default_db/BI_audit_VALIDATE"
+    xmlns:default_db__x3A__BI_audit_ENERGA_RUM_UMOWY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_UMOWY"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:param name="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.empty.important" select="'Numer_sprawy Wprowadzajacy_wniosek___nazwisko_i_imie Akceptujacy_merytorycznie___nazwisko_i_imie Osoba_merytoryczna___nazwisko_i_imie'"/>
+    
+    <xsl:template match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" mode="ditamap_root">
+        <!--<xsl:result-document href="energa_bledy_rum.ditamap">-->
+        <map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:map.xsd">
+            <title>raport BI_audit_BENFORD <xsl:choose>
+                <xsl:when test="L_APPOITMENT_INFO"><xsl:value-of select="L_APPOITMENT_INFO/text()"/></xsl:when>
+            </xsl:choose><xsl:choose>
+                <xsl:when test="get_wfs:id_from_fid(@fid)"> numer <xsl:value-of select="get_wfs:id_from_fid(@fid)"/> </xsl:when>
+            </xsl:choose> 
+                
+                przetwarzanie powiązań BOCIAN 
+                v2018-08-30(procesy5/rip)
+                
+                systemowy plik wejściowy <xsl:value-of select="@p5:primaryKey"/>
+                prefix obiektu API <xsl:value-of select="name()"/>
+            </title>
+            
+            
+            
+            
+            <xsl:apply-templates mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" select="."/>
+            
+            
+            <!--<topicref>
+                <xsl:variable name="system_cache__dita:topic_name" select="'BI_audit_VALIDATE.empty'"/>
+                <!-\-<xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>-\->
+                <!-\-<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-\->
+                <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                    <xsl:apply-templates mode="system_cache__dita:topic_name" select="$system_cache__dita:topic_name" />
+                </xsl:result-document>
+            </topicref>-->
+            
+            
+            <!--<topicref>
+                <xsl:variable name="system_cache__dita:topic_name" select="'BI_audit_VALIDATE.analys_related'"/>
+                <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                <!-\-<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-\->
+                <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                    <xsl:apply-templates mode="system_cache__dita:topic_name" select="$system_cache__dita:topic_name" />
+                </xsl:result-document>
+            </topicref>-->
+            
+            <!--<xsl:choose>
+                <xsl:when test=".//*[ local-name()='BI_audit_operational_raport_note']">
+                    <topicref>
+                        <xsl:variable name="system_cache__dita:topic_name" select="'BI_audit_VALIDATE.BI_audit_operational_raport_note'"/>
+                        <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                        <!-\-<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-\->
+                        <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                            <xsl:apply-templates mode="system_cache__dita:topic_name" select="$system_cache__dita:topic_name" />
+                        </xsl:result-document>
+                    </topicref>
+                </xsl:when>
+            </xsl:choose>-->
+            
+        </map>
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE">
+        <topichead navtitle="Analiza błędów RUM ">
+            
+            <topicref>
+                <xsl:copy-of select="system_cache__dita:files.key.href.map.context(.)"/>
+                <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.context(.)}"> 
+                    <topic >
+                        <xsl:copy-of select="system_cache__dita:files.key.topic.attrs.context(.,'topic')"/>
+                        <title>
+                            Raport analizy błędów RYN Nr <xsl:value-of select="@p5:primaryKey"/> dla <xsl:value-of select="count(//*[@fid])"/> rekordów 
+                            
+                            <!--<xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.info" />-->
+                            
+                        </title>
+                        
+                        <!--<body>
+                            <ol>
+                                <xsl:apply-templates mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.body" >
+                                    <xsl:with-param name="system_cache__dita:element" select="'ol'"/>
+                                </xsl:apply-templates>
+                            </ol>
+                        </body>-->
+                        
+                    </topic>
+                </xsl:result-document>
+                
+                
+                
+                <topicref>
+                    <xsl:variable name="system_cache__dita:topic_name" select="'BI_audit_VALIDATE.empty'"/>
+                    <xsl:copy-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/>
+                    <!--<xsl:comment>#83 will system_cache__dita:files.key.href.map.title.context(.,$$system_cache__dita:topic_name) to <xsl:value-of select="system_cache__dita:files.key.href.map.title.context(.,$system_cache__dita:topic_name)"/></xsl:comment>-->
+                    <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$system_cache__dita:topic_name)}">
+                        <xsl:apply-templates mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.empty" select=".">
+                            <!--<xsl:with-param name="count" select="default_db__x3A__BI_audit_BENFORD:count"/>
+                            <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:valueField" select="default_db__x3A__BI_audit_BENFORD:valueField"/>
+                            <xsl:with-param name="default_db__x3A__BI_audit_BENFORD:groupField" select="default_db__x3A__BI_audit_BENFORD:groupField"/>-->
+                            <xsl:with-param name="system_cache__dita:topic_name" select="$system_cache__dita:topic_name"/>
+                        </xsl:apply-templates>
+                    </xsl:result-document>
+                </topicref>
+                    
+                
+            </topicref>
+            
+        </topichead>
+    </xsl:template>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" match="*|comment()|text()"/>
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.empty" match="*">
+        
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Analiza brakujących istotnych pól   
+                
+                
+            </title>
+            <body>
+                <xsl:for-each-group select="default_db__x3A__BI_audit_ENERGA_RUM_UMOWY:BI_audit_ENERGA_RUM_UMOWY/*[ contains($default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.empty.important, local-name())  and not(text()) ]"  group-by="local-name()">
+                    <xsl:apply-templates mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.names" select="."/>
+                        
+                </xsl:for-each-group>
+                                
+            </body>
+        </topic>
+    </xsl:template>
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.names" match="*">
+        
+        <p>
+            <xsl:value-of select="replace(local-name(),'_',' ')"/>  - <xsl:value-of select="text()"/> - ilość <xsl:value-of select="count(current-group())"/>
+        </p>
+        
+    </xsl:template>
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.names" match="text()|comment()"/>
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.analys_related" match="*">
+        
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Analiza zależności kwotowych umowy głównej i zleceń   
+                
+            </title>
+            <body>
+                
+            </body>
+        </topic>
+    </xsl:template>
+    
+    
+    
+    
+    
+    <xsl:template mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.BI_audit_operational_raport_note" match="*">
+        <xsl:param name="count"  required="yes"/>
+        <xsl:param name="system_cache__dita:topic_name" required="yes"/>
+        
+        <topic>
+            <xsl:copy-of select="system_cache__dita:files.key.topic.title.attrs.context(.,'topic',$system_cache__dita:topic_name)"/>
+            <title>
+                Występuja powiązania do operacyjnej bazy zgłoszeń, w kontekście wykonanego raportu  
+                <xsl:for-each-group select=".//BI_audit_operational_raport_note[@fid]" group-by="action">
+                    <xsl:text> </xsl:text>  Akcja  <xsl:value-of select="action"/> - ilość <xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text>
+                </xsl:for-each-group>
+                
+            </title>
+            <body>
+                
+            </body>
+        </topic>
+        
+    </xsl:template>
+    
+    
+    <xsl:template match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE|RelatedFeatureRoot|*" mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.preprocess_root">
+        <xsl:message>#42 template match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE" mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.preprocess_root"</xsl:message>
+        <!-- Now search for dita_graphs -->
+        
+       <!-- <xsl:variable name="dita">
+            <xsl:apply-templates select="." mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
+        </xsl:variable>-->
+        
+        <!--<xsl:for-each select="$dita//simpletable">
+            <xsl:apply-templates select="." mode="system_cache__dita:graph__write_dita_preprocess">
+                <xsl:with-param name="fileindex" select="@id"/>
+            </xsl:apply-templates>
+        </xsl:for-each>-->
+        
+        
+        <!--<xsl:variable name="dita">
+            <xsl:apply-templates select="." mode="bocian-graph-2-html.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_statystyka_pracownik.dita"/>
+        </xsl:variable>-->
+        
+        <!--<xsl:apply-templates mode="bocian-graph-2-html.preprocess" select="."/>-->
+        
+    </xsl:template>
+    
+    <xsl:template match="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE|RelatedFeatureRoot|*" mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.postprocess_root"/>
+    
+    
+</xsl:stylesheet>

+ 20 - 0
SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.element.xsl

@@ -0,0 +1,20 @@
+<?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"
+    exclude-result-prefixes="xs"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    version="2.0">
+    
+    
+    <xsl:function name="system_cache__dita:element.next">
+        <xsl:param name="system_cache__dita:element"/>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita:element='ol'"><xsl:value-of select="'li'"/></xsl:when>
+            <xsl:when test="$system_cache__dita:element='lq'"><xsl:value-of select="'p'"/></xsl:when>
+            <xsl:otherwise><xsl:message terminate="yes">#16 TODO undefined next element for <xsl:value-of select="$system_cache__dita:element"/></xsl:message></xsl:otherwise>
+        </xsl:choose>
+    </xsl:function>
+    
+</xsl:stylesheet>

+ 235 - 0
SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.files.xsl

@@ -0,0 +1,235 @@
+<?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"
+    exclude-result-prefixes="xs"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    version="2.0">
+    
+    
+    <xsl:function name="system_cache__dita:files.topic.table.id">
+        <xsl:param name="system_cache__dita:topic_name"/>
+        <xsl:param name="fid"/>
+        <xsl:value-of select="concat($system_cache__dita:topic_name,'__',$fid)"/>
+    </xsl:function>
+    
+    <!--<xsl:function name="system_cache__dita:files.topic.table.id.href">
+        <xsl:param name="key_to_merge"/>
+        
+        <xsl:value-of select="concat($system_cache__dita:topic_name,'__',$fid)"/>
+    </xsl:function>-->
+    
+    <!--<xref
+        href="../firstStep/firstStep.d49e132____podglad_analizy_liczb_fields.dita#firstStep__x2F__firstStep.d49e132____d49e132_podglad_analizy_liczb_fields/tetsta1123"
+        scope="local">10</xref>-->
+    
+    <xsl:function name="system_cache__dita:files.key.DETECT">
+        <xsl:param name="fid"/><!-- XX1 -->
+        <xsl:param name="end_name"/>
+        <xsl:param name="end_fid"/><!-- XX1 -->
+        <xsl:param name="pos" />
+        
+        <xsl:value-of select="system_cache__dita:files.key.DETECT.OTHER($fid,$end_name,$end_fid,$pos)"/>
+           
+    </xsl:function>
+    
+    
+    <xsl:function name="system_cache__dita:files.key.DETECT.OTHER">
+        <xsl:param name="fid"/><!-- XX1 -->
+        <xsl:param name="end_name"/>
+        <xsl:param name="end_fid"/><!-- XX1 -->
+        <xsl:param name="pos" /><!-- when several paths - take from $interested_row//@pos-->
+        <xsl:variable name="group_name" select="get_wfs:name_from_fid($fid)"/>
+        <xsl:value-of select="concat($group_name,'__x2F__',$fid,'_',$end_name,'_',$end_fid,'_',$pos)"/><!-- XX1 -->
+    </xsl:function>
+    
+    
+    <xsl:function name="system_cache__dita:files.key.href.write.context">
+        <xsl:param name="context"/>
+        <xsl:copy-of select="system_cache__dita:files.key.href.write(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''))"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.write">
+        <xsl:param name="key_to_merge"/>
+        <xsl:copy-of select="concat($temp,'/',$uuid,'/', system_cache__dita:files.key.href($key_to_merge,'system_cache__dita:files.key.href.write'))"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.write.title">
+        <xsl:param name="key_to_merge"/>
+        <xsl:param name="title"/>
+        <xsl:value-of select="concat($temp,'/',$uuid,'/', system_cache__dita:files.key.title.href($key_to_merge,'system_cache__dita:files.key.href.write',$title))"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href">
+        <xsl:param name="key_to_merge"/>
+        <xsl:param name="map_or_indita"/>
+        <xsl:choose>
+            <xsl:when test="$map_or_indita='topic'">
+                <xsl:attribute name="href" select="concat('../',replace($key_to_merge,'__x2F__','/'),'.dita')"/>
+            </xsl:when>
+            <xsl:when test="$map_or_indita='system_cache__dita:files.key.href.write'">
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'.dita')"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'.dita')"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.title.context.href">
+        <xsl:param name="context"/>
+        <xsl:param name="map_or_indita"/>
+        <xsl:param name="title"/>
+        <xsl:variable name="key_to_merge" select="system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','','')"/>
+        <xsl:choose>
+            <xsl:when test="$map_or_indita='topic'">
+                <xsl:attribute name="href" select="concat('../',replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:when>
+            <xsl:when test="$map_or_indita='system_cache__dita:files.key.href.write'">
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.title.href">
+        <xsl:param name="key_to_merge"/>
+        <xsl:param name="map_or_indita"/>
+        <xsl:param name="title"/>
+        <xsl:choose>
+            <xsl:when test="$map_or_indita='topic'">
+                <xsl:attribute name="href" select="concat('../',replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:when>
+            <xsl:when test="$map_or_indita='system_cache__dita:files.key.href.write'">
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:attribute name="href" select="concat(replace($key_to_merge,'__x2F__','/'),'_',$title,'.dita')"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:function>
+    
+    
+    
+    <xsl:function name="system_cache__dita:files.key.href.write.topic.context">
+        <xsl:param name="context"/>
+        <xsl:value-of select="system_cache__dita:files.key.href.write(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''))"/>
+    </xsl:function>
+    
+    
+    <xsl:function name="system_cache__dita:files.key.href.write.topic.title.context">
+        <xsl:param name="context"/>
+        <xsl:param name="title"/>
+        <xsl:value-of select="system_cache__dita:files.key.href.write.title(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''),$title)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.attrs.context">
+        <xsl:param name="context"/>
+        <xsl:param name="topic"/>
+        <xsl:namespace name="xsi">http://www.w3.org/2001/XMLSchema-instance</xsl:namespace>
+        <xsl:choose>
+            <xsl:when test="$topic='NOT_TOPIC_TODO'"/>
+            <xsl:otherwise>
+                <xsl:attribute name="xsi:noNamespaceSchemaLocation">urn:oasis:names:tc:dita:xsd:topic.xsd</xsl:attribute>
+            </xsl:otherwise>
+        </xsl:choose>
+        <xsl:copy-of select="system_cache__dita:files.key.topic.id.context($context)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.title.attrs.context">
+        <xsl:param name="context"/>
+        <xsl:param name="topic"/>
+        <xsl:param name="title"/>
+        <xsl:namespace name="xsi">http://www.w3.org/2001/XMLSchema-instance</xsl:namespace>
+        <xsl:choose>
+            <xsl:when test="$topic='NOT_TOPIC_TODO'"/>
+            <xsl:otherwise>
+                <xsl:attribute name="xsi:noNamespaceSchemaLocation">urn:oasis:names:tc:dita:xsd:topic.xsd</xsl:attribute>
+            </xsl:otherwise>
+        </xsl:choose>
+        <xsl:copy-of select="system_cache__dita:files.key.topic.title.id.context($context,$title)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.subtopic.attrs.context">
+        <xsl:param name="context"/>
+        <xsl:param name="topic"/>
+        <xsl:param name="topic_local_id"/>
+        <xsl:copy-of select="system_cache__dita:files.key.topic.subtopic.id.context($context,$topic_local_id)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.id.context.value">
+        <xsl:param name="context"/>
+        <xsl:value-of select="concat(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''),'_',generate-id($context))"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.id.context">
+        <xsl:param name="context"/>
+        <xsl:attribute name="id" select="system_cache__dita:files.key.topic.id.context.value($context)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.context.fid">
+        <xsl:param name="context"/>
+        <xsl:message>#142AAAA REQUEST </xsl:message>
+        <xsl:variable name="fid" >
+            <xsl:choose>
+                <xsl:when test="$context/@fid"><xsl:value-of select="$context/@fid"/></xsl:when>
+                <xsl:when test="$context/name()"><xsl:value-of select="$context/name()"/>.<xsl:value-of select="generate-id($context)"/></xsl:when>
+                <xsl:otherwise>system_cache__dita:files.key.context.fid__NOT_FOUND_CONTEXT.0</xsl:otherwise>
+                
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:value-of select="$fid"/>
+    </xsl:function>
+    
+    
+    <xsl:function name="system_cache__dita:files.key.topic.title.id.context.value">
+        <xsl:param name="context"/>
+        <xsl:param name="title"/>
+        <xsl:value-of select="concat(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''),'_',generate-id($context),'_',$title)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.title.id.context">
+        <xsl:param name="context"/>
+        <xsl:param name="title"/>
+        <xsl:attribute name="id" select="system_cache__dita:files.key.topic.title.id.context.value($context,$title)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.topic.subtopic.id.context">
+        <xsl:param name="context"/>
+        <xsl:param name="topic_local_id"/>
+        <xsl:attribute name="id" select="concat(system_cache__dita:files.key.href.map.context($context),'_',$topic_local_id,'_',generate-id($context))"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.map.context">
+        <xsl:param name="context"/>
+        
+        <xsl:copy-of select="system_cache__dita:files.key.href(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''),'map')"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.map.title.context">
+        <xsl:param name="context"/>
+        <xsl:param name="title"/>
+        <xsl:copy-of select="system_cache__dita:files.key.title.href(system_cache__dita:files.key.DETECT(system_cache__dita:files.key.context.fid($context),'','',''),'map',$title)"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.map">
+        <xsl:param name="key_to_merge"/>
+        <xsl:copy-of select="system_cache__dita:files.key.href($key_to_merge,'map')"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.href.topic">
+        <xsl:param name="key_to_merge"/>
+        <xsl:copy-of select="system_cache__dita:files.key.href($key_to_merge,'topic')"/>
+    </xsl:function>
+    
+    <xsl:function name="system_cache__dita:files.key.title.href.topic">
+        <xsl:param name="key_to_merge"/>
+        <xsl:param name="title"/>
+        <xsl:copy-of select="system_cache__dita:files.key.title.href($key_to_merge,'topic',$title)"/>
+    </xsl:function>
+    
+</xsl:stylesheet>

+ 13 - 2
SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.xsl

@@ -7,6 +7,8 @@
     xmlns:math="http://exslt.org/math"
     xmlns:func="http://exslt.org/functions"
     xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    xmlns:default_db__x3A__BI_audit_VALIDATE="https://biuro.biall-net.pl/wfs/default_db/BI_audit_VALIDATE"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
     extension-element-prefixes="math func"
     exclude-result-prefixes="xs"
     version="2.0">
@@ -131,8 +133,11 @@
         language="exslt:javascript" 
         src="math.min.js" />-->
     
-    
+    <xsl:import href="www.opengis.net.wfs.xsl"/>
+    <xsl:import href="tree_to_dita.files.xsl"/>
+    <xsl:import href="tree_to_dita.element.xsl"/>
     <xsl:import href="../dita_enter_to_ph.xsl"/>
+    
     <xsl:include href="../default_db/enter_to_ph.xsl"/>
     <xsl:include href="../truncate_special_and_do_uppercase.xsl"/>
     <xsl:include href="big_values_format.xsl"/>
@@ -147,6 +152,8 @@
     <xsl:include href="L_APPOITMENT_USER/L_APPOITMENT_USER_tree_to_dita.xsl"/>
     <xsl:include href="BI_audit_ENERGA_RUM_KONTRAHENCI_and_BI_audit_ENERGA_RUM_UMOWY_errors/BI_audit_ENERGA_RUM_KONTRAHENCI_and_BI_audit_ENERGA_RUM_UMOWY_errors_tree_to_dita.xsl"/>
     <xsl:include href="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl"/>
+    <xsl:include href="BI_audit_BENFORD/default_db__x3A__BI_audit_BENFORD.BI_audit_BENFORD.xsl"/>
+    <xsl:include href="BI_audit_VALIDATE/default_db__x3A__BI_audit_VALIDATE.BI_audit_VALIDATE.xsl"/>
     <xsl:include href="EXAMPLE/EXAMPLE_tree_to_dita.xsl"/>
     <xsl:include href="Benford.xsl"/>
     <xsl:include href="dateTime.xsl"/>
@@ -165,7 +172,10 @@
     
     <xsl:variable name="ditadir" select="concat($temp,'/',$uuid)"/>
     
+    
+    
     <xsl:template mode="preprocess" match="RelatedFeatureRoot">
+        <xsl:message>#170 matched RelatedFeatureRoot : mode preprocess - all modules should protect match * to protect text output problems </xsl:message>
         <preprocess_dita>
             <!-- #Register preprocess_root - line to register for preprocess gml images mainly -->
             <xsl:comment>#27 match RelatedFeatureRoot</xsl:comment>
@@ -173,6 +183,8 @@
             <xsl:apply-templates select="." mode="preprocess_root_IN7_MK_BAZA_DYSTRYBUCJI"/>
             <xsl:apply-templates select="." mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_and_BI_audit_ENERGA_RUM_UMOWY_errors"/>
             <xsl:apply-templates select="." mode="preprocess_root_BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
+            <xsl:apply-templates select="." mode="default_db__x3A__BI_audit_VALIDATE:BI_audit_VALIDATE.preprocess_root"/>
+            <xsl:apply-templates select="." mode="default_db__x3A__BI_audit_BENFORD:BI_audit_BENFORD.preprocess_root"/>
             <xsl:apply-templates select="." mode="postprocess_root_PROCES_INIT"/>
             <xsl:apply-templates            mode="preprocess_root.embedded_map"/>
         </preprocess_dita>
@@ -185,7 +197,6 @@
             <xsl:apply-templates select="." mode="postprocess_root_EXAMPLE"/>
             <xsl:apply-templates select="." mode="postprocess_root_IN7_MK_BAZA_DYSTRYBUCJI"/>
             <xsl:apply-templates select="." mode="postprocess_root_PROCES_INIT"/>
-            
         </postprocess_dita>
     </xsl:template>
     

+ 40 - 0
SE/schema/default_db_xml_cache.public/default_db/www.opengis.net.wfs.xsl

@@ -0,0 +1,40 @@
+<?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"
+    exclude-result-prefixes="xs"
+    xmlns="http://www.opengis.net/wfs"
+    version="2.0">
+    
+    <xsl:template match="*" >
+        <xsl:message terminate="no">
+            #################################### 
+            #
+            #
+            #           NOT SUPPORTED FILES IN NAMESPACE <xsl:text>&lt;</xsl:text><xsl:value-of select="name()"/> xmlns="http://www.opengis.net/wfs" <xsl:text>&gt;</xsl:text>
+            #
+            #
+            #           disable RelatedFeatureRoot xmlns="http://www.opengis.net/wfs" in input XML FILE
+            #
+            #
+            #
+            ####################################
+        </xsl:message>
+    </xsl:template>
+    
+    <xsl:template mode="preprocess" match="*" >
+        <xsl:message terminate="yes">
+            #################################### 
+            #
+            #
+            #           NOT SUPPORTED FILES IN NAMESPACE <xsl:text>&lt;</xsl:text><xsl:value-of select="name()"/> xmlns="http://www.opengis.net/wfs" <xsl:text>&gt;</xsl:text>
+            #
+            #
+            #           disable RelatedFeatureRoot xmlns="http://www.opengis.net/wfs" in input XML FILE
+            #
+            #
+            #
+            ####################################
+        </xsl:message>
+        <!--<xsl:apply-templates mode="#current" select="." xpath-default-namespace=""/>-->
+    </xsl:template>
+</xsl:stylesheet>