| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?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:template mode="bcgtht:src_fid_analys" match="*">
- <xsl:message terminate="yes">#33 unantended mode="bcgtht:src_fid_analys" for element <xsl:value-of select="name()"/> ; </xsl:message>
- </xsl:template>
-
- <xsl:template mode="bcgtht:src_fid_analys" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
- <src_fid_analys>
- <xsl:comment>#38 test</xsl:comment>
- <xsl:for-each-group select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid">
- <xsl:variable name="src.current-grouping-key" select="current-grouping-key()"/>
- <src_fid key="{current-grouping-key()}" pos="{position()}" count="{count(current-group())}"> <!-- fid="{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]/@fid}" -->
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:comment>#43 will row objs for obj <xsl:value-of select="*[1]/name()"/> @fid=<xsl:value-of select="*[1]/@fid"/> *[1]/*[1]/@fid=<xsl:value-of select="*[1]/*[1]/@fid"/></xsl:comment>
- <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]">
-
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
-
- <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names">
- <xsl:with-param name="addelement" select="true()"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- <xsl:for-each-group select="current-group()" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]/@fid">
- <xsl:choose>
- <xsl:when test="current-grouping-key()=$src.current-grouping-key">
- <src.current-grouping-key same="1">
- <xsl:comment>#58 $src.current-grouping-key=<xsl:value-of select="$src.current-grouping-key"/>; </xsl:comment>
- </src.current-grouping-key>
- </xsl:when>
- <xsl:when test="system_cache__dita:bocian.bypass.elements(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[@fid=current-grouping-key()]/local-name())">
- <dst_fid key="{current-grouping-key()}" prec.cnt="{count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[*[@fid = current-grouping-key()]]/preceding-sibling::*)}" pos="{position()}"> <!-- fid="{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/*[1]/@fid}" -->
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[*[@fid=current-grouping-key()]][1]">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:for-each select="*[1]">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names">
- <xsl:with-param name="addelement" select="true()"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- <xsl:for-each-group select="current-group()/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[*[@fid = current-grouping-key()][1]]/preceding-sibling::*[ *[1][system_cache__dita:bocian.bypass.elements( local-name())]]" group-by="*[1]/@fid">
- <preceding-sibling key="{current-grouping-key()}" fid="{*[1]/@fid}" pos="{position()}">
- <!--<follow>
- <xsl:for-each-group select="current-group()/following-sibling::*/*[1][system_cache__dita:bocian.bypass.elements(local-name())]" group-by="@fid">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- </xsl:copy>
- </xsl:for-each-group>
- </follow>-->
- <xsl:for-each select="parent::*">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:for-each select="*[*[@fid=current-grouping-key()]][1]">
-
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names">
- <xsl:with-param name="addelement" select="true()"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- </xsl:for-each>
- </preceding-sibling>
- </xsl:for-each-group>
-
- <xsl:for-each-group select="current-group()/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[*[@fid = current-grouping-key()][1]]/following-sibling::*[ *[1][system_cache__dita:bocian.bypass.elements( local-name())]]" group-by="*[1]/@fid">
- <following-sibling key="{current-grouping-key()}" fid="{*[1]/@fid}" pos="{position()}" prec.cnt="{count(preceding-sibling::*)}" prec.cnt.min="{min(count(current-group()/preceding-sibling::*))}" prec.cnt.max="{max(count(current-group()/preceding-sibling::*))}" >
- <!--<prec>
- <xsl:for-each-group select="current-group()/preceding-sibling::*/*[1][system_cache__dita:bocian.bypass.elements(local-name())]" group-by="@fid">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- </xsl:copy>
- </xsl:for-each-group>
- </prec>-->
- <xsl:for-each select="parent::*">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:for-each select="*[*[@fid=current-grouping-key()]][1]">
- <xsl:copy copy-namespaces="no">
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names">
- <xsl:with-param name="addelement" select="true()"/>
- </xsl:apply-templates>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- </xsl:for-each>
- </following-sibling>
- </xsl:for-each-group>
- </dst_fid>
- </xsl:when>
- <xsl:otherwise>
- <system_cache__dita:bocian.bypass.elements key="{current-grouping-key()}" pos="{position()}"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:for-each-group>
- </src_fid>
- </xsl:for-each-group>
- </src_fid_analys>
- </xsl:template>
-
-
- </xsl:stylesheet>
|