| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?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:bcgtht="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/bocian-graph-to-html/bcgtht.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:key name="preceding-sibling" match="rec" use="preceding-sibling::rec/generate-id()"/>
-
- <xsl:key name="preceding-sibling.kid" match="rec/kid" use="parent::rec/preceding-sibling::rec/kid[ text() = current()/text()]/generate-id()"/>
- <!-- bcgtht:clousure.analys.merge/ -->
- <xsl:key name="bcgtht:preceding-sibling.clousure.node.unique.descriptor" match="bcgtht:clousure.node.unique.descriptor/pesel" use="parent::*[ following-sibling::bcgtht:clousure.node.unique.descriptor[pesel[text() = '48031702784']]]/following-sibling::bcgtht:clousure.node.unique.descriptor/pesel/generate-id()"/><!-- *[local-name() = current()/local-name()] -->
-
-
-
- <xsl:template match="bcgtht:clousure.analys.merge">
- <xsl:copy>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
-
- <xsl:template match="bcgtht:clousure.node.unique.descriptor">
- <xsl:copy>
- <xsl:apply-templates mode="pes"/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="pesel" mode="pes">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <CURR_PESEL><xsl:copy-of select="text()"/></CURR_PESEL>
- <bcgtht:TEEST_preceding-sibling.clousure.node.unique.descriptor>
- <xsl:copy-of select="key('bcgtht:preceding-sibling.clousure.node.unique.descriptor',generate-id(.))"/>
- </bcgtht:TEEST_preceding-sibling.clousure.node.unique.descriptor>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="*" mode="#all"/>
-
-
-
- <xsl:template match="text()|comment()">
- <!--<xsl:copy-of select="."/>-->
- </xsl:template>
-
- <xsl:template match="xml">
- <xsl:copy>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
-
- <xsl:template match="rec">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <preceding-sibling>
- <xsl:copy-of select="key('preceding-sibling',generate-id())"/>
- </preceding-sibling>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="kid">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <preceding-sibling.kid>
- <xsl:copy-of select="key('preceding-sibling.kid',generate-id())"/>
- </preceding-sibling.kid>
- </xsl:copy>
- </xsl:template>
-
- </xsl:stylesheet>
|