| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:gml="http://www.opengis.net/gml"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:bcgtht="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/bocian-graph-to-html/bcgtht.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY"
- xmlns:p5="https://biuro.biall-net.pl/wfs"
- xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"
- xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"
- xmlns:default_db__x3A__BI_audit_KRS="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS"
- xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI"
-
- xmlns:default_db__x3A__BI_audit_MSIG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG"
- xmlns:default_db__x3A__BI_audit_CEIDG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_CEIDG"
- xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
- xmlns:default_db__x3A__BI_audit_KRS_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS_person"
- xmlns:default_db__x3A__BI_audit_taxpayer="https://biuro.biall-net.pl/wfs/default_db/BI_audit_taxpayer"
- xmlns:default_db__x3A__BI_audit_KRS_company="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS_company"
- xmlns:default_db__x3A__BI_audit_MSIG_company="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_company"
- xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/TERYT_adresy"
- xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_person"
- xmlns:default_db__x3A__BI_audit_operational_raport_note="https://biuro.biall-net.pl/wfs/default_db/BI_audit_operational_raport_note"
- xmlns:default_db__x3A__BI_audit_MSIG_address="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_address"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/> <!-- -->
-
- <xsl:param name="bcgtht:path.included.disable" select="true()"/>
-
- <xsl:function name="bcgtht:clousure.from">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"/>
- <xsl:param name="bcgtht:clousure.reverse"/>
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid"></xsl:value-of>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid"></xsl:value-of>
- </xsl:otherwise>
- </xsl:choose>
-
-
- </xsl:function>
-
- <xsl:function name="bcgtht:clousure.to">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"/>
- <xsl:param name="bcgtht:clousure.reverse"/>
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:function>
-
-
- <xsl:function name="bcgtht:clousure.len">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"/>
- <xsl:value-of select="count($BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>
- </xsl:function>
-
-
-
- <xsl:function name="bcgtht:clousure.node">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]/@fid"/>
- </xsl:function>
-
- <xsl:function name="bcgtht:clousure.node.name">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
- <xsl:value-of select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]/local-name()"/>
- </xsl:function>
-
- <xsl:function name="bcgtht:clousure.node.name.from.fid">
- <xsl:param name="fid"/>
- <xsl:value-of select="substring-before($fid,'.')"/>
- </xsl:function>
-
-
-
- <xsl:function name="bcgtht:clousure.node.pos">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
- <xsl:param name="bcgtht:clousure.reverse"/>
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:value-of select="count($BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/following-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="count($BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/preceding-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:function>
-
- <xsl:template mode="bcgtht:clousure" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
- <bcgtht:clousure>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current"/>
- </bcgtht:clousure>
- </xsl:template>
-
-
- <xsl:template mode="bcgtht:clousure" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
- <xsl:comment>_row <xsl:copy-of select="@*"/></xsl:comment>
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="bcgtht:clousure.reverse" select="0"/>
- </xsl:apply-templates>
- <xsl:comment>#215 reverse</xsl:comment>
- <xsl:apply-templates mode="#current">
- <xsl:with-param name="bcgtht:clousure.reverse" select="1"/>
- <xsl:sort select="position()" data-type="number" order="descending"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
- <xsl:param name="bcgtht:clousure.reverse" required="yes"/>
- <xsl:variable name="bcgtht:clousure.from.len" select="bcgtht:clousure.len(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row)"/>
- <path node="{bcgtht:clousure.node(.)}" pos="{bcgtht:clousure.node.pos(.,$bcgtht:clousure.reverse)}"
- from="{bcgtht:clousure.from(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)}"
- path.to="{bcgtht:clousure.to(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)}"
- bcgtht:clousure.from.len="{$bcgtht:clousure.from.len}"
- fid="{@fid}"
- >
-
- <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>
- <xsl:if test="$bcgtht:clousure.reverse = 1"><xsl:attribute name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/></xsl:if>
- </path>
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:apply-templates mode="bcgtht:clousure.following" select="preceding-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
- <xsl:with-param name="bcgtht:clousure.from" select="bcgtht:clousure.from(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)"/>
- <xsl:with-param name="bcgtht:clousure.node.pos" select="bcgtht:clousure.node.pos(.,$bcgtht:clousure.reverse)"/>
- <xsl:with-param name="bcgtht:clousure.context" select="."/>
- <xsl:with-param name="bcgtht:clousure.from.node.name" select="bcgtht:clousure.node.name(.)"/>
- <xsl:with-param name="bcgtht:clousure.from.node.primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>
- <xsl:with-param name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:with-param name="bcgtht:clousure.from.len" select="$bcgtht:clousure.from.len"/>
- <xsl:sort select="position()" data-type="number" order="descending"/>
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="bcgtht:clousure.following" select="following-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
- <xsl:with-param name="bcgtht:clousure.from" select="bcgtht:clousure.from(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)"/>
- <xsl:with-param name="bcgtht:clousure.node.pos" select="bcgtht:clousure.node.pos(.,$bcgtht:clousure.reverse)"/>
- <xsl:with-param name="bcgtht:clousure.context" select="."/>
- <xsl:with-param name="bcgtht:clousure.from.node.name" select="bcgtht:clousure.node.name(.)"/>
- <xsl:with-param name="bcgtht:clousure.from.node.primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>
- <xsl:with-param name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:with-param name="bcgtht:clousure.from.len" select="$bcgtht:clousure.from.len"/>
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
-
-
- </xsl:template>
-
- <xsl:function name="bcgtht:clousure.from.len">
- <xsl:param name="bcgtht:clousure.node.pos"/>
- <xsl:param name="bcgtht:clousure.node.pos.current"/>
- <xsl:param name="bcgtht:clousure.reverse"/>
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:value-of select="$bcgtht:clousure.node.pos.current - $bcgtht:clousure.node.pos"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$bcgtht:clousure.node.pos.current - $bcgtht:clousure.node.pos"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:function>
-
- <xsl:template mode="bcgtht:clousure.following" match="*|text()|comment()"/>
-
- <xsl:template mode="bcgtht:clousure.following" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
- <xsl:param name="bcgtht:clousure.from" required="yes"/>
- <xsl:param name="bcgtht:clousure.node.pos" required="yes"/>
- <xsl:param name="bcgtht:clousure.context" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.node.name" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.node.primaryKey" required="yes"/>
- <xsl:param name="bcgtht:clousure.reverse" required="yes"/>
- <xsl:variable name="bcgtht:clousure.from.len" select="bcgtht:clousure.from.len($bcgtht:clousure.node.pos,bcgtht:clousure.node.pos(.,$bcgtht:clousure.reverse),$bcgtht:clousure.reverse)"/>
- <path.clousure.following
- bcgtht:id="{generate-id()}"
- bcgtht:clousure.from.len="{$bcgtht:clousure.from.len}"
- bcgtht:clousure.from="{$bcgtht:clousure.from}"
- bcgtht:clousure.node.pos="{$bcgtht:clousure.node.pos}"
- to.node="{bcgtht:clousure.node(.)}"
- pos="{bcgtht:clousure.node.pos(.,$bcgtht:clousure.reverse)}"
- from="{bcgtht:clousure.from(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)}"
- to="{bcgtht:clousure.to(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row,$bcgtht:clousure.reverse)}"
- len="{bcgtht:clousure.len(parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row)}">
- <!--<xsl:attribute name="p5:primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.node.name" select="bcgtht:clousure.node.name(.)"/>-->
- <xsl:attribute name="bcgtht:clousure.node" select="bcgtht:clousure.node(.)"/>
- <!--<xsl:attribute name="bcgtht:clousure.from.node.name" select="$bcgtht:clousure.from.node.name"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.from.node.primaryKey" select="$bcgtht:clousure.from.node.primaryKey"/>-->
- <xsl:if test="$bcgtht:clousure.reverse = 1">
- <xsl:attribute name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:attribute name="bcgtht:clousure.node.pos_DEBUG_INV" select="bcgtht:clousure.node.pos(.,0)"/>
- <xsl:attribute name="bcgtht:clousure.node.pos_count_DEBUG_INV" select="count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/preceding-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>
- <xsl:attribute name="bcgtht:clousure.node.pos_DEBUG_INV_pos" select="position()"/>
-
- </xsl:if>
-
- <xsl:copy-of select="bcgtht:clousure.node.unique.descriptor(.,'A')"/>
- <xsl:copy-of select="bcgtht:clousure.node.unique.descriptor($bcgtht:clousure.context,'B')"/>
- <!--case rev test<xsl:variable name="bcgtht:clousure.from" select="bcgtht:clousure.node(.)"/>-->
- <xsl:variable name="bcgtht:clousure.from.node.name" select="bcgtht:clousure.node.name(.)"/>
- <xsl:variable name="bcgtht:clousure.from.node.primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>
- <xsl:choose>
- <xsl:when test="$bcgtht:path.included.disable"><xsl:comment>#220 $bcgtht:path.included.disable</xsl:comment></xsl:when>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:variable name="bcgtht:clousure.from" select="bcgtht:clousure.node(.)"/>
- <xsl:for-each select="$bcgtht:clousure.context/preceding-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() <= $bcgtht:clousure.from.len ]">
- <!--<xsl:sort select="position()" data-type="number" order="descending"/>-->
- <xsl:variable name="bcgtht:clousure.from.context" select="."/>
- <xsl:apply-templates mode="bcgtht:clousure.following.path.included" select=".">
- <xsl:with-param name="bcgtht:clousure.from" select="$bcgtht:clousure.from"/>
- <xsl:with-param name="bcgtht:clousure.from.context" select="$bcgtht:clousure.from.context"/>
- <xsl:with-param name="bcgtht:clousure.from.node.name" select="$bcgtht:clousure.from.node.name"/>
- <xsl:with-param name="bcgtht:clousure.from.node.primaryKey" select="$bcgtht:clousure.from.node.primaryKey"/>
- <xsl:with-param name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:with-param name="bcgtht:clousure.from.len" select="$bcgtht:clousure.from.len"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:for-each select="$bcgtht:clousure.context/following-sibling::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() <= $bcgtht:clousure.from.len ]">
- <xsl:variable name="bcgtht:clousure.from.context" select="."/>
- <xsl:apply-templates mode="bcgtht:clousure.following.path.included" select=".">
- <xsl:with-param name="bcgtht:clousure.from" select="$bcgtht:clousure.from"/>
- <xsl:with-param name="bcgtht:clousure.from.context" select="$bcgtht:clousure.from.context"/>
- <xsl:with-param name="bcgtht:clousure.from.node.name" select="$bcgtht:clousure.from.node.name"/>
- <xsl:with-param name="bcgtht:clousure.from.node.primaryKey" select="$bcgtht:clousure.from.node.primaryKey"/>
- <xsl:with-param name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:with-param name="bcgtht:clousure.from.len" select="$bcgtht:clousure.from.len"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:otherwise>
- </xsl:choose>
-
- </path.clousure.following>
- </xsl:template>
-
-
- <xsl:template mode="bcgtht:clousure.following.path.included" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
- <xsl:param name="bcgtht:clousure.from" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.context" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.node.name" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.node.primaryKey" required="yes"/>
- <xsl:param name="bcgtht:clousure.reverse" required="yes"/>
- <xsl:param name="bcgtht:clousure.from.len" required="yes"/>
- <path.included bcgtht:id="{generate-id()}"
- node="{bcgtht:clousure.node(.)}">
- <xsl:attribute name="bcgtht:clousure.from" select="$bcgtht:clousure.from"/>
- <!--<xsl:attribute name="bcgtht:clousure.from.node.name" select="$bcgtht:clousure.from.node.name"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.from.node.primaryKey" select="$bcgtht:clousure.from.node.primaryKey"/>-->
-
- <!--<xsl:attribute name="p5:primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>-->
- <xsl:attribute name="bcgtht:clousure.node" select="bcgtht:clousure.node(.)"/>
- <!--<xsl:attribute name="bcgtht:clousure.node.name" select="bcgtht:clousure.node.name(.)"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.node.primaryKey" select="p5:primaryKey(bcgtht:clousure.node(.))"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.from.node.name" select="$bcgtht:clousure.from.node.name"/>-->
- <!--<xsl:attribute name="bcgtht:clousure.from.node.primaryKey" select="$bcgtht:clousure.from.node.primaryKey"/>-->
-
- <xsl:choose>
- <xsl:when test="$bcgtht:clousure.reverse = 1">
- <xsl:attribute name="bcgtht:clousure.reverse" select="$bcgtht:clousure.reverse"/>
- <xsl:attribute name="bcgtht:clousure.node.pos_DEBUG_INV" select="bcgtht:clousure.node.pos(parent::*,0)"/>
- <xsl:attribute name="bcgtht:clousure.from.len_DEBUG_IN" select="$bcgtht:clousure.from.len"/>
- <xsl:attribute name="bcgtht:clousure.from.pos_DEBUG_IN" select="position()"/>
- <xsl:attribute name="bcgtht:clousure.from.len" select="position() + 1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="bcgtht:clousure.from.len" select="position()"/>
- </xsl:otherwise>
- </xsl:choose>
- <!-- nie ma potrzeby dodatkowego unique descriptora -->
- <!--<xsl:copy-of select="bcgtht:clousure.node.unique.descriptor(.,'A')"/>-->
- <!--<xsl:copy-of select="bcgtht:clousure.node.unique.descriptor($bcgtht:clousure.from.context,'B')"/>-->
-
-
-
- <!--<bcgtht:clousure.node.unique.descriptor>
- <xsl:apply-templates mode="bcgtht:clousure.node.unique.descriptor"/>
- </bcgtht:clousure.node.unique.descriptor>-->
-
- </path.included>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.following.path.included" match="text()|comment()"/>
-
- <xsl:template mode="bcgtht:clousure" match="*">
- <!--<xsl:message terminate="yes">#38 unantended mode mode="bcgtht:clousure" for element = <xsl:value-of select="name()"/>; </xsl:message>-->
- </xsl:template>
-
-
-
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="krs[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'company'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'krs'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="nip[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'company'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'nip'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="regon[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'company'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'regon'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="pesel[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'person'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'pesel'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="nazwa[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.not"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.text"/>
- <!--<xsl:copy-of select="text()"/>-->
- <xsl:for-each select="tokenize(text(),' ')">
- <xsl:choose>
- <xsl:when test="position()=1">
- <xsl:value-of select="."/>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="nazwisko[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.not"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.text"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
-
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="A_nrDomu[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'teryt'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper" select="'and'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'teryt'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.text"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="S_miejscowosc[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.not"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.text"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="A_ulica[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.not"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.text"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'teryt'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="TERYT_SYM_UL[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'teryt'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper" select="'and'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'teryt'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="TERYT_SYM[text()]">
- <xsl:copy copy-namespaces="no">
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group" select="'teryt'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper" select="'and'"/>
- <xsl:attribute name="bcgtht:clousure.node.unique.descriptor.group.oper.arg" select="'teryt'"/>
- <xsl:copy-of select="text()"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="*">
- <xsl:apply-templates mode="#current"/>
- </xsl:template>
-
-
-
- <xsl:template mode="bcgtht:clousure.node.unique.descriptor" match="text()|comment()"/>
-
-
- <xsl:template name="bcgtht:clousure.node.unique.descriptor">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" required="yes"/>
- <xsl:param name="bcgtht:edge.node" required="yes"/>
- <!--<xsl:variable name="bcgtht:clousure.node.unique.descriptor">-->
- <bcgtht:clousure.node.unique.descriptor bcgtht:edge.node="{$bcgtht:edge.node}">
- <xsl:for-each-group select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]//*" group-by="name()">
- <xsl:apply-templates mode="bcgtht:clousure.node.unique.descriptor" select=".">
- <xsl:sort select="local-name()"/>
- </xsl:apply-templates>
- </xsl:for-each-group>
- <!--<xsl:apply-templates mode="bcgtht:clousure.node.unique.descriptor" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]">
- <xsl:sort select="local-name()"/>
- </xsl:apply-templates>-->
- </bcgtht:clousure.node.unique.descriptor>
- <!--</xsl:variable>-->
- </xsl:template>
-
- <xsl:function name="bcgtht:clousure.node.unique.descriptor">
- <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
- <xsl:param name="bcgtht:edge.node"/>
- <xsl:call-template name="bcgtht:clousure.node.unique.descriptor">
- <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
- <xsl:with-param name="bcgtht:edge.node" select="$bcgtht:edge.node"/>
- </xsl:call-template>
- </xsl:function>
-
-
-
-
-
-
-
- </xsl:stylesheet>
|