| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?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: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:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:p5xsda="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsd_asserts/p5xsda.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:function name="p5dkp:nodes.path.add">
- <xsl:param name="p5dkp:nodes.path"/>
- <xsl:param name="p5dkp:node_no"/><!-- like etap_no -->
- <!--<xsl:param name="p5dkp:id"/>--> <!-- like etap.przygotowania.etap_no -->
- <xsl:message>#90 $p5dkp:node_no name()=<xsl:value-of select="$p5dkp:node_no/name()"/> ; @* <xsl:copy-of select="$p5dkp:node_no/@*"></xsl:copy-of></xsl:message>
-
- <!-- Dodawanie sciezek relacyjnie jak sie poruszamy w miare czytania mapy -->
-
- <xsl:variable name="p5dkp:nodes.path.var">
- <p5dkp:nodes.path>
- <xsl:choose>
- <xsl:when test="$p5dkp:nodes.path">
- <xsl:for-each select="$p5dkp:nodes.path/p5dkp:nodes.path/*">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>#122 WARNING not test=$p5dkp:nodes.path </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$p5dkp:node_no">
- <xsl:copy-of select="$p5dkp:node_no"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>#103 ERROR not expected $p5dkp:node_no name()=<xsl:value-of select="$p5dkp:node_no/name()"/> for <xsl:copy-of select="$p5dkp:node_no/@*"/></xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </p5dkp:nodes.path>
- </xsl:variable>
- <xsl:message>#135 p5dkp:nodes.path has count()=<xsl:value-of select="count($p5dkp:nodes.path.var//*)"/></xsl:message>
- <xsl:copy-of select="$p5dkp:nodes.path.var"/>
- </xsl:function>
-
-
-
- <xsl:function name="p5dkp:nodes.path.add">
- <xsl:param name="p5dkp:nodes.path"/>
- <xsl:param name="p5dkp:node_no"/><!-- like etap_no -->
- <xsl:param name="p5dkp:element"/>
- <!--<xsl:param name="p5dkp:id"/>--> <!-- like etap.przygotowania.etap_no -->
- <xsl:message>#90 $p5dkp:node_no name()=<xsl:value-of select="$p5dkp:node_no/name()"/> ; @* <xsl:copy-of select="$p5dkp:node_no/@*"></xsl:copy-of></xsl:message>
-
-
- <xsl:variable name="p5dkp:nodes.path.var">
- <p5dkp:nodes.path>
- <xsl:choose>
- <xsl:when test="$p5dkp:nodes.path">
- <xsl:for-each select="$p5dkp:nodes.path/p5dkp:nodes.path/*">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>#122 WARNING not test=$p5dkp:nodes.path </xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="$p5dkp:node_no">
- <xsl:for-each select="$p5dkp:node_no">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:attribute name="p5dkp:element" select="$p5dkp:element"/>
- </xsl:copy>
- </xsl:for-each>
-
- </xsl:when>
- <xsl:otherwise>
- <xsl:message>#103 ERROR not expected $p5dkp:node_no name()=<xsl:value-of select="$p5dkp:node_no/name()"/> for <xsl:copy-of select="$p5dkp:node_no/@*"/></xsl:message>
- </xsl:otherwise>
- </xsl:choose>
- </p5dkp:nodes.path>
- </xsl:variable>
- <xsl:message>#135 p5dkp:nodes.path has count()=<xsl:value-of select="count($p5dkp:nodes.path.var//*)"/></xsl:message>
- <xsl:copy-of select="$p5dkp:nodes.path.var"/>
- </xsl:function>
-
- </xsl:stylesheet>
|