| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?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:p5ba="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/BI_audit/p5ba.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:param name="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.uniq.slashes.root" select="'3'"/> <!-- ENSA/2017/00119/Z/2 - is ENSA/2017/00119 -->
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY" match="SES_USERS2">
- <topic id="BI_audit_ENERGA_RUM_UMOWY_error" xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
- <title>Analiza zawartosci danych umów </title>
- <body>
-
- <!--<section id="puste_pola">
- <title>Puste pola </title>
-
- <xsl:apply-templates mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty" select="custom"/>
-
- </section>-->
-
- <section id="nr_rejestrowy">
- <title>Zależne dokumenty do głównego numeru rejestrowego</title>
-
- <xsl:apply-templates mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy" select="custom"/>
-
- </section>
- </body>
- </topic>
- </xsl:template>
-
- <xsl:function name="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.uniq">
- <xsl:param name="Numer_rejestrowy"/>
- <xsl:variable name="out">
- <xsl:for-each select="tokenize($Numer_rejestrowy,'/')[ position() <= number($p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.uniq.slashes.root) ]">
- <xsl:text>/</xsl:text><xsl:value-of select="."/>
- </xsl:for-each>
- </xsl:variable>
- <xsl:value-of select="$out"/>
- <!--<xsl:value-of select="tokenize($Numer_rejestrowy,'/')[ position() <= number($p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.uniq.slashes.root) ]"/>-->
- </xsl:function>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy" match="custom">
- <!--<p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty>-->
- <xsl:comment>#30 </xsl:comment>
- <xsl:for-each-group select="row [ position() < 100000000 ]" group-by="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.uniq(Numer_rejestrowy)">
- <xsl:if test="count(current-group()) > 1 ">
- <sectiondiv>Dla Numer rejestrowy <xsl:value-of select="current-grouping-key()"/> , wpisów <xsl:value-of select="count(current-group())"/></sectiondiv>
- <!--<xsl:attribute name="dla_pustego_pola" select="current-grouping-key()"/>-->
-
- <row>
- <xsl:apply-templates mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.values" select="current-group()"/>
- </row>
- </xsl:if>
- </xsl:for-each-group>
- <!--</p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty>-->
- </xsl:template>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty" match="custom">
- <!--<p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty>-->
- <xsl:comment>#30 </xsl:comment>
- <xsl:for-each-group select="row/*[text()='' or not(text())]" group-by="local-name()">
- <sectiondiv>Dla pola <xsl:value-of select="current-grouping-key()"/> </sectiondiv>
- <!--<xsl:attribute name="dla_pustego_pola" select="current-grouping-key()"/>-->
- <!--<xsl:comment>#33 p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field parent::*[ position() < 2]</xsl:comment>-->
- <xsl:apply-templates mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field" select="parent::*[ position() < 1]"/>
- <!--<xsl:copy-of select="parent::*[ position() < 2]"/>-->
- <!--<xsl:comment>#36 p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field .[position() < 10]</xsl:comment>-->
- <xsl:for-each select=".[position() < 10]">
- <xsl:apply-templates mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field"/>
- </xsl:for-each>
-
- </xsl:for-each-group>
- <!--</p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty>-->
- </xsl:template>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.values" match="*"/>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.values" match="ID|Tytul_dokumentu|Numer_sprawy|Status_sprawy|Strony_umowy|Numer_rejestrowy">
- <xsl:copy-of select="."/>
- </xsl:template>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.db.nr_rejestrowy.values" match="row">
- <row>
- <xsl:apply-templates mode="#current"/>
- </row>
- </xsl:template>
-
-
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY p5ba:BI_audit_ENERGA_RUM_UMOWY.db.empty" match="*|text()|comment()"/>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field" match="A_STATUS_INFO|A_CLASSIFIED|A_ADM_COMPANY |A_STATUS|A_RECORD_CREATE_DATE|A_RECORD_CREATE_AUTHOR|A_RECORD_UPDATE_DATE|A_RECORD_UPDATE_AUTHOR|L_APPOITMENT_DATE|L_APPOITMENT_USER|L_APPOITMENT_PERIOD|L_APPOITMENT_INFO|L_APPOITMENT_TYPE|CRC|GUID|SYNC_SQIX_STATUS"/>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field" match="row">
- <lq>
- <xsl:apply-templates mode="#current"/>
- </lq>
- </xsl:template>
-
- <xsl:template mode="p5ba:BI_audit_ENERGA_RUM_UMOWY.dita.field" match="*">
- <ol>
- <li>
- Pole: <xsl:value-of select="local-name()"/>
- </li>
- <li>
- Wartosc: <xsl:value-of select="text()"/>
- </li>
- </ol>
- </xsl:template>
-
- </xsl:stylesheet>
|